Enum Class TreeTraversal.VisitResult
java.lang.Object
java.lang.Enum<TreeTraversal.VisitResult>
ghidra.trace.database.target.visitors.TreeTraversal.VisitResult
- All Implemented Interfaces:
Serializable,Comparable<TreeTraversal.VisitResult>,Constable
- Enclosing class:
TreeTraversal
A result directing the traversal how to proceed
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionExclude the value that was just traversed, but descendExclude the value that was just traversed, and prune its subtreeInclude the value that was just traversed, and descendInclude the value that was just traversed, but prune its subtree -
Method Summary
Modifier and TypeMethodDescriptionstatic TreeTraversal.VisitResultresult(boolean include, boolean cont) Get the result that indicates the given inclusion and continuationstatic TreeTraversal.VisitResultReturns the enum constant of this class with the specified name.static TreeTraversal.VisitResult[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INCLUDE_DESCEND
Include the value that was just traversed, and descend -
INCLUDE_PRUNE
Include the value that was just traversed, but prune its subtree -
EXCLUDE_DESCEND
Exclude the value that was just traversed, but descend -
EXCLUDE_PRUNE
Exclude the value that was just traversed, and prune its subtree
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
result
Get the result that indicates the given inclusion and continuation- Parameters:
include- true to include the value just traversed, false to excludecont- true to continue traversal, false to terminate- Returns:
- the result
-