|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable
ubc.cs.JLog.Parser.pTermToPacketHashtable
public class pTermToPacketHashtable
Keeps track of jTerms
and their associated pPacket
s.
The packets contain parsing relevant information, which my be needed generate
error messages if the term proves to be invalid.
Constructor Summary | |
---|---|
pTermToPacketHashtable()
|
Method Summary | |
---|---|
ubc.cs.JLog.Parser.pPacket |
getPacket(jTerm t)
Finds the packet associated with the given term key. |
ubc.cs.JLog.Parser.pToken |
getToken(jTerm t,
ubc.cs.JLog.Parser.pPacket pp)
Looks up packet in the hash given a term key, and returns the packets token. |
ubc.cs.JLog.Parser.pPacket |
putPacket(jTerm t,
ubc.cs.JLog.Parser.pPacket pp)
Associates a term with a packet. |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public pTermToPacketHashtable()
Method Detail |
---|
public ubc.cs.JLog.Parser.pPacket getPacket(jTerm t)
t
- The term key.
public ubc.cs.JLog.Parser.pPacket putPacket(jTerm t, ubc.cs.JLog.Parser.pPacket pp)
t
- The term key.pp
- The packet to associate with term t.
Hashtable
.public ubc.cs.JLog.Parser.pToken getToken(jTerm t, ubc.cs.JLog.Parser.pPacket pp)
t
- The term key.pp
- The packet associated with term t. Used if there is no packet
associated in this hashtable.
pp
's token.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |