Enum InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper
java.lang.Object
java.lang.Enum<InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper>
net.bytebuddy.implementation.InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper
- All Implemented Interfaces:
Serializable, Comparable<InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper>, java.lang.constant.Constable
- Enclosing interface:
InvokeDynamic.InvocationProvider.ArgumentProvider
public static enum InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper
extends Enum<InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper>
Represents wrapper types and types that could be stored in a class's constant pool as such
constant pool values.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classAn argument provider that loads a primitive value from the constant pool and wraps it.Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionStores aBooleanas abooleanand wraps it on load.Stores aByteas abyteand wraps it on load.Stores aCharacteras acharand wraps it on load.Stores aDoubleas adoubleand wraps it on load.Stores aFloatas afloatand wraps it on load.Stores aIntegeras aintand wraps it on load.Stores aLongas alongand wraps it on load.Stores aShortas ashortand wraps it on load. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypeDescriptionThe primitive type that can be stored on the constant pool.private final TypeDescriptionThe wrapper type that is to be represented. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateConstantPoolWrapper(Class<?> primitiveType, Class<?> wrapperType) Creates a new wrapper delegate for a primitive type. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract InvokeDynamic.InvocationProvider.ArgumentProviderCreates an argument provider for a given primitive value.Represents the given value by a constant pool value or as a field if this is not possible.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BOOLEAN
Stores aBooleanas abooleanand wraps it on load. -
BYTE
Stores aByteas abyteand wraps it on load. -
SHORT
Stores aShortas ashortand wraps it on load. -
CHARACTER
Stores aCharacteras acharand wraps it on load. -
INTEGER
Stores aIntegeras aintand wraps it on load. -
LONG
Stores aLongas alongand wraps it on load. -
FLOAT
Stores aFloatas afloatand wraps it on load. -
DOUBLE
Stores aDoubleas adoubleand wraps it on load.
-
-
Field Details
-
primitiveType
The primitive type that can be stored on the constant pool. -
wrapperType
The wrapper type that is to be represented.
-
-
Constructor Details
-
ConstantPoolWrapper
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InvokeDynamic.InvocationProvider.ArgumentProvider.ConstantPoolWrapper valueOf(String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
of
Represents the given value by a constant pool value or as a field if this is not possible.- Parameters:
value- The value to provide to the bootstrapped method.- Returns:
- An argument provider for this value.
-
make
Creates an argument provider for a given primitive value.- Parameters:
value- The wrapper-type value to provide to the bootstrapped method.- Returns:
- An argument provider for this value.
-