Package net.bytebuddy

Class ByteBuddy.EnumerationImplementation

java.lang.Object
net.bytebuddy.ByteBuddy.EnumerationImplementation
All Implemented Interfaces:
InstrumentedType.Prepareable, Implementation
Enclosing class:
ByteBuddy

@Enhance protected static class ByteBuddy.EnumerationImplementation extends Object implements Implementation
An implementation fo the values method of an enumeration type.
  • Field Details

    • CLONE_METHOD_NAME

      protected static final String CLONE_METHOD_NAME
      The name of the Object.clone() method.
      See Also:
    • ENUM_VALUE_OF_METHOD_NAME

      protected static final String ENUM_VALUE_OF_METHOD_NAME
      The name of the valueOf method that is defined for any enumeration.
      See Also:
    • ENUM_VALUES_METHOD_NAME

      protected static final String ENUM_VALUES_METHOD_NAME
      The name of the values method that is defined for any enumeration.
      See Also:
    • ENUM_FIELD_MODIFIERS

      private static final int ENUM_FIELD_MODIFIERS
      The field modifiers to use for any field that is added to an enumeration.
      See Also:
    • ENUM_VALUES

      private static final String ENUM_VALUES
      The name of the field containing an array of all enumeration values.
      See Also:
    • values

      private final List<String> values
      The names of the enumerations to define for the enumeration.
  • Constructor Details

    • EnumerationImplementation

      protected EnumerationImplementation(List<String> values)
      Creates a new implementation of an enumeration type.
      Parameters:
      values - The values of the enumeration.
  • Method Details