Raptor.ProgramParser.Statements
Class Instruction

java.lang.Object
  extended by Raptor.ProgramParser.Statements.Instruction
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Assignment, If, Skip, VoidMethod, While

public abstract class Instruction
extends java.lang.Object
implements java.io.Serializable

Abstract class to represent different instructions.

See Also:
Serialized Form

Constructor Summary
Instruction()
           
 
Method Summary
abstract  java.lang.String clashes(PanSignature pSignature)
          Returns a String containing an Error character if this Formula clashes with the passed PanSignature, Otherwise it will return an Empty String ""
An Instruction clashes with a signature if any of its parts clash with the signature.
abstract  java.lang.String display()
          Returns a String to display the instruction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Instruction

public Instruction()
Method Detail

display

public abstract java.lang.String display()
Returns a String to display the instruction.


clashes

public abstract java.lang.String clashes(PanSignature pSignature)
Returns a String containing an Error character if this Formula clashes with the passed PanSignature, Otherwise it will return an Empty String ""
An Instruction clashes with a signature if any of its parts clash with the signature.

Parameters:
pSignature - PanSignature represents the PanSignature to be checked if this Formula clashes with.