public static enum TreeVisitor.Status extends java.lang.Enum<TreeVisitor.Status>
TreeVisitor.Status
enumeration describes possible statuses of the visitor.
Status
serves as a directive for the walker to alter its behavior
depending on events that may occur in the visitor.Enum Constant and Description |
---|
ABORT
Stop traversing
|
OK
Continue traversing
|
SKIP
Skip child nodes
|
Modifier and Type | Method and Description |
---|---|
static TreeVisitor.Status |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TreeVisitor.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TreeVisitor.Status OK
public static final TreeVisitor.Status SKIP
public static final TreeVisitor.Status ABORT
public static TreeVisitor.Status[] values()
for (TreeVisitor.Status c : TreeVisitor.Status.values()) System.out.println(c);
public static TreeVisitor.Status 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