Package org.spongepowered.asm.mixin.gen
Enum Class AccessorInfo.AccessorType
- All Implemented Interfaces:
Serializable,Comparable<AccessorInfo.AccessorType>,Constable
- Enclosing class:
AccessorInfo
Accessor types
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA field getter, accessor must accept no args and return field typeA field setter, accessor must accept single arg of the field type and return voidAn invoker (proxy) methodAn invoker (proxy) method -
Method Summary
Modifier and TypeMethodDescriptionReturns all the expected prefixes for this accessor type as a string for debugging/error message purposesbooleanisExpectedPrefix(String prefix) Returns true if the supplied prefix string is an allowed prefix for this accessor typestatic AccessorInfo.AccessorTypeReturns the enum constant of this class with the specified name.static AccessorInfo.AccessorType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FIELD_GETTER
A field getter, accessor must accept no args and return field type -
FIELD_SETTER
A field setter, accessor must accept single arg of the field type and return void -
METHOD_PROXY
An invoker (proxy) method -
OBJECT_FACTORY
An invoker (proxy) method
-
-
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
-
isExpectedPrefix
Returns true if the supplied prefix string is an allowed prefix for this accessor type- Parameters:
prefix- prefix to check- Returns:
- true if the expected prefix set contains the supplied value
-
getExpectedPrefixes
Returns all the expected prefixes for this accessor type as a string for debugging/error message purposes- Returns:
- string representation of expected prefixes for this accessor type
-