TechTrader Bytecode Toolkit

com.techtrader.modules.tools.bytecode
Class ArrayStoreInstruction

java.lang.Object
  |
  +--com.techtrader.modules.tools.bytecode.Instruction
        |
        +--com.techtrader.modules.tools.bytecode.ArrayInstruction
              |
              +--com.techtrader.modules.tools.bytecode.ArrayStoreInstruction

public class ArrayStoreInstruction
extends ArrayInstruction

Represents any array store instruction.

Author:
Abe White

Fields inherited from class com.techtrader.modules.tools.bytecode.ArrayInstruction
_type, _typeNames
 
Fields inherited from class com.techtrader.modules.tools.bytecode.Instruction
_byteIndex, _opcode, _opcodeTypes, _owner
 
Constructor Summary
protected ArrayStoreInstruction(Code owner)
           
protected ArrayStoreInstruction(Code owner, int opcode, Class type)
           
 
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.ArrayInstruction
copy, getType, getTypeName, setType, setTypeName
 
Methods inherited from class com.techtrader.modules.tools.bytecode.Instruction
acceptVisit, getByteIndex, getLength, getName, getOpCode, getOwner, invalidate, readData, setByteIndex, setOpCode, writeData
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayStoreInstruction

protected ArrayStoreInstruction(Code owner)

ArrayStoreInstruction

protected ArrayStoreInstruction(Code owner,
                                int opcode,
                                Class type)
Method Detail

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)

TechTrader Bytecode Toolkit