Enum Class TraceMemoryOperations.StatePredicate
java.lang.Object
java.lang.Enum<TraceMemoryOperations.StatePredicate>
ghidra.trace.model.memory.TraceMemoryOperations.StatePredicate
- All Implemented Interfaces:
Serializable, Comparable<TraceMemoryOperations.StatePredicate>, Constable, Predicate<TraceMemoryState>
- Enclosing interface:
TraceMemoryOperations
public static enum TraceMemoryOperations.StatePredicate
extends Enum<TraceMemoryOperations.StatePredicate>
implements Predicate<TraceMemoryState>
Built-in predicates for filtering/testing state entries
Many methods accept an unrestricted Predicate on TraceMemoryState. However,
use of these built-ins is strongly recommended for two reasons: 1) They handle conventional
cases, e.g., null representing TraceMemoryState.UNKNOWN. 2) Caching depends on the
implementation being able to recognize the identity of the predicate. This generally cannot
be done with lambda methods.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static TraceMemoryOperations.StatePredicate[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IS_KNOWN
-
IS_ERROR
-
IS_KNOWN_OR_ERROR
-
-
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
-