|
|||||||||
| Home >> All >> com >> techtrader >> modules >> tools >> [ bytecode overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.techtrader.modules.tools.bytecode
Class WideInstruction

java.lang.Objectcom.techtrader.modules.tools.bytecode.Instruction
com.techtrader.modules.tools.bytecode.LocalVariableInstruction
com.techtrader.modules.tools.bytecode.IIncInstruction
com.techtrader.modules.tools.bytecode.WideInstruction
- All Implemented Interfaces:
- Constants, com.techtrader.modules.tools.bytecode.visitor.VisitAcceptor
- public class WideInstruction
- extends IIncInstruction
Representation of the WIDE instruction, which is used to allow other instructions to index values beyond what they can normally index baed on the length of their arguments.
| Field Summary | |
private int |
_ins
|
| Fields inherited from class com.techtrader.modules.tools.bytecode.IIncInstruction |
|
| Fields inherited from class com.techtrader.modules.tools.bytecode.LocalVariableInstruction |
_index |
| Fields inherited from class com.techtrader.modules.tools.bytecode.Instruction |
_byteIndex, _opcode, _opcodeTypes, _owner |
| Constructor Summary | |
protected |
WideInstruction(Code owner)
|
| Method Summary | |
void |
acceptVisit(com.techtrader.modules.tools.bytecode.visitor.BCVisitor visit)
Accept a visit from a BCVisitor, calling the appropriate methods to notify the visitor that it has entered this entity, and to provide it with the proper callbacks for each sub-entity owned by this object. |
WideInstruction |
aload()
Set the type of instruction this wide instruction modifies. |
WideInstruction |
astore()
Set the type of instruction this wide instruction modifies. |
protected void |
copy(Instruction orig)
|
WideInstruction |
dload()
Set the type of instruction this wide instruction modifies. |
WideInstruction |
dstore()
Set the type of instruction this wide instruction modifies. |
WideInstruction |
fload()
Set the type of instruction this wide instruction modifies. |
WideInstruction |
fstore()
Set the type of instruction this wide instruction modifies. |
int |
getInstruction()
Get the code of the instruction to modify; this will return one of the constants defined in Constants. |
int |
getLength()
Return the length in bytes of this opcode, including all arguments. |
int |
getStackChange()
Return the number of stack positions this instruction pushes or pops during its execution. |
WideInstruction |
iinc()
Set the type of instruction this wide instruction modifies. |
WideInstruction |
iload()
Set the type of instruction this wide instruction modifies. |
WideInstruction |
istore()
Set the type of instruction this wide instruction modifies. |
WideInstruction |
lload()
Set the type of instruction this wide instruction modifies. |
WideInstruction |
lstore()
Set the type of instruction this wide instruction modifies. |
protected void |
readData(java.io.DataInput in)
Read the arguments for this opcode from the given stream. |
WideInstruction |
ret()
Set the type of instruction this wide instruction modifies. |
WideInstruction |
setInstruction(int code)
Set the code of the instruction to modify. |
protected void |
writeData(java.io.DataOutput out)
Write the arguments for this opcode to the given stream. |
| Methods inherited from class com.techtrader.modules.tools.bytecode.IIncInstruction |
equals, getIncrement, setIncrement |
| Methods inherited from class com.techtrader.modules.tools.bytecode.LocalVariableInstruction |
calculateOpCode, getIndex, setIndex |
| Methods inherited from class com.techtrader.modules.tools.bytecode.Instruction |
getByteIndex, getName, getOpCode, getOwner, invalidate, setByteIndex, setOpCode |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
_ins
private int _ins
| Constructor Detail |
WideInstruction
protected WideInstruction(Code owner)
| Method Detail |
iinc
public WideInstruction iinc()
- Set the type of instruction this wide instruction modifies.
ret
public WideInstruction ret()
- Set the type of instruction this wide instruction modifies.
iload
public WideInstruction iload()
- Set the type of instruction this wide instruction modifies.
fload
public WideInstruction fload()
- Set the type of instruction this wide instruction modifies.
aload
public WideInstruction aload()
- Set the type of instruction this wide instruction modifies.
lload
public WideInstruction lload()
- Set the type of instruction this wide instruction modifies.
dload
public WideInstruction dload()
- Set the type of instruction this wide instruction modifies.
istore
public WideInstruction istore()
- Set the type of instruction this wide instruction modifies.
fstore
public WideInstruction fstore()
- Set the type of instruction this wide instruction modifies.
astore
public WideInstruction astore()
- Set the type of instruction this wide instruction modifies.
lstore
public WideInstruction lstore()
- Set the type of instruction this wide instruction modifies.
dstore
public WideInstruction dstore()
- Set the type of instruction this wide instruction modifies.
setInstruction
public WideInstruction setInstruction(int code)
- Set the code of the instruction to modify. Should be one of:
IINC, RET, ILOAD, ALOAD, FLOAD, DLOAD, LLOAD, ISTORE, ASTORE, FSTORE,
DSTORE, LSTORE.
getInstruction
public int getInstruction()
- Get the code of the instruction to modify; this will return one
of the constants defined in Constants.
copy
protected void copy(Instruction orig)
- Overrides:
copyin classIIncInstruction
getLength
public int getLength()
- Description copied from class:
Instruction - Return the length in bytes of this opcode, including all arguments.
This method should be overridden by opcodes that take arguments.
- Overrides:
getLengthin classIIncInstruction
getStackChange
public int getStackChange()
- Description copied from class:
Instruction - Return the number of stack positions this instruction pushes
or pops during its execution.
- Overrides:
getStackChangein classInstruction
readData
protected void readData(java.io.DataInput in) throws java.io.IOException
- Description copied from class:
Instruction - Read the arguments for this opcode from the given stream.
This method should be overridden by opcodes that take arguments.
- Overrides:
readDatain classIIncInstruction
writeData
protected void writeData(java.io.DataOutput out) throws java.io.IOException
- Description copied from class:
Instruction - Write the arguments for this opcode to the given stream.
This method should be overridden by opcodes that take arguments.
- Overrides:
writeDatain classIIncInstruction
acceptVisit
public void acceptVisit(com.techtrader.modules.tools.bytecode.visitor.BCVisitor visit)
- Description copied from interface:
com.techtrader.modules.tools.bytecode.visitor.VisitAcceptor - Accept a visit from a BCVisitor, calling the appropriate methods
to notify the visitor that it has entered this entity, and
to provide it with the proper callbacks for each sub-entity owned
by this object.
- Specified by:
acceptVisitin interfacecom.techtrader.modules.tools.bytecode.visitor.VisitAcceptor- Overrides:
acceptVisitin classIIncInstruction
|
|||||||||
| Home >> All >> com >> techtrader >> modules >> tools >> [ bytecode overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC