public static enum Visitors.Walk extends java.lang.Enum<Visitors.Walk>
Enum Constant and Description |
---|
BOTH
Walk the tree twice, before and afterdealing with the current element.
|
NONE
Don't walk the tree.
|
POSTFIX
Walk the tree after dealing with the current element.
|
PREFIX
Walk the tree before dealing with the current element.
|
Modifier and Type | Method and Description |
---|---|
static Visitors.Walk |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Visitors.Walk[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Visitors.Walk PREFIX
public static final Visitors.Walk POSTFIX
public static final Visitors.Walk BOTH
public static final Visitors.Walk NONE
This allows the user to choose if and when to walk the tree.
public static Visitors.Walk[] values()
for (Visitors.Walk c : Visitors.Walk.values()) System.out.println(c);
public static Visitors.Walk 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