Package org.carrot2.text.suffixtree
Interface SuffixTree.IVisitor
- All Known Implementing Classes:
SuffixTree.VisitorAdapter
- Enclosing class:
SuffixTree
public static interface SuffixTree.IVisitor
Visitor interface for traversals.
- See Also:
-
Method Summary
-
Method Details
-
pre
boolean pre(int state) Invoked beforestate
is descended into.- Returns:
- Returning
false
omits the subtree ofstate
.post(int)
is not invoked for this state if skipped.
-
post
void post(int state) Invoked afterstate
is fully traversed.- Parameters:
state
- Identifier of the completed state.
-
edge
boolean edge(int fromState, int toState, int startIndex, int endIndex) Invoked when an edge is visited.- Returns:
- Returning
false
skips the traversal oftoState
.
-