public enum TraversalStrategy extends Enum<TraversalStrategy>
Processor.getTraversalStrategy()
Enum Constant and Description |
---|
POST_ORDER
When this strategy is selected, the processor will traverse the child
elements before the parents.
|
PRE_ORDER
When this strategy is selected, the processor will traverse the parent
elements before the children.
|
Modifier and Type | Method and Description |
---|---|
static TraversalStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TraversalStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TraversalStrategy PRE_ORDER
public static final TraversalStrategy POST_ORDER
public static TraversalStrategy[] values()
for (TraversalStrategy c : TraversalStrategy.values()) System.out.println(c);
public static TraversalStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2007–2018 Inria. All rights reserved.