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>

public static enum ElementNode.NodeType extends Enum<ElementNode.NodeType>
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
  • Enum Constant Details

  • Field Details

    • hasMethod

      public final boolean hasMethod
      Whether this node holds a method, implies that calling getMethod will return a value
    • hasField

      public final boolean hasField
      Whether this node holds a field, implies that calling getField will return a value
    • hasInsn

      public final boolean hasInsn
      Whether this node holds an insn, implies that calling getInsn will return a value
  • Method Details

    • values

      public static ElementNode.NodeType[] 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

      public static ElementNode.NodeType valueOf(String name)
      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 name
      NullPointerException - if the argument is null