|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--biTree.visitor.MakeHashTable
Visitor on WeightCompare to make a hashtable from a given tree.
Field Summary | |
(package private) java.util.Hashtable |
_hash
|
(package private) int |
_indexToSet
|
(package private) java.util.Vector |
_oneCode
|
Constructor Summary | |
MakeHashTable(java.util.Hashtable hash)
Constructor |
Method Summary | |
void |
biTree(BiTree wc)
Travels through a binary tree on all of the BiTrees |
void |
symbol(Symbol wc)
When we get to a Symbol, we just want to return the value of the symbol and the code vector that we have found for that value. |
Methods inherited from class java.lang.Object |
|
Field Detail |
java.util.Hashtable _hash
java.util.Vector _oneCode
int _indexToSet
Constructor Detail |
public MakeHashTable(java.util.Hashtable hash)
hash
- The hashtable to make a tree fromMethod Detail |
public void biTree(BiTree wc)
biTree
in interface Visitor
BiTree
- The tree to down which to traverse.public void symbol(Symbol wc)
symbol
in interface Visitor
Symbol
- The leaf of the binary tree to which we have
traversed
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |