jellyj.classfile.classgen
Class LocalVariableInstruction

jellyj.classfile.classgen.Instruction
  |
  +--jellyj.classfile.classgen.LocalVariableInstruction
Direct Known Subclasses:
ALOAD, ASTORE, DLOAD, DSTORE, FLOAD, FSTORE, ILOAD, ISTORE, LLOAD, LSTORE

public abstract class LocalVariableInstruction
extends Instruction

Abstract super class for instructions dealing with local variables.

Author:
JellyJ Design Group

Constructor Summary
 (package private) LocalVariableInstruction()
          Empty constructor needed for the Class.newInstance() statement in Instruction.readInstruction().

Method Summary
 voiddump(DataOutputStream out)
          Dump instruction as byte code to stream out.
 final intgetIndex()
           
 final voidsetIndex(int n)
          Set the local variable index
 StringtoString()
           

Methods inherited from class jellyj.classfile.classgen.Instruction
consumeStack, copy, getLength, getPosition, getTag, produceStack, readInstruction, setPosition

Constructor Detail

LocalVariableInstruction

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

dump

public void dump(DataOutputStream out)
throws java.io.IOException
Dump instruction as byte code to stream out.
Parameters:
out - Output stream

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

toString

public String toString()
Returns: mnemonic for instruction