public enum MethodVariableAccess extends Enum<MethodVariableAccess>
Modifier and Type | Class and Description |
---|---|
static class |
MethodVariableAccess.MethodLoading
A stack manipulation that loads all parameters of a given method onto the operand stack.
|
protected class |
MethodVariableAccess.OffsetLoading
A stack manipulation for loading a variable of a method's local variable array onto the operand stack.
|
Enum Constant and Description |
---|
DOUBLE
The accessor handler for a
double . |
FLOAT
The accessor handler for a
float . |
INTEGER
The accessor handler for a JVM-integer.
|
LONG
The accessor handler for a
long . |
REFERENCE
The accessor handler for a reference type.
|
Modifier and Type | Method and Description |
---|---|
static MethodVariableAccess.MethodLoading |
allArgumentsOf(MethodDescription methodDescription)
Loads all arguments of the provided method onto the operand stack.
|
StackManipulation |
loadOffset(int variableOffset)
Creates a stack assignment for a given index of the local variable array.
|
static MethodVariableAccess |
of(TypeDefinition typeDefinition)
Locates the correct accessor for a variable of a given type.
|
String |
toString() |
static MethodVariableAccess |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MethodVariableAccess[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MethodVariableAccess INTEGER
public static final MethodVariableAccess LONG
long
.public static final MethodVariableAccess FLOAT
float
.public static final MethodVariableAccess DOUBLE
double
.public static final MethodVariableAccess REFERENCE
public static MethodVariableAccess[] values()
for (MethodVariableAccess c : MethodVariableAccess.values()) System.out.println(c);
public static MethodVariableAccess 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 nullpublic static MethodVariableAccess of(TypeDefinition typeDefinition)
typeDefinition
- The type of the variable to be loaded.public static MethodVariableAccess.MethodLoading allArgumentsOf(MethodDescription methodDescription)
methodDescription
- The method for which all parameters are to be loaded onto the operand stack.public StackManipulation loadOffset(int variableOffset)
The index has to be relative to the method's local variable array size.
variableOffset
- The offset of the variable where double
and long
types
count two slots.public String toString()
toString
in class Enum<MethodVariableAccess>
Copyright © 2014–2016. All rights reserved.