dspl.intermediate.instructions
Class InstructionSet

java.lang.Object
  extended by dspl.intermediate.instructions.InstructionSet

public class InstructionSet
extends java.lang.Object

Wrapper class for a series of instructions. Its used by the tree walker to keep track of the end of the instruction list.

Author:
Jeffrey

Field Summary
private  Instruction head
          First insturction in the series
private  Instruction tail
          Final instruction in the series
 
Constructor Summary
InstructionSet()
          Primary contructor builds an empty list
 
Method Summary
 void append(Instruction next)
          Takes the next instruction and appends it to the list if there is currently no list, it starts the list
 void append(InstructionSet nextSet)
           
 Instruction first()
          Returns the head of the list
 Instruction last()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

head

private Instruction head
First insturction in the series


tail

private Instruction tail
Final instruction in the series

Constructor Detail

InstructionSet

public InstructionSet()
Primary contructor builds an empty list

Method Detail

append

public void append(Instruction next)
Takes the next instruction and appends it to the list if there is currently no list, it starts the list

Parameters:
next -

append

public void append(InstructionSet nextSet)

first

public Instruction first()
Returns the head of the list

Returns:

last

public Instruction last()