Enum Class InjectionPoint.Selector

java.lang.Object
java.lang.Enum<InjectionPoint.Selector>
org.spongepowered.asm.mixin.injection.InjectionPoint.Selector
All Implemented Interfaces:
Serializable, Comparable<InjectionPoint.Selector>, Constable
Enclosing class:
InjectionPoint

public static enum InjectionPoint.Selector extends Enum<InjectionPoint.Selector>
Selector type for slice delmiters, ignored for normal injection points. Selectors can be supplied in At annotations by including a colon (:) character followed by the selector type (case-sensitive), eg:
@At(value = "INVOKE:LAST", ... )
  • Enum Constant Details

    • FIRST

      public static final InjectionPoint.Selector FIRST
      Use the first instruction from the query result.
    • LAST

      public static final InjectionPoint.Selector LAST
      Use the last instruction from the query result.
    • ONE

      public static final InjectionPoint.Selector ONE
      The query must return exactly one instruction, if it returns more than one instruction this should be considered a fail-fast error state and a runtime exception will be thrown.
  • Field Details

    • DEFAULT

      public static final InjectionPoint.Selector DEFAULT
      Default selector type used if no selector is explicitly specified. For internal use only. Currently FIRST
  • Method Details

    • values

      public static InjectionPoint.Selector[] 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 InjectionPoint.Selector 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