public InstructionBuilder(ClassGen cg, ConstantPoolGen cp)(Code)
Constructor.
Parameters: cg - class generation information Parameters: cp - constant pool generator
Method Detail
createCallInit
public InvokeInstruction createCallInit(String name, String signature)(Code)
Create invoke initializer instruction from signature.
Parameters: name - fully qualified class name Parameters: signature - method signature in standard form generated instruction information
createCallInterface
public InvokeInstruction createCallInterface(ClassItem item)(Code)
Create invoke instruction for interface method. Uses the method
information to generate the instruction.
Parameters: item - information for method to be called generated instruction information
createCallInterface
public InvokeInstruction createCallInterface(String method, String signature)(Code)
Create invoke interface method instruction from signature.
Parameters: method - fully qualified interface and method name Parameters: signature - method signature in standard form generated instruction information
createCallStatic
public InvokeInstruction createCallStatic(ClassItem item)(Code)
Create invoke instruction for static method. Uses the method information
to generate the instruction.
Parameters: item - information for method to be called generated instruction information
createCallStatic
public InvokeInstruction createCallStatic(String method, String signature)(Code)
Create invoke static method instruction from signature.
Parameters: method - fully qualified class and method name Parameters: signature - method signature in standard form generated instruction information
createCallVirtual
public InvokeInstruction createCallVirtual(ClassItem item)(Code)
Create invoke instruction for virtual method. Uses the method information
to generate the instruction.
Parameters: item - information for method to be called generated instruction information
createCallVirtual
public InvokeInstruction createCallVirtual(String method, String signature)(Code)
Create invoke virtual method instruction from signature.
Parameters: method - fully qualified class and method name Parameters: signature - method signature in standard form generated instruction information
createGetField
public FieldInstruction createGetField(ClassItem item)(Code)
Create getfield instruction. Uses the field information to generate
the instruction.
Parameters: item - information for field to be set generated instruction information
createGetStatic
public FieldInstruction createGetStatic(ClassItem item)(Code)
Create getstatic instruction. Uses the field information to generate
the instruction.
Parameters: item - information for field to be set generated instruction information
createLoadConstant
public CompoundInstruction createLoadConstant(int value)(Code)
Create load constant instruction. Builds the most appropriate type of
instruction for the value.
Parameters: value - constant value to be loaded generated instruction information
createLoadConstant
public CompoundInstruction createLoadConstant(String value)(Code)
Create load constant instruction. Loads a String reference
from the constant pool.
Parameters: value - constant value to be loaded generated instruction information
createLoadConstant
public CompoundInstruction createLoadConstant(Object value)(Code)
Create load constant instruction. Loads an unwrapped primitive value or
String from the constant pool.
Parameters: value - constant value to be loaded generated instruction information
createPutField
public FieldInstruction createPutField(ClassItem item)(Code)
Create putfield instruction. Uses the field information to generate
the instruction.
Parameters: item - information for field to be set generated instruction information
createPutStatic
public FieldInstruction createPutStatic(ClassItem item)(Code)
Create putstatic instruction. Uses the field information to generate
the instruction.
Parameters: item - information for field to be set generated instruction information