|
|||||||||
| 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 LoadInstruction

java.lang.Objectcom.techtrader.modules.tools.bytecode.Instruction
com.techtrader.modules.tools.bytecode.LocalVariableInstruction
com.techtrader.modules.tools.bytecode.TypedLocalVariableInstruction
com.techtrader.modules.tools.bytecode.LoadInstruction
- All Implemented Interfaces:
- Constants, com.techtrader.modules.tools.bytecode.visitor.VisitAcceptor
- public class LoadInstruction
- extends TypedLocalVariableInstruction
Represents an instruction to load a value from a local variable onto the stack; can be any of aload_*, iload_*, etc.
| Field Summary |
| Fields inherited from class com.techtrader.modules.tools.bytecode.TypedLocalVariableInstruction |
_type, _typeNames |
| 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 |
LoadInstruction(Code owner)
|
protected |
LoadInstruction(Code owner,
int opcode,
java.lang.Class type,
int index)
|
| 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. |
protected void |
calculateOpCode()
Subclasses with variable opcodes can use this method to be notified that information possibly affecting the opcode has been changed. |
boolean |
equals(java.lang.Object other)
Two local variable instructions are equal if the local index they reference is equal and their types are equal, or if either index is 0/unset. |
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. |
protected void |
readData(java.io.DataInput in)
Read the arguments for this opcode from the given stream. |
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.TypedLocalVariableInstruction |
copy, getType, getTypeName, setType, setTypeName |
| Methods inherited from class com.techtrader.modules.tools.bytecode.LocalVariableInstruction |
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 |
| Constructor Detail |
LoadInstruction
protected LoadInstruction(Code owner)
LoadInstruction
protected LoadInstruction(Code owner, int opcode, java.lang.Class type, int index)
| Method Detail |
equals
public boolean equals(java.lang.Object other)
- Description copied from class:
TypedLocalVariableInstruction - Two local variable instructions are equal if the local index they
reference is equal and their types are equal,
or if either index is 0/unset.
- Overrides:
equalsin classTypedLocalVariableInstruction
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 classInstruction
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 classInstruction
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 classInstruction
calculateOpCode
protected void calculateOpCode()
- Description copied from class:
LocalVariableInstruction - Subclasses with variable opcodes can use this method to be
notified that information possibly affecting the opcode has been
changed.
- Overrides:
calculateOpCodein classLocalVariableInstruction
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 classInstruction
|
|||||||||
| 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