Public Methods | |
InstructionFactory (ClassGen cg) | |
Instruction | createCast (Type src_type, Type dest_type) |
CHECKCAST | createCheckCast (ReferenceType t) |
GETFIELD | createGetField (String class_name, String name, Type t) |
GETSTATIC | createGetStatic (String class_name, String name, Type t) |
InvokeInstruction | createInvoke (String class_name, String name, Type ret_type, Type[] arg_types, short kind) |
NEW | createNew (ObjectType t) |
NEW | createNew (String s) |
AllocationInstruction | createNewArray (Type t, short dim) |
PUTFIELD | createPutField (String class_name, String name, Type t) |
PUTSTATIC | createPutStatic (String class_name, String name, Type t) |
InstructionFactory (ClassGen cg) | |
InstructionFactory (ClassGen cg, ConstantPoolGen cp) | |
InstructionFactory (ConstantPoolGen cp) | |
Instruction | createCast (Type src_type, Type dest_type) |
CHECKCAST | createCheckCast (ReferenceType t) |
FieldInstruction | createFieldAccess (String class_name, String name, Type type, short kind) |
GETFIELD | createGetField (String class_name, String name, Type t) |
GETSTATIC | createGetStatic (String class_name, String name, Type t) |
InvokeInstruction | createInvoke (String class_name, String name, Type ret_type, Type[] arg_types, short kind) |
NEW | createNew (ObjectType t) |
NEW | createNew (String s) |
AllocationInstruction | createNewArray (Type t, short dim) |
PUTFIELD | createPutField (String class_name, String name, Type t) |
PUTSTATIC | createPutStatic (String class_name, String name, Type t) |
ClassGen | getClassGen () |
ConstantPoolGen | getConstantPool () |
void | setClassGen (ClassGen c) |
void | setConstantPool (ConstantPoolGen c) |
Static Public Methods | |
ArrayInstruction | createArrayLoad (Type type) |
ArrayInstruction | createArrayStore (Type type) |
ArithmeticInstruction | createBinaryOperation (String op, Type type) |
StackInstruction | createDup (int size) |
StackInstruction | createDup_1 (int size) |
StackInstruction | createDup_2 (int size) |
LocalVariableInstruction | createLoad (Type type, int index) |
Instruction | createNull (Type type) |
StackInstruction | createPop (int size) |
ReturnInstruction | createReturn (Type type) |
LocalVariableInstruction | createStore (Type type, int index) |
Instruction | createThis () |
ArrayInstruction | createArrayLoad (Type type) |
ArrayInstruction | createArrayStore (Type type) |
ArithmeticInstruction | createBinaryOperation (String op, Type type) |
BranchInstruction | createBranchInstruction (short opcode, InstructionHandle target) |
StackInstruction | createDup (int size) |
StackInstruction | createDup_1 (int size) |
StackInstruction | createDup_2 (int size) |
LocalVariableInstruction | createLoad (Type type, int index) |
Instruction | createNull (Type type) |
StackInstruction | createPop (int size) |
ReturnInstruction | createReturn (Type type) |
LocalVariableInstruction | createStore (Type type, int index) |
Instruction | createThis () |
Protected Attributes | |
ClassGen | cg |
ConstantPoolGen | cp |
Static Private Methods | |
final ArithmeticInstruction | createBinaryDoubleOp (char op) |
final ArithmeticInstruction | createBinaryFloatOp (char op) |
final ArithmeticInstruction | createBinaryIntOp (char first, String op) |
final ArithmeticInstruction | createBinaryLongOp (char first, String op) |
final ArithmeticInstruction | createBinaryDoubleOp (char op) |
final ArithmeticInstruction | createBinaryFloatOp (char op) |
final ArithmeticInstruction | createBinaryIntOp (char first, String op) |
final ArithmeticInstruction | createBinaryLongOp (char first, String op) |
Definition at line 14 of file lib/jpf/de/fub/bytecode/generic/InstructionFactory.java.
|
Need a ClassGen object to obtain a constant pool, e.g. Definition at line 20 of file lib/jpf/de/fub/bytecode/generic/InstructionFactory.java. |
|
Initialize with ClassGen object Definition at line 20 of file src/de/fub/bytecode/generic/InstructionFactory.java. |
|
Initialize just with ConstantPoolGen object Definition at line 29 of file src/de/fub/bytecode/generic/InstructionFactory.java. |
|
Definition at line 35 of file src/de/fub/bytecode/generic/InstructionFactory.java. |
|
Definition at line 27 of file lib/jpf/de/fub/bytecode/generic/InstructionFactory.java. |
|
Definition at line 53 of file src/de/fub/bytecode/generic/InstructionFactory.java. |
|
Definition at line 45 of file lib/jpf/de/fub/bytecode/generic/InstructionFactory.java. |
|
Create binary operation for simple basic types, such as int and float.
Definition at line 123 of file src/de/fub/bytecode/generic/InstructionFactory.java. |
|
Create binary operation for simple basic types, such as int and float.
Definition at line 115 of file lib/jpf/de/fub/bytecode/generic/InstructionFactory.java. |
|
Create branch instruction by given opcode, except LOOKUPSWITCH and TABLESWITCH. For those you should use the SWITCH compeund instruction. Definition at line 140 of file src/de/fub/bytecode/generic/InstructionFactory.java. |
|
Create conversion operation for two stack operands, this may be an I2C, instruction, e.g., if the operands are basic types and CHECKCAST if they are reference types. Definition at line 169 of file src/de/fub/bytecode/generic/InstructionFactory.java. |
|
Create conversion operation for two stack operands, this may be an I2C, instruction, e.g., if the operands are basic types and CHECKCAST if they are reference types. Definition at line 132 of file lib/jpf/de/fub/bytecode/generic/InstructionFactory.java. |
|
Definition at line 209 of file src/de/fub/bytecode/generic/InstructionFactory.java. |
|
Definition at line 172 of file lib/jpf/de/fub/bytecode/generic/InstructionFactory.java. |
|
Definition at line 216 of file src/de/fub/bytecode/generic/InstructionFactory.java. |
|
Definition at line 179 of file lib/jpf/de/fub/bytecode/generic/InstructionFactory.java. |
|
Definition at line 223 of file src/de/fub/bytecode/generic/InstructionFactory.java. |
|
Definition at line 186 of file lib/jpf/de/fub/bytecode/generic/InstructionFactory.java. |
|
Create a field instruction.
Definition at line 234 of file src/de/fub/bytecode/generic/InstructionFactory.java. |
|
Create an invoke instruction.
Definition at line 265 of file src/de/fub/bytecode/generic/InstructionFactory.java. |
|
Create an invoke instruction.
Definition at line 205 of file lib/jpf/de/fub/bytecode/generic/InstructionFactory.java. |
|
Definition at line 291 of file src/de/fub/bytecode/generic/InstructionFactory.java. |
|
Definition at line 231 of file lib/jpf/de/fub/bytecode/generic/InstructionFactory.java. |
|
Create new array of given size and type. Definition at line 314 of file src/de/fub/bytecode/generic/InstructionFactory.java. |
|
Create new array of given size and type. Definition at line 254 of file lib/jpf/de/fub/bytecode/generic/InstructionFactory.java. |
|
Create "null" value for reference types, 0 for basic types like int Definition at line 335 of file src/de/fub/bytecode/generic/InstructionFactory.java. |
|
Create "null" value for reference types, 0 for basic types like int Definition at line 298 of file lib/jpf/de/fub/bytecode/generic/InstructionFactory.java. |
|
Definition at line 356 of file src/de/fub/bytecode/generic/InstructionFactory.java. |
|
Definition at line 319 of file lib/jpf/de/fub/bytecode/generic/InstructionFactory.java. |
|
Create typed return Definition at line 368 of file src/de/fub/bytecode/generic/InstructionFactory.java. |
|
Create typed return Definition at line 331 of file lib/jpf/de/fub/bytecode/generic/InstructionFactory.java. |
|
Definition at line 389 of file src/de/fub/bytecode/generic/InstructionFactory.java. |
|
Definition at line 352 of file lib/jpf/de/fub/bytecode/generic/InstructionFactory.java. |
|
Create reference to `this' Definition at line 406 of file src/de/fub/bytecode/generic/InstructionFactory.java. |
|
Create reference to `this' Definition at line 369 of file lib/jpf/de/fub/bytecode/generic/InstructionFactory.java. |