Enum JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray
java.lang.Object
java.lang.Enum<JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray>
net.bytebuddy.utility.dispatcher.JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray
- All Implemented Interfaces:
Serializable, Comparable<JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray>, java.lang.constant.Constable, JavaDispatcher.Dispatcher
- Enclosing class:
JavaDispatcher.Dispatcher.ForDefaultValue
protected static enum JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray
extends Enum<JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray>
implements JavaDispatcher.Dispatcher
A dispatcher for returning a default value for a primitive array.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface JavaDispatcher.Dispatcher
JavaDispatcher.Dispatcher.ForConstructor, JavaDispatcher.Dispatcher.ForContainerCreation, JavaDispatcher.Dispatcher.ForDefaultValue, JavaDispatcher.Dispatcher.ForInstanceCheck, JavaDispatcher.Dispatcher.ForNonStaticMethod, JavaDispatcher.Dispatcher.ForStaticMethod, JavaDispatcher.Dispatcher.ForUnresolvedMethod -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA dispatcher for abooleanarray.A dispatcher for abytearray.A dispatcher for achararray.A dispatcher for adoublearray.A dispatcher for afloatarray.A dispatcher for aintarray.A dispatcher for alongarray.A dispatcher for ashortarray. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateOfPrimitiveArray(Object value, int operand) Creates a new dispatcher for a primitive array. -
Method Summary
Modifier and TypeMethodDescriptionintImplements this dispatcher in a generated proxy.Invokes the proxied action.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
A dispatcher for abooleanarray. -
BYTE
A dispatcher for abytearray. -
SHORT
A dispatcher for ashortarray. -
CHARACTER
A dispatcher for achararray. -
INTEGER
A dispatcher for aintarray. -
LONG
A dispatcher for alongarray. -
FLOAT
A dispatcher for afloatarray. -
DOUBLE
A dispatcher for adoublearray.
-
-
Field Details
-
value
The default value. -
operand
private final int operandThe operand for creating an array of the represented type.
-
-
Constructor Details
-
OfPrimitiveArray
Creates a new dispatcher for a primitive array.- Parameters:
value- The default value.operand- The operand for creating an array of the represented type.
-
-
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
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
-
invoke
Invokes the proxied action.- Specified by:
invokein interfaceJavaDispatcher.Dispatcher- Parameters:
argument- The arguments provided.- Returns:
- The return value.
-
apply
Implements this dispatcher in a generated proxy.- Specified by:
applyin interfaceJavaDispatcher.Dispatcher- Parameters:
methodVisitor- The method visitor to implement the method with.method- The method being implemented.- Returns:
- The maximal size of the operand stack.
-