All Packages Class Hierarchy This Package Previous Next Index
Class de.fub.bytecode.generic.LocalVariableInstruction
java.lang.Object
|
+----de.fub.bytecode.generic.Instruction
|
+----de.fub.bytecode.generic.LocalVariableInstruction
- public abstract class LocalVariableInstruction
- extends Instruction
Abstract super class for instructions dealing with local variables.
- Version:
- $Id: LocalVariableInstruction.java,v 1.8 1999/08/13 08:18:34 dahm Exp $
- Author:
- M. Dahm
-
LocalVariableInstruction(short, short, int)
-
-
dump(DataOutputStream)
- Dump instruction as byte code to stream out.
-
getIndex()
-
-
initFromFile(ByteSequence, boolean)
- Read needed data (e.g.
-
setIndex(int)
- Set the local variable index
-
toString(boolean)
- Long output format:
<name of opcode> "["<opcode number>"]"
"("<length of instruction>")" "<"< local variable index>">"
LocalVariableInstruction
protected LocalVariableInstruction(short tag,
short c_tag,
int n)
- Parameters:
- tag - Instruction number
- c_tag - Instruction number for compact version, ALOAD_0, e.g.
- n - local variable index (unsigned short)
dump
public void dump(DataOutputStream out) throws IOException
- Dump instruction as byte code to stream out.
- Parameters:
- out - Output stream
- Overrides:
- dump in class Instruction
toString
public String toString(boolean verbose)
- Long output format:
<name of opcode> "["<opcode number>"]"
"("<length of instruction>")" "<"< local variable index>">"
- Parameters:
- verbose - long/short format switch
- Returns:
- mnemonic for instruction
- Overrides:
- toString in class Instruction
initFromFile
protected void initFromFile(ByteSequence bytes,
boolean wide) throws IOException
- Read needed data (e.g. index) from file.
PRE: (ILOAD <= tag <= ALOAD_3) || (ISTORE <= tag <= ASTORE_3)
- Overrides:
- initFromFile in class Instruction
getIndex
public final int getIndex()
- Returns:
- local variable index referred by this instruction.
setIndex
public final void setIndex(int n)
- Set the local variable index
All Packages Class Hierarchy This Package Previous Next Index