|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectInstructionFactory
org.jibx.binding.classes.InstructionBuilder
public class InstructionBuilder
Instruction builder. Extends the basic instruction construction tools in BCEL with some convenience methods.
Constructor Summary | |
---|---|
InstructionBuilder(ClassGen cg,
ConstantPoolGen cp)
Constructor. |
Method Summary | |
---|---|
InvokeInstruction |
createCallInit(java.lang.String name,
java.lang.String signature)
Create invoke initializer instruction from signature. |
InvokeInstruction |
createCallInterface(ClassItem item)
Create invoke instruction for interface method. |
InvokeInstruction |
createCallInterface(java.lang.String method,
java.lang.String signature)
Create invoke interface method instruction from signature. |
InvokeInstruction |
createCallStatic(ClassItem item)
Create invoke instruction for static method. |
InvokeInstruction |
createCallStatic(java.lang.String method,
java.lang.String signature)
Create invoke static method instruction from signature. |
InvokeInstruction |
createCallVirtual(ClassItem item)
Create invoke instruction for virtual method. |
InvokeInstruction |
createCallVirtual(java.lang.String method,
java.lang.String signature)
Create invoke virtual method instruction from signature. |
FieldInstruction |
createGetField(ClassItem item)
Create getfield instruction. |
FieldInstruction |
createGetStatic(ClassItem item)
Create getstatic instruction. |
CompoundInstruction |
createLoadConstant(int value)
Create load constant instruction. |
CompoundInstruction |
createLoadConstant(java.lang.Object value)
Create load constant instruction. |
CompoundInstruction |
createLoadConstant(java.lang.String value)
Create load constant instruction. |
FieldInstruction |
createPutField(ClassItem item)
Create putfield instruction. |
FieldInstruction |
createPutStatic(ClassItem item)
Create putstatic instruction. |
ConstantPoolGen |
getConstantPoolGen()
Get constant pool generator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InstructionBuilder(ClassGen cg, ConstantPoolGen cp)
cg
- class generation informationcp
- constant pool generatorMethod Detail |
---|
public ConstantPoolGen getConstantPoolGen()
public CompoundInstruction createLoadConstant(int value)
value
- constant value to be loaded
public CompoundInstruction createLoadConstant(java.lang.String value)
String
reference
from the constant pool.
value
- constant value to be loaded
public CompoundInstruction createLoadConstant(java.lang.Object value)
value
- constant value to be loaded
public FieldInstruction createGetField(ClassItem item)
item
- information for field to be set
public FieldInstruction createPutField(ClassItem item)
item
- information for field to be set
public FieldInstruction createGetStatic(ClassItem item)
item
- information for field to be set
public FieldInstruction createPutStatic(ClassItem item)
item
- information for field to be set
public InvokeInstruction createCallStatic(ClassItem item)
item
- information for method to be called
public InvokeInstruction createCallVirtual(ClassItem item)
item
- information for method to be called
public InvokeInstruction createCallInterface(ClassItem item)
item
- information for method to be called
public InvokeInstruction createCallStatic(java.lang.String method, java.lang.String signature)
method
- fully qualified class and method namesignature
- method signature in standard form
public InvokeInstruction createCallVirtual(java.lang.String method, java.lang.String signature)
method
- fully qualified class and method namesignature
- method signature in standard form
public InvokeInstruction createCallInterface(java.lang.String method, java.lang.String signature)
method
- fully qualified interface and method namesignature
- method signature in standard form
public InvokeInstruction createCallInit(java.lang.String name, java.lang.String signature)
name
- fully qualified class namesignature
- method signature in standard form
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |