Package de.xima.fc.common.tree
Enum TreeVisit.ETreeVisitResult
- java.lang.Object
-
- java.lang.Enum<TreeVisit.ETreeVisitResult>
-
- de.xima.fc.common.tree.TreeVisit.ETreeVisitResult
-
- All Implemented Interfaces:
Serializable
,Comparable<TreeVisit.ETreeVisitResult>
- Enclosing class:
- TreeVisit
public static enum TreeVisit.ETreeVisitResult extends Enum<TreeVisit.ETreeVisitResult>
Indicates how to proceed with a tree visit, seeTreeVisit
andTreeVisit.ITreeVisitor
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PROCEED
Proceed with the tree visit normally.QUIT
Stop visiting the tree entirely.SKIP_NODE
Do not visit this node, but visit children.SKIP_NODE_AND_SUB_TREE
Do not visit this node and skip all children as well.SKIP_SUB_TREE
Visit this node, but skip all children.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TreeVisit.ETreeVisitResult
valueOf(String name)
Returns the enum constant of this type with the specified name.static TreeVisit.ETreeVisitResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROCEED
public static final TreeVisit.ETreeVisitResult PROCEED
Proceed with the tree visit normally.
-
SKIP_NODE
public static final TreeVisit.ETreeVisitResult SKIP_NODE
Do not visit this node, but visit children.exit
will still be called.
-
SKIP_SUB_TREE
public static final TreeVisit.ETreeVisitResult SKIP_SUB_TREE
Visit this node, but skip all children.
-
SKIP_NODE_AND_SUB_TREE
public static final TreeVisit.ETreeVisitResult SKIP_NODE_AND_SUB_TREE
Do not visit this node and skip all children as well.
-
QUIT
public static final TreeVisit.ETreeVisitResult QUIT
Stop visiting the tree entirely.exit
will still be called.
-
-
Method Detail
-
values
public static TreeVisit.ETreeVisitResult[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TreeVisit.ETreeVisitResult c : TreeVisit.ETreeVisitResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TreeVisit.ETreeVisitResult valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-