Package ru.ispras.fortress.util
Enum TreeVisitor.Status
- java.lang.Object
-
- java.lang.Enum<TreeVisitor.Status>
-
- ru.ispras.fortress.util.TreeVisitor.Status
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TreeVisitor.Status>
- Enclosing interface:
- TreeVisitor
public static enum TreeVisitor.Status extends java.lang.Enum<TreeVisitor.Status>
TheTreeVisitor.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.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
OK
public static final TreeVisitor.Status OK
Continue traversing.
-
SKIP
public static final TreeVisitor.Status SKIP
Skip child nodes.
-
ABORT
public static final TreeVisitor.Status ABORT
Stop traversing.
-
-
Method Detail
-
values
public static TreeVisitor.Status[] 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 (TreeVisitor.Status c : TreeVisitor.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TreeVisitor.Status valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-