|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TreeVisitor
A depth-first visitor model for tree structured data, including XML, JSON, ANTLR Parse Tree, etc.
| Method Summary | |
|---|---|
void |
finish(TreeWalker walker)
When the tree visit has finished |
void |
init(TreeWalker walker)
Initialize the visitor here |
void |
leaveNode(String nodeName,
String nodeValue,
TreeWalker walker)
When leaving a node |
void |
visitNode(String nodeName,
TreeWalker walker)
When found a node |
| Method Detail |
|---|
void init(TreeWalker walker)
throws XerialException
XerialException
void visitNode(String nodeName,
TreeWalker walker)
throws XerialException
nodeName - the found node name
XerialException
void leaveNode(String nodeName,
String nodeValue,
TreeWalker walker)
throws XerialException
nodeName - the node name to leavenodeValue -
XerialException
void finish(TreeWalker walker)
throws XerialException
XerialException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
