public class CodeWriterAttribute extends CodeAttribute
CodeAttribute.ExceptionItem, CodeAttribute.ExportAnalyzer
Constructor and Description |
---|
CodeWriterAttribute(JavaClass jClass) |
Modifier and Type | Method and Description |
---|---|
int |
addClass(java.lang.String className) |
void |
addDoubleReturn() |
int |
addFieldRef(java.lang.String className,
java.lang.String fieldName,
java.lang.String sig) |
void |
addFloatReturn() |
int |
addInterfaceMethodRef(java.lang.String className,
java.lang.String methodName,
java.lang.String sig) |
void |
addIntReturn() |
void |
addLongReturn() |
int |
addMethodRef(java.lang.String className,
java.lang.String methodName,
java.lang.String sig) |
void |
addObjectReturn() |
void |
addReturn() |
void |
addThrow() |
int |
addUTF8(java.lang.String code) |
void |
cast(java.lang.String className) |
void |
close() |
void |
dup() |
void |
getArrayObject() |
ConstantPool |
getConstantPool() |
void |
getField(java.lang.String className,
java.lang.String fieldName,
java.lang.String sig) |
void |
getStatic(java.lang.String className,
java.lang.String fieldName,
java.lang.String sig) |
void |
invoke(java.lang.String className,
java.lang.String methodName,
java.lang.String signature,
int argStack,
int returnStack) |
void |
invokeInterface(java.lang.String className,
java.lang.String methodName,
java.lang.String signature,
int argStack,
int returnStack) |
void |
invokespecial(java.lang.String className,
java.lang.String methodName,
java.lang.String signature,
int argStack,
int returnStack) |
void |
invokestatic(java.lang.String className,
java.lang.String methodName,
java.lang.String signature,
int argStack,
int returnStack) |
void |
newInstance(java.lang.String className) |
void |
newObjectArray(java.lang.String className) |
void |
pushDoubleVar(int index) |
void |
pushFloatVar(int index) |
void |
pushInt(int value) |
void |
pushIntVar(int index) |
void |
pushLongVar(int index) |
void |
pushNull() |
void |
pushObjectVar(int index) |
void |
putField(java.lang.String className,
java.lang.String fieldName,
java.lang.String sig) |
void |
putStatic(java.lang.String className,
java.lang.String fieldName,
java.lang.String sig) |
void |
setArrayObject() |
addAttribute, addException, export, exportCode, getAttributes, getCode, getExceptions, getJavaClass, getMaxLocals, getMaxStack, read, removeAttribute, setAttributes, setCode, setJavaClass, setMaxLocals, setMaxStack, toString, write
addConstants, getName
public CodeWriterAttribute(JavaClass jClass)
public void cast(java.lang.String className)
public void getField(java.lang.String className, java.lang.String fieldName, java.lang.String sig)
public void putField(java.lang.String className, java.lang.String fieldName, java.lang.String sig)
public void getStatic(java.lang.String className, java.lang.String fieldName, java.lang.String sig)
public void putStatic(java.lang.String className, java.lang.String fieldName, java.lang.String sig)
public void getArrayObject()
public void setArrayObject()
public void pushObjectVar(int index)
public void pushIntVar(int index)
public void pushLongVar(int index)
public void pushFloatVar(int index)
public void pushDoubleVar(int index)
public void pushNull()
public void pushInt(int value)
public void invoke(java.lang.String className, java.lang.String methodName, java.lang.String signature, int argStack, int returnStack)
public void invokeInterface(java.lang.String className, java.lang.String methodName, java.lang.String signature, int argStack, int returnStack)
public void newInstance(java.lang.String className)
public void newObjectArray(java.lang.String className)
public void dup()
public void invokespecial(java.lang.String className, java.lang.String methodName, java.lang.String signature, int argStack, int returnStack)
public void invokestatic(java.lang.String className, java.lang.String methodName, java.lang.String signature, int argStack, int returnStack)
public void addThrow()
public void addReturn()
public void addIntReturn()
public void addLongReturn()
public void addFloatReturn()
public void addDoubleReturn()
public void addObjectReturn()
public int addFieldRef(java.lang.String className, java.lang.String fieldName, java.lang.String sig)
public int addMethodRef(java.lang.String className, java.lang.String methodName, java.lang.String sig)
public int addInterfaceMethodRef(java.lang.String className, java.lang.String methodName, java.lang.String sig)
public int addUTF8(java.lang.String code)
public int addClass(java.lang.String className)
public ConstantPool getConstantPool()
public void close()