public class MethodGenerator extends Object
Modifier and Type | Method and Description |
---|---|
void |
boxIfNeeded(Class clazz) |
void |
castVariable(int varIndex,
String className) |
void |
castVariableIntoVariable(int sourceVarIndex,
String className,
int targetVarIndex) |
void |
checkCast(String className) |
void |
dup() |
void |
endIf(Label label) |
void |
invokeConstructor(String owner,
String desc) |
void |
invokeMethod(String owner,
String name,
String desc) |
void |
invokeMethodCustom(int opcode,
String owner,
String name,
String desc) |
void |
invokeStaticMethod(String owner,
String name,
String desc) |
Label |
jumpIfNull() |
void |
loadArrayItem() |
void |
loadArrayItemFromVariable(int variablePos,
int index) |
void |
loadConstant(Object value) |
void |
loadField(Class owner,
Field field) |
void |
loadField(String internalClassName,
String name,
String descriptor) |
void |
loadStaticField(String internalClassName,
String name,
String descriptor) |
void |
loadThis() |
int |
loadVariable(Class type,
int index) |
void |
loadVariable(int varIndex) |
void |
loadVariableInt(int varIndex) |
void |
newArray(String className,
int length) |
void |
newArrayByVar(String className,
int varIndex) |
static MethodGenerator |
newConstructor(ClassVisitor classVisitor,
String desc) |
void |
newInstance(String className) |
static MethodGenerator |
newMethod(ClassVisitor classVisitor,
String name,
String desc) |
static MethodGenerator |
newMethod(ClassVisitor classVisitor,
String name,
String desc,
String[] exceptions) |
static MethodGenerator |
newStaticConstructor(ClassVisitor classVisitor,
String desc) |
static MethodGenerator |
newVarargsMethod(ClassVisitor classVisitor,
String name,
String desc,
String[] exceptions) |
void |
pop() |
void |
prepareResult(Class clazz) |
void |
returnDouble() |
void |
returnFloat() |
void |
returnInt() |
void |
returnLong() |
void |
returnObject() |
void |
returnResult(Class clazz) |
void |
returnVoid() |
void |
start() |
void |
storeArrayItem() |
void |
storeField(Class owner,
Field field) |
void |
storeField(String internalClassName,
String name,
String descriptor) |
void |
storeStaticField(String internalClassName,
String name,
String descriptor) |
void |
storeVariable(int varIndex) |
void |
unboxIfNeeded(Class clazz) |
public static MethodGenerator newConstructor(ClassVisitor classVisitor, String desc)
public static MethodGenerator newStaticConstructor(ClassVisitor classVisitor, String desc)
public static MethodGenerator newMethod(ClassVisitor classVisitor, String name, String desc)
public static MethodGenerator newMethod(ClassVisitor classVisitor, String name, String desc, String[] exceptions)
public static MethodGenerator newVarargsMethod(ClassVisitor classVisitor, String name, String desc, String[] exceptions)
public void returnVoid()
public void returnObject()
public void returnInt()
public void returnLong()
public void returnFloat()
public void returnDouble()
public void returnResult(Class clazz)
public void loadStaticField(String internalClassName, String name, String descriptor)
public void storeStaticField(String internalClassName, String name, String descriptor)
public void loadVariable(int varIndex)
public void loadThis()
public void loadVariableInt(int varIndex)
public void storeVariable(int varIndex)
public int loadVariable(Class type, int index)
public void loadArrayItem()
public void loadArrayItemFromVariable(int variablePos, int index)
public void storeArrayItem()
public void invokeMethodCustom(int opcode, String owner, String name, String desc)
public void newInstance(String className)
public void newArrayByVar(String className, int varIndex)
public void newArray(String className, int length)
public void checkCast(String className)
public void castVariable(int varIndex, String className)
public void castVariableIntoVariable(int sourceVarIndex, String className, int targetVarIndex)
public Label jumpIfNull()
public void endIf(Label label)
public void start()
public void dup()
public void pop()
public void loadConstant(Object value)
public void unboxIfNeeded(Class clazz)
public void boxIfNeeded(Class clazz)
public void prepareResult(Class clazz)
Copyright © GigaSpaces.