dovs.instructions
Class LocalAccess
java.lang.Object
dovs.instructions.Instruction
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
|
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
index
protected int index
LocalAccess
public LocalAccess(int index)
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.