Package org.spongepowered.asm.mixin
Enum Class Interface.Remap
- All Implemented Interfaces:
Serializable,Comparable<Interface.Remap>,Constable
- Enclosing class:
Interface
Describes the remapping strategy applied to methods matching this
interface.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAttempt to remap all members of this interface which are declared in the annotated mixin, including non-prefixed methods which match.Attempt to remap all members of this interface which are declared in the annotated mixin, including non-prefixed methods which match.Do not remap members matching this interface.Remap only methods in the annotated mixin which are prefixed with the declared prefix. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this remap type should force remappingstatic Interface.RemapReturns the enum constant of this class with the specified name.static Interface.Remap[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
Attempt to remap all members of this interface which are declared in the annotated mixin, including non-prefixed methods which match. -
FORCE
Attempt to remap all members of this interface which are declared in the annotated mixin, including non-prefixed methods which match. If mappings are not located for a member method, raise a compile-time error. -
ONLY_PREFIXED
Remap only methods in the annotated mixin which are prefixed with the declared prefix. Note that if no prefix is defined, this has the same effect asNONE -
NONE
Do not remap members matching this interface. (Equivalent to remap=false on other remappable annotations)
-
-
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
-
forceRemap
public boolean forceRemap()Returns whether this remap type should force remapping
-