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).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionInjection point is valid for instructions in both methods and constructors, both before and after the delegate callInjection point is valid for instructions in methods and in constructors but only after the delegate constructor call.Injection point is valid for instructions in methods only -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static InjectionPoint.RestrictTargetLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
METHODS_ONLY
Injection point is valid for instructions in methods only -
CONSTRUCTORS_AFTER_DELEGATE
Injection point is valid for instructions in methods and in constructors but only after the delegate constructor call. -
ALLOW_ALL
Injection point is valid for instructions in both methods and constructors, both before and after the delegate call
-
-
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
-