Enum Class AccessorInfo.AccessorType

java.lang.Object
java.lang.Enum<AccessorInfo.AccessorType>
org.spongepowered.asm.mixin.gen.AccessorInfo.AccessorType
All Implemented Interfaces:
Serializable, Comparable<AccessorInfo.AccessorType>, Constable
Enclosing class:
AccessorInfo

public static enum AccessorInfo.AccessorType extends Enum<AccessorInfo.AccessorType>
Accessor types
  • Enum Constant Details

    • FIELD_GETTER

      public static final AccessorInfo.AccessorType FIELD_GETTER
      A field getter, accessor must accept no args and return field type
    • FIELD_SETTER

      public static final AccessorInfo.AccessorType FIELD_SETTER
      A field setter, accessor must accept single arg of the field type and return void
    • METHOD_PROXY

      public static final AccessorInfo.AccessorType METHOD_PROXY
      An invoker (proxy) method
    • OBJECT_FACTORY

      public static final AccessorInfo.AccessorType OBJECT_FACTORY
      An invoker (proxy) method
  • Method Details

    • values

      public static AccessorInfo.AccessorType[] 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

      public static AccessorInfo.AccessorType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • isExpectedPrefix

      public boolean isExpectedPrefix(String prefix)
      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

      public Set<String> 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