public static enum JavaDispatcher.Dispatcher.ForDefaultValue extends Enum<JavaDispatcher.Dispatcher.ForDefaultValue> implements JavaDispatcher.Dispatcher
| Modifier and Type | Class and Description |
|---|---|
protected static class |
JavaDispatcher.Dispatcher.ForDefaultValue.OfNonPrimitiveArray
A dispatcher for a non-primitive array type.
|
protected static class |
JavaDispatcher.Dispatcher.ForDefaultValue.OfPrimitiveArray
A dispatcher for returning a default value for a primitive array.
|
JavaDispatcher.Dispatcher.ForConstructor, JavaDispatcher.Dispatcher.ForContainerCreation, JavaDispatcher.Dispatcher.ForDefaultValue, JavaDispatcher.Dispatcher.ForInstanceCheck, JavaDispatcher.Dispatcher.ForNonStaticMethod, JavaDispatcher.Dispatcher.ForStaticMethod, JavaDispatcher.Dispatcher.ForUnresolvedMethod| Enum Constant and Description |
|---|
BOOLEAN
A dispatcher for a
boolean type. |
BOOLEAN_REVERSE
A dispatcher for a
boolean type that returns true. |
BYTE
A dispatcher for a
byte type. |
CHARACTER
A dispatcher for a
char type. |
DOUBLE
A dispatcher for a
double type. |
FLOAT
A dispatcher for a
float type. |
INTEGER
A dispatcher for an
int type. |
LONG
A dispatcher for a
long type. |
REFERENCE
A dispatcher for a reference type.
|
SHORT
A dispatcher for a
short type. |
VOID
A dispatcher for a
void type. |
| Modifier and Type | Method and Description |
|---|---|
int |
apply(MethodVisitor methodVisitor,
Method method)
Implements this dispatcher in a generated proxy.
|
Object |
invoke(Object[] argument)
Invokes the proxied action.
|
protected static JavaDispatcher.Dispatcher |
of(Class<?> type)
Resolves a fixed value for a given type.
|
static JavaDispatcher.Dispatcher.ForDefaultValue |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JavaDispatcher.Dispatcher.ForDefaultValue[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaDispatcher.Dispatcher.ForDefaultValue VOID
void type.public static final JavaDispatcher.Dispatcher.ForDefaultValue BOOLEAN
boolean type.public static final JavaDispatcher.Dispatcher.ForDefaultValue BOOLEAN_REVERSE
boolean type that returns true.public static final JavaDispatcher.Dispatcher.ForDefaultValue BYTE
byte type.public static final JavaDispatcher.Dispatcher.ForDefaultValue SHORT
short type.public static final JavaDispatcher.Dispatcher.ForDefaultValue CHARACTER
char type.public static final JavaDispatcher.Dispatcher.ForDefaultValue INTEGER
int type.public static final JavaDispatcher.Dispatcher.ForDefaultValue LONG
long type.public static final JavaDispatcher.Dispatcher.ForDefaultValue FLOAT
float type.public static final JavaDispatcher.Dispatcher.ForDefaultValue DOUBLE
double type.public static final JavaDispatcher.Dispatcher.ForDefaultValue REFERENCE
public static JavaDispatcher.Dispatcher.ForDefaultValue[] values()
for (JavaDispatcher.Dispatcher.ForDefaultValue c : JavaDispatcher.Dispatcher.ForDefaultValue.values()) System.out.println(c);
public static JavaDispatcher.Dispatcher.ForDefaultValue valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullprotected static JavaDispatcher.Dispatcher of(Class<?> type)
type - The type to resolve.@MaybeNull public Object invoke(Object[] argument)
invoke in interface JavaDispatcher.Dispatcherargument - The arguments provided.public int apply(MethodVisitor methodVisitor, Method method)
apply in interface JavaDispatcher.DispatchermethodVisitor - The method visitor to implement the method with.method - The method being implemented.Copyright © 2014–2024. All rights reserved.