Enum Class InjectionPoint.RestrictTargetLevel

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

public static enum InjectionPoint.RestrictTargetLevel extends Enum<InjectionPoint.RestrictTargetLevel>
Target restriction level for different injection point types when used by restricted injectors (eg. Inject).
  • Enum Constant Details

    • METHODS_ONLY

      public static final InjectionPoint.RestrictTargetLevel METHODS_ONLY
      Injection point is valid for instructions in methods only
    • CONSTRUCTORS_AFTER_DELEGATE

      public static final InjectionPoint.RestrictTargetLevel CONSTRUCTORS_AFTER_DELEGATE
      Injection point is valid for instructions in methods and in constructors but only after the delegate constructor call.
    • ALLOW_ALL

      public static final InjectionPoint.RestrictTargetLevel ALLOW_ALL
      Injection point is valid for instructions in both methods and constructors, both before and after the delegate call
  • Method Details

    • values

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