dovs.instructions
Class LocalAccess

java.lang.Object
  extended by dovs.instructions.Instruction
      extended by dovs.instructions.LocalAccess
Direct Known Subclasses:
Iaload, Iastore, Iiload, Iistore

public abstract class LocalAccess
extends Instruction

Common superclass for all load and store instructions.


Field Summary
protected  int index
           
 
Constructor Summary
LocalAccess(int index)
           
 
Method Summary
 Object getArg(int i)
          Returns the specified numbered argument as given to the constructor.
 int localAccess()
          Returns the index of the highest numbered local variable accessed by this instruction.
 
Methods inherited from class dovs.instructions.Instruction
canFallThrough, canJump, getID, getID, getTarget, stackChange, toAsm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

index

protected int index
Constructor Detail

LocalAccess

public LocalAccess(int index)
Method Detail

localAccess

public int localAccess()
Description copied from class: Instruction
Returns the index of the highest numbered local variable accessed by this instruction.

Overrides:
localAccess in class Instruction
Returns:
the highest local variable index accessed, or -1 if no local variables are accessed.

getArg

public Object getArg(int i)
Description copied from class: Instruction
Returns the specified numbered argument as given to the constructor.

Overrides:
getArg in class Instruction
Parameters:
i - the index of the argument.
Returns:
the specified argument.