Package net.bytebuddy.utility.dispatcher
Enum Class 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>
,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 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.utility.dispatcher.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 aboolean
array.A dispatcher for abyte
array.A dispatcher for achar
array.A dispatcher for adouble
array.A dispatcher for afloat
array.A dispatcher for aint
array.A dispatcher for along
array.A dispatcher for ashort
array. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
OfPrimitiveArray
(Object value, int operand) Creates a new dispatcher for a primitive array. -
Method Summary
Modifier and TypeMethodDescriptionint
Implements this dispatcher in a generated proxy.Invokes the proxied action.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BOOLEAN
A dispatcher for aboolean
array. -
BYTE
A dispatcher for abyte
array. -
SHORT
A dispatcher for ashort
array. -
CHARACTER
A dispatcher for achar
array. -
INTEGER
A dispatcher for aint
array. -
LONG
A dispatcher for along
array. -
FLOAT
A dispatcher for afloat
array. -
DOUBLE
A dispatcher for adouble
array.
-
-
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 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
-
invoke
Invokes the proxied action.- Specified by:
invoke
in interfaceJavaDispatcher.Dispatcher
- Parameters:
argument
- The arguments provided.- Returns:
- The return value.
-
apply
Implements this dispatcher in a generated proxy.- Specified by:
apply
in 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.
-