Enum Class ElementNode.NodeType
java.lang.Object
java.lang.Enum<ElementNode.NodeType>
org.spongepowered.asm.mixin.injection.selectors.ElementNode.NodeType
- All Implemented Interfaces:
Serializable,Comparable<ElementNode.NodeType>,Constable
- Enclosing class:
ElementNode<TNode>
Element node type, returned by getType so consumers don't need
to do instanceof checks, and allows switching on element type in a more
expressive way
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA field nodeA get or put field instructionAn INVOKEDYNAMIC instructionA method nodeAn invoke instructionNone or unknown type -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanWhether this node holds a field, implies that calling getField will return a valuefinal booleanWhether this node holds an insn, implies that calling getInsn will return a valuefinal booleanWhether this node holds a method, implies that calling getMethod will return a value -
Method Summary
Modifier and TypeMethodDescriptionstatic ElementNode.NodeTypeReturns the enum constant of this class with the specified name.static ElementNode.NodeType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
None or unknown type -
METHOD
A method node -
FIELD
A field node -
METHOD_INSN
An invoke instruction -
FIELD_INSN
A get or put field instruction -
INVOKEDYNAMIC_INSN
An INVOKEDYNAMIC instruction
-
-
Field Details
-
hasMethod
public final boolean hasMethodWhether this node holds a method, implies that calling getMethod will return a value -
hasField
public final boolean hasFieldWhether this node holds a field, implies that calling getField will return a value -
hasInsn
public final boolean hasInsnWhether this node holds an insn, implies that calling getInsn will return a value
-
-
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
-