public static enum ElementNode.NodeType extends java.lang.Enum<ElementNode.NodeType>
| Enum Constant and Description |
|---|
FIELD
A field node
|
FIELD_INSN
A get or put field instruction
|
INVOKEDYNAMIC_INSN
An INVOKEDYNAMIC instruction
|
METHOD
A method node
|
METHOD_INSN
An invoke instruction
|
UNDEFINED
None or unknown type
|
| Modifier and Type | Field and Description |
|---|---|
boolean |
hasField
Whether this node holds a field, implies that calling getField
will return a value
|
boolean |
hasInsn
Whether this node holds an insn, implies that calling getInsn
will return a value
|
boolean |
hasMethod
Whether this node holds a method, implies that calling getMethod
will return a value
|
| Modifier and Type | Method and Description |
|---|---|
static ElementNode.NodeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ElementNode.NodeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ElementNode.NodeType UNDEFINED
public static final ElementNode.NodeType METHOD
public static final ElementNode.NodeType FIELD
public static final ElementNode.NodeType METHOD_INSN
public static final ElementNode.NodeType FIELD_INSN
public static final ElementNode.NodeType INVOKEDYNAMIC_INSN
public final boolean hasMethod
public final boolean hasField
public final boolean hasInsn
public static ElementNode.NodeType[] values()
for (ElementNode.NodeType c : ElementNode.NodeType.values()) System.out.println(c);
public static ElementNode.NodeType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null