public enum MethodVariableStore extends Enum<MethodVariableStore>
This class is a copy of MethodVariableLoader with a few things changed to make it suitable for storing.
Modifier and Type | Class and Description |
---|---|
protected class |
MethodVariableStore.ArgumentStoringStackManipulation
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 MethodVariableStore |
forType(net.bytebuddy.description.type.TypeDescription typeDescription)
Locates the correct accessor for a variable of a given type.
|
net.bytebuddy.implementation.bytecode.StackManipulation |
storeOffset(int variableOffset)
Creates a stack assignment for a given index of the local variable array.
|
String |
toString() |
static MethodVariableStore |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MethodVariableStore[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MethodVariableStore INTEGER
public static final MethodVariableStore LONG
long
.public static final MethodVariableStore FLOAT
float
.public static final MethodVariableStore DOUBLE
double
.public static final MethodVariableStore REFERENCE
public static MethodVariableStore[] values()
for (MethodVariableStore c : MethodVariableStore.values()) System.out.println(c);
public static MethodVariableStore 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 MethodVariableStore forType(net.bytebuddy.description.type.TypeDescription typeDescription)
typeDescription
- The type of the variable to be loaded.public net.bytebuddy.implementation.bytecode.StackManipulation storeOffset(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<MethodVariableStore>
Copyright © 2015. All rights reserved.