jrre.instructionset
Class Instruction

java.lang.Object
  |
  +--jrre.instructionset.Instruction
Direct Known Subclasses:
AConst_null, ALoad, ALoad_0, ALoad_1, ALoad_2, ALoad_3, ANewArray, AReturn, ArrayLength, AStore, AStore_0, AStore_1, AStore_2, AStore_3, AThrow, BIPush, CALoad, CAStore, CheckCast, DMul, Dup, Dup_x1, F2I, FCmpg, FCmpl, FConst_0, FLoad_0, FLoad_2, FMul, FStore_2, GetField, GetStatic, Goto, I2F, IAdd, IALoad, IAStore, IConst_0, IConst_1, IConst_2, IConst_3, IConst_4, IConst_5, IConst_m1, IDiv, If_acmpeq, If_acmpne, If_icmpeq, If_Icmpge, If_Icmpgt, If_Icmple, If_Icmplt, If_Icmpne, Ifeq, Ifge, Ifgt, Ifle, Iflt, Ifne, Ifnonnull, Ifnull, IInc, ILoad, ILoad_0, ILoad_1, ILoad_2, ILoad_3, IMul, INeg, InstanceOf, InvokeSpecial, InvokeStatic, InvokeVirtual, IReturn, IShl, IStore, IStore_0, IStore_1, IStore_2, IStore_3, ISub, LCmp, LConst_0, Ldc, MonitorEnter, MonitorExit, New, NewArray, NoOperation, Pop, PutField, PutStatic, Return

public abstract class Instruction
extends java.lang.Object


Field Summary
protected  java.lang.String description
           
protected  int length
           
protected  java.lang.String name
           
protected  Instruction nextInstruction
           
protected  Instruction prevInstruction
           
 
Constructor Summary
Instruction()
           
 
Method Summary
abstract  void execute()
           
 java.lang.String getDescription()
          Gets the Description.
 int getLength()
          Gets the Length.
 java.lang.String getName()
          Gets the Name.
 Instruction getNextInstruction()
          Gets the NextInstruction.
 Instruction getPrevInstruction()
          Gets the PrevInstruction.
 void setDescription(java.lang.String description)
          Sets the Description.
 void setLength(int length)
          Sets the Length.
 void setName(java.lang.String name)
          Sets the Name.
 void setNextInstruction(Instruction nextInstruction)
          Sets the NextInstruction.
 void setPrevInstruction(Instruction prevInstruction)
          Sets the PrevInstruction.
abstract  java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

description

protected java.lang.String description

length

protected int length

nextInstruction

protected Instruction nextInstruction

prevInstruction

protected Instruction prevInstruction
Constructor Detail

Instruction

public Instruction()
Method Detail

execute

public abstract void execute()

toString

public abstract java.lang.String toString()
Overrides:
toString in class java.lang.Object

getLength

public int getLength()
Gets the Length.


setLength

public void setLength(int length)
Sets the Length.


getNextInstruction

public Instruction getNextInstruction()
Gets the NextInstruction.


setNextInstruction

public void setNextInstruction(Instruction nextInstruction)
Sets the NextInstruction.


getPrevInstruction

public Instruction getPrevInstruction()
Gets the PrevInstruction.


setPrevInstruction

public void setPrevInstruction(Instruction prevInstruction)
Sets the PrevInstruction.


getName

public java.lang.String getName()
Gets the Name.


setName

public void setName(java.lang.String name)
Sets the Name.


getDescription

public java.lang.String getDescription()
Gets the Description.


setDescription

public void setDescription(java.lang.String description)
Sets the Description.



Copyright © 2002-2002 Appalachian State University. All Rights Reserved.