public static enum NodeVisitor.Result extends java.lang.Enum<NodeVisitor.Result>
NodeVisitor.Result
contains possible visitor results.Enum Constant and Description |
---|
ABORT
Stop traversal.
|
OK
Continue traversal.
|
PRUNE
Do not traverse the children subtrees.
|
REPEAT
Repeat traversal of the node.
|
Modifier and Type | Method and Description |
---|---|
static NodeVisitor.Result |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NodeVisitor.Result[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NodeVisitor.Result OK
This result can be return by the onBegin
and onEnd
handlers.
public static final NodeVisitor.Result PRUNE
This result can be returned by the onEnd
handler only.
public static final NodeVisitor.Result REPEAT
This result can be returned by the onEnd
handler only.
public static final NodeVisitor.Result ABORT
This result can be return by the onBegin
and onEnd
handlers.
public static NodeVisitor.Result[] values()
for (NodeVisitor.Result c : NodeVisitor.Result.values()) System.out.println(c);
public static NodeVisitor.Result valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null