All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class espresso.classfile.classgen.LocalVariableInstruction

java.lang.Object
   |
   +----espresso.classfile.classgen.Instruction
           |
           +----espresso.classfile.classgen.LocalVariableInstruction

public abstract class LocalVariableInstruction
extends Instruction
Abstract super class for instructions dealing with local variables.


Variable Index

 o c_tag
 o n
 o wide

Constructor Index

 o LocalVariableInstruction()
Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction().
 o LocalVariableInstruction(short, short, int)

Method Index

 o dump(DataOutputStream)
Dump instruction as byte code to stream out.
 o getIndex()
 o initFromFile(ByteSequence, boolean)
Read needed data (e.g.
 o setIndex(int)
Set the local variable index
 o toString()

Variables

 o n
 private int n
 o wide
 private boolean wide
 o c_tag
 private short c_tag

Constructors

 o LocalVariableInstruction
 LocalVariableInstruction()
Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction(). Not to be used otherwise.

 o 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)

Methods

 o 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
 o toString
 public String toString()
Returns:
mnemonic for instruction
Overrides:
toString in class Instruction
 o initFromFile
 protected void initFromFile(ByteSequence bytes,
                             boolean wide) throws IOException
Read needed data (e.g. index) from file.

Overrides:
initFromFile in class Instruction
 o getIndex
 public final int getIndex()
Returns:
local variable index referred by this instruction.
 o setIndex
 public final void setIndex(int n)
Set the local variable index


All Packages  Class Hierarchy  This Package  Previous  Next  Index