Package net.bytebuddy.utility.dispatcher
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:
java.io.Serializable
,java.lang.Comparable<JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray>
,JavaDispatcher.Dispatcher
- Enclosing class:
- JavaDispatcher.Dispatcher.ForDefaultValue
protected static enum JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray extends java.lang.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 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 Constants Enum Constant Description BOOLEAN
A dispatcher for aboolean
array.BYTE
A dispatcher for abyte
array.CHARACTER
A dispatcher for achar
array.DOUBLE
A dispatcher for adouble
array.FLOAT
A dispatcher for afloat
array.INTEGER
A dispatcher for aint
array.LONG
A dispatcher for along
array.SHORT
A dispatcher for ashort
array.
-
Constructor Summary
Constructors Modifier Constructor Description private
OfPrimitiveArray(java.lang.Object value, int operand)
Creates a new dispatcher for a primitive array.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
apply(org.objectweb.asm.MethodVisitor methodVisitor, java.lang.reflect.Method method)
Implements this dispatcher in a generated proxy.java.lang.Object
invoke(java.lang.Object[] argument)
Invokes the proxied action.static JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray BOOLEAN
A dispatcher for aboolean
array.
-
BYTE
public static final JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray BYTE
A dispatcher for abyte
array.
-
SHORT
public static final JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray SHORT
A dispatcher for ashort
array.
-
CHARACTER
public static final JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray CHARACTER
A dispatcher for achar
array.
-
INTEGER
public static final JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray INTEGER
A dispatcher for aint
array.
-
LONG
public static final JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray LONG
A dispatcher for along
array.
-
FLOAT
public static final JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray FLOAT
A dispatcher for afloat
array.
-
DOUBLE
public static final JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray DOUBLE
A dispatcher for adouble
array.
-
-
Method Detail
-
values
public static JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray c : JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
invoke
public java.lang.Object invoke(java.lang.Object[] argument)
Invokes the proxied action.- Specified by:
invoke
in interfaceJavaDispatcher.Dispatcher
- Parameters:
argument
- The arguments provided.- Returns:
- The return value.
-
apply
public int apply(org.objectweb.asm.MethodVisitor methodVisitor, java.lang.reflect.Method method)
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.
-
-