com.techtrader.modules.tools.bytecode
Class ArrayLoadInstruction
java.lang.Object
|
+--com.techtrader.modules.tools.bytecode.Instruction
|
+--com.techtrader.modules.tools.bytecode.ArrayInstruction
|
+--com.techtrader.modules.tools.bytecode.ArrayLoadInstruction
- public class ArrayLoadInstruction
- extends ArrayInstruction
Represents any array load instruction.
- Author:
- Abe White
Method Summary |
void |
acceptVisitor(BCVisitor visit)
|
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(Object other)
Two array instructions are equal if the index and type they
reference are equal or if either index is 0/unset. |
int |
getStackChange()
Return the number of stack positions this instruction pushes
or pops during its execution. |
Methods inherited from class com.techtrader.modules.tools.bytecode.Instruction |
acceptVisit,
getByteIndex,
getLength,
getName,
getOpCode,
getOwner,
invalidate,
readData,
setByteIndex,
setOpCode,
writeData |
ArrayLoadInstruction
protected ArrayLoadInstruction(Code owner)
ArrayLoadInstruction
protected ArrayLoadInstruction(Code owner,
int opcode,
Class type)
getStackChange
public int getStackChange()
- Description copied from class: Instruction
- Return the number of stack positions this instruction pushes
or pops during its execution.
- Overrides:
- getStackChange in class Instruction
- Tags copied from class: Instruction
- Returns:
- 0 if the stack is not affected by this instruction, a
positive number if it pushes onto the stack, and a negative
number if it pops from the stack
equals
public boolean equals(Object other)
- Description copied from class: ArrayInstruction
- Two array instructions are equal if the index and type they
reference are equal or if either index is 0/unset.
- Overrides:
- equals in class ArrayInstruction
calculateOpCode
protected void calculateOpCode()
- Description copied from class: ArrayInstruction
- Subclasses with variable opcodes can use this method to be
notified that information possibly affecting the opcode has been
changed.
- Overrides:
- calculateOpCode in class ArrayInstruction
acceptVisitor
public void acceptVisitor(BCVisitor visit)