| java.lang.Object pnuts.compiler.ClassFile
ClassFile | public class ClassFile (Code) | | This class provides a way of making Java class file image.
|
Inner Class :static class ExceptionAttr | |
Inner Class :static class MethodInfo | |
Inner Class :static class FieldInfo | |
Inner Class :static class ExceptionTableEntry | |
Inner Class :static class LineNumberTable | |
Method Summary | |
public void | add(byte opcode) | public void | add(byte opcode, Label label) | public void | add(byte opcode, int operand) | public void | add(byte opcode, int operand1, int operand2) | public void | add(byte opcode, String className) | public void | add(byte opcode, String className, String fieldName, String fieldType) | public void | add(byte opcode, String className, String methodName, String parametersType, String returnType) | public void | addByte(byte val) | public short | addConstant(String value) | public void | addConstant(String fieldName, String type, short flags, short valueIndex) | public void | addConstant(String fieldName, String type, short flags, int value) | public void | addConstant(String fieldName, String type, short flags, long value) | public void | addConstant(String fieldName, String type, short flags, double value) | public void | addConstant(String fieldName, String type, short flags, String value) | public void | addExceptionHandler(Label startLabel, Label endLabel, Label handlerLabel, String catchClassName) | public void | addField(String fieldName, String type, short accessFlags) | public void | addInt(int ival) | public void | addInterface(String interfaceName) | public void | addLineNumber(int line) | public void | closeMethod() | public int | codeSize() | public int | declareLocal() | public void | dloadLocal(int index) | public void | floadLocal(int index) | public void | freeLocal(int index) | public String | getClassName() | public ByteBuffer | getCodeBuffer() | public Label | getLabel() | public Label | getLabel(boolean fixed) | public int | getLocal() | public void | iloadLocal(int index) | public void | istoreLocal(int index) | public void | lloadLocal(int index) | public void | loadLocal(int index) | public void | openMethod(String methodName, String type, short flag) | public void | openMethod(String methodName, String type, short flag, String[] exceptions) | public void | popStack() | public void | pushDouble(double number) | public void | pushFloat(float number) | public void | pushInteger(int number) | void | pushLargeString(String str) | public void | pushLong(long number) | public void | pushString(String str) | public void | reserveStack(int size) | public void | setCodeBuffer(ByteBuffer cbuf) | public void | shift(int offset) | public static String | signature(Class[] paramTypes) | public static String | signature(Class clazz) | final public static int | sizeOfParameters(String sig) | static int | sizeOfParameters(char c, int offset) | final public static int | sizeOfReturn(String sig) | public void | storeLocal(int index) | public String | toString() | void | updateStack(byte opcode) | public void | write(OutputStream stream) |
stackGrowth | final static byte[] stackGrowth(Code) | | The effect on the operand stack of a given opcode.
|
add | public void add(byte opcode)(Code) | | |
add | public void add(byte opcode, int operand)(Code) | | |
add | public void add(byte opcode, int operand1, int operand2)(Code) | | |
addByte | public void addByte(byte val)(Code) | | |
addConstant | public void addConstant(String fieldName, String type, short flags, short valueIndex)(Code) | | |
addConstant | public void addConstant(String fieldName, String type, short flags, int value)(Code) | | |
addConstant | public void addConstant(String fieldName, String type, short flags, long value)(Code) | | |
addConstant | public void addConstant(String fieldName, String type, short flags, double value)(Code) | | |
addInt | public void addInt(int ival)(Code) | | |
addInterface | public void addInterface(String interfaceName)(Code) | | |
addLineNumber | public void addLineNumber(int line)(Code) | | |
closeMethod | public void closeMethod()(Code) | | |
codeSize | public int codeSize()(Code) | | |
declareLocal | public int declareLocal()(Code) | | |
dloadLocal | public void dloadLocal(int index)(Code) | | |
floadLocal | public void floadLocal(int index)(Code) | | |
freeLocal | public void freeLocal(int index)(Code) | | |
getLocal | public int getLocal()(Code) | | |
iloadLocal | public void iloadLocal(int index)(Code) | | |
istoreLocal | public void istoreLocal(int index)(Code) | | |
lloadLocal | public void lloadLocal(int index)(Code) | | |
loadLocal | public void loadLocal(int index)(Code) | | |
popStack | public void popStack()(Code) | | |
pushDouble | public void pushDouble(double number)(Code) | | |
pushFloat | public void pushFloat(float number)(Code) | | |
pushInteger | public void pushInteger(int number)(Code) | | |
pushLong | public void pushLong(long number)(Code) | | |
reserveStack | public void reserveStack(int size)(Code) | | |
shift | public void shift(int offset)(Code) | | |
sizeOfParameters | final public static int sizeOfParameters(String sig)(Code) | | |
sizeOfParameters | static int sizeOfParameters(char c, int offset)(Code) | | |
sizeOfReturn | final public static int sizeOfReturn(String sig)(Code) | | |
storeLocal | public void storeLocal(int index)(Code) | | |
updateStack | void updateStack(byte opcode)(Code) | | |
|
|