|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.matthias_burbach.util.Node
Private helper class for Diff
.
The symbol table routines in this class all
understand the symbol table format, which is a binary tree.
The methods are: addSymbol, symbolIsUnique, showSymbol.
Field Summary | |
(package private) static int |
bothonce
|
(package private) static int |
freshnode
|
(package private) java.lang.String |
line
|
(package private) int |
linenum
|
(package private) int |
linestate
|
(package private) static int |
newonce
|
(package private) static int |
oldonce
|
(package private) static int |
other
|
(package private) static Node |
panchor
|
(package private) Node |
pleft
|
(package private) Node |
pright
|
Constructor Summary | |
(package private) |
Node(java.lang.String pline)
Construct a new symbol table node and fill in its fields. |
Method Summary | |
(package private) static Node |
addSymbol(java.lang.String pline,
boolean inoldfile,
int linenum)
addSymbol(String pline) - Saves line into the symbol table. |
(package private) static Node |
matchsymbol(java.lang.String pline)
matchsymbol Searches tree for a match to the line. |
(package private) void |
showSymbol(java.io.PrintWriter printWriter)
showSymbol Prints the line to stdout. |
(package private) boolean |
symbolIsUnique()
symbolIsUnique Arg is a ptr previously returned by addSymbol. -------------- Returns true if the line was added to the symbol table exactly once with inoldfile true, and exactly once with inoldfile false. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
Node pleft
Node pright
int linenum
static final int freshnode
static final int oldonce
static final int newonce
static final int bothonce
static final int other
int linestate
java.lang.String line
static Node panchor
Constructor Detail |
Node(java.lang.String pline)
Method Detail |
static Node matchsymbol(java.lang.String pline)
static Node addSymbol(java.lang.String pline, boolean inoldfile, int linenum)
boolean symbolIsUnique()
void showSymbol(java.io.PrintWriter printWriter)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |