public enum VisitOrder extends java.lang.Enum<VisitOrder>
TreeTraverser| Enum Constant and Description |
|---|
BREADTHFIRST
Breadth first traversal
|
POSTORDER
Postorder traversal
|
PREORDER
Preorder traversal
|
| Modifier and Type | Method and Description |
|---|---|
static VisitOrder |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static VisitOrder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
java.lang.Iterable<ParseNode> |
visit(ParseNode node) |
public static final VisitOrder PREORDER
TreeTraverser.preOrderTraversal(Object)public static final VisitOrder POSTORDER
TreeTraverser.postOrderTraversal(Object)public static final VisitOrder BREADTHFIRST
TreeTraverser.breadthFirstTraversal(Object)public static VisitOrder[] values()
for (VisitOrder c : VisitOrder.values()) System.out.println(c);
public static VisitOrder 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