Enum Class ITargetSelector.Configure
java.lang.Object
java.lang.Enum<ITargetSelector.Configure>
org.spongepowered.asm.mixin.injection.selectors.ITargetSelector.Configure
- All Implemented Interfaces:
Serializable,Comparable<ITargetSelector.Configure>,Constable
- Enclosing interface:
ITargetSelector
Available selector reconfigurations
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhere supported, removes the min and max limits for the selector, allowing it to return as many or as few matches as required.Where supported, changes the owner selection to the specified value.Where supported, changes the owner selection to match all owners, retaining other properties.Where supported, changes the descriptor to match all target descriptors, retaining other propertiesConfigure this selector for matching field and method instructions in a method body.Configure this selector for matching members in a class.Where supported, changes the descriptor to the specified value. -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic ITargetSelector.ConfigureReturns the enum constant of this class with the specified name.static ITargetSelector.Configure[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SELECT_MEMBER
Configure this selector for matching members in a class. Usually used to set defaults for match limits based on role. -
SELECT_INSTRUCTION
Configure this selector for matching field and method instructions in a method body. Usually used to set defaults for match limits. -
MOVE
Where supported, changes the owner selection to the specified value. -
ORPHAN
Where supported, changes the owner selection to match all owners, retaining other properties. -
TRANSFORM
Where supported, changes the descriptor to the specified value. -
PERMISSIVE
Where supported, changes the descriptor to match all target descriptors, retaining other properties -
CLEAR_LIMITS
Where supported, removes the min and max limits for the selector, allowing it to return as many or as few matches as required.
-
-
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
-
checkArgs
- Throws:
IllegalArgumentException
-