public static class SuffixTree.VisitorAdapter extends Object implements SuffixTree.IVisitor
| Constructor and Description |
|---|
VisitorAdapter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
edge(int fromState,
int toState,
int startIndex,
int endIndex)
Invoked when an edge is visited.
|
void |
post(int state)
Invoked after
state is fully traversed. |
boolean |
pre(int state)
Invoked before
state is descended into. |
public boolean pre(int state)
SuffixTree.IVisitorstate is descended into.pre in interface SuffixTree.IVisitorfalse omits the subtree of state.
SuffixTree.IVisitor.post(int) is not invoked for this state if skipped.public void post(int state)
SuffixTree.IVisitorstate is fully traversed.post in interface SuffixTree.IVisitorstate - Identifier of the completed state.public boolean edge(int fromState,
int toState,
int startIndex,
int endIndex)
SuffixTree.IVisitoredge in interface SuffixTree.IVisitorfalse skips the traversal of
toState.