Enum Class InjectionPoint.Specifier
java.lang.Object
java.lang.Enum<InjectionPoint.Specifier>
org.spongepowered.asm.mixin.injection.InjectionPoint.Specifier
- All Implemented Interfaces:
Serializable,Comparable<InjectionPoint.Specifier>,Constable
- Enclosing class:
InjectionPoint
Additional specifier for injection points. Specifiers can be
supplied in
At annotations by including a colon (:)
character followed by the specifier type (case-sensitive), eg:
@At(value = "INVOKE:LAST", ... )
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse all instructions from the query result.Use the default setting as defined by the consumer.Use the first instruction from the query result.Use the last instruction from the query result.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. -
Method Summary
Modifier and TypeMethodDescriptionstatic InjectionPoint.SpecifierReturns the enum constant of this class with the specified name.static InjectionPoint.Specifier[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
Use all instructions from the query result. -
FIRST
Use the first instruction from the query result. -
LAST
Use the last instruction from the query result. -
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. -
DEFAULT
-
-
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
-