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 BOOLEANA dispatcher for abooleanarray.BYTEA dispatcher for abytearray.CHARACTERA dispatcher for achararray.DOUBLEA dispatcher for adoublearray.FLOATA dispatcher for afloatarray.INTEGERA dispatcher for aintarray.LONGA dispatcher for alongarray.SHORTA dispatcher for ashortarray.
-
Constructor Summary
Constructors Modifier Constructor Description privateOfPrimitiveArray(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 intapply(org.objectweb.asm.MethodVisitor methodVisitor, java.lang.reflect.Method method)Implements this dispatcher in a generated proxy.java.lang.Objectinvoke(java.lang.Object[] argument)Invokes the proxied action.static JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArrayvalueOf(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 abooleanarray.
-
BYTE
public static final JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray BYTE
A dispatcher for abytearray.
-
SHORT
public static final JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray SHORT
A dispatcher for ashortarray.
-
CHARACTER
public static final JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray CHARACTER
A dispatcher for achararray.
-
INTEGER
public static final JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray INTEGER
A dispatcher for aintarray.
-
LONG
public static final JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray LONG
A dispatcher for alongarray.
-
FLOAT
public static final JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray FLOAT
A dispatcher for afloatarray.
-
DOUBLE
public static final JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray DOUBLE
A dispatcher for adoublearray.
-
-
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:
invokein 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:
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.
-
-