public static enum Advice.Dispatcher.OffsetMapping.Target.PrimitiveDispatcher extends Enum<Advice.Dispatcher.OffsetMapping.Target.PrimitiveDispatcher>
Enum Constant and Description |
---|
BOOLEAN
A boxing dispatcher for the
boolean type. |
BYTE
A boxing dispatcher for the
byte type. |
CHARACTER
A boxing dispatcher for the
char type. |
DOUBLE
A boxing dispatcher for the
double type. |
FLOAT
A boxing dispatcher for the
float type. |
INTEGER
A boxing dispatcher for the
int type. |
LONG
A boxing dispatcher for the
long type. |
SHORT
A boxing dispatcher for the
short type. |
Modifier and Type | Method and Description |
---|---|
protected int |
box(MethodVisitor methodVisitor)
Boxes the current value on top of the operand stack.
|
protected StackSize |
getStackSize()
Returns the stack size of the primitive value.
|
protected int |
loadBoxed(MethodVisitor methodVisitor,
int offset)
Loads the value as a boxed version onto the stack.
|
protected static void |
loadInteger(MethodVisitor methodVisitor,
int value)
Loads a primitive integer value onto the operand stack.
|
protected void |
loadType(MethodVisitor methodVisitor)
Loads this instance's type constant onto the operand stack.
|
protected static Advice.Dispatcher.OffsetMapping.Target.PrimitiveDispatcher |
of(TypeDefinition typeDefinition)
Resolves a boxing dispatcher for the supplied primitive type.
|
protected int |
pushBoxedDefault(MethodVisitor methodVisitor)
Pushes the represented default value as a boxed value onto the operand stack.
|
protected int |
storeUnboxed(MethodVisitor methodVisitor,
int offset)
Stores the value as a unboxed version onto the stack.
|
String |
toString() |
static Advice.Dispatcher.OffsetMapping.Target.PrimitiveDispatcher |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Advice.Dispatcher.OffsetMapping.Target.PrimitiveDispatcher[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Advice.Dispatcher.OffsetMapping.Target.PrimitiveDispatcher BOOLEAN
boolean
type.public static final Advice.Dispatcher.OffsetMapping.Target.PrimitiveDispatcher BYTE
byte
type.public static final Advice.Dispatcher.OffsetMapping.Target.PrimitiveDispatcher SHORT
short
type.public static final Advice.Dispatcher.OffsetMapping.Target.PrimitiveDispatcher CHARACTER
char
type.public static final Advice.Dispatcher.OffsetMapping.Target.PrimitiveDispatcher INTEGER
int
type.public static final Advice.Dispatcher.OffsetMapping.Target.PrimitiveDispatcher LONG
long
type.public static final Advice.Dispatcher.OffsetMapping.Target.PrimitiveDispatcher FLOAT
float
type.public static final Advice.Dispatcher.OffsetMapping.Target.PrimitiveDispatcher DOUBLE
double
type.public static Advice.Dispatcher.OffsetMapping.Target.PrimitiveDispatcher[] values()
for (Advice.Dispatcher.OffsetMapping.Target.PrimitiveDispatcher c : Advice.Dispatcher.OffsetMapping.Target.PrimitiveDispatcher.values()) System.out.println(c);
public static Advice.Dispatcher.OffsetMapping.Target.PrimitiveDispatcher 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 Advice.Dispatcher.OffsetMapping.Target.PrimitiveDispatcher of(TypeDefinition typeDefinition)
typeDefinition
- A description of a primitive type.protected static void loadInteger(MethodVisitor methodVisitor, int value)
methodVisitor
- The method visitor to use.value
- The value to load onto the operand stack.protected int loadBoxed(MethodVisitor methodVisitor, int offset)
methodVisitor
- the method visitor for which to load the value.offset
- The offset of the primitive value.protected int box(MethodVisitor methodVisitor)
methodVisitor
- The method visitor to apply the boxing to.protected int storeUnboxed(MethodVisitor methodVisitor, int offset)
methodVisitor
- the method visitor for which to store the value.offset
- The offset of the primitive value.protected int pushBoxedDefault(MethodVisitor methodVisitor)
methodVisitor
- The method visitor to apply the changes to.protected void loadType(MethodVisitor methodVisitor)
methodVisitor
- The method visitor to use.protected StackSize getStackSize()
public String toString()
toString
in class Enum<Advice.Dispatcher.OffsetMapping.Target.PrimitiveDispatcher>
Copyright © 2014–2016. All rights reserved.