Raptor.ProgramParser.Statements
Class Statements

java.lang.Object
  extended by Raptor.ProgramParser.Statements.Statements
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MethodDeclaration

public class Statements
extends java.lang.Object
implements java.io.Serializable

Creates statements, which are seperated by a semicolon.

See Also:
Serialized Form

Constructor Summary
Statements()
          For XMLEncoder
Statements(Instruction pRight)
          Constructs a new Statements where only an Instruction is present.
Statements(Statements pLeft, Instruction pRight)
          Constructs a new Statements where multiple instructions are seperated by semicolons.
 
Method Summary
 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 ""
A Statement clashes with a signature if any of its left or right Instructions clash with the signature.
 java.lang.String display()
          Returns a String to display the statements.
 Statements getLeft()
          Returns the left hand side of the semicolon.
 Instruction getRight()
          Returns the right hand side of the semicolon.
 void setLeft(Statements pStatements)
          For XMLEncoder
 void setRight(Instruction pRight)
          For XMLEncoder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Statements

public Statements()
For XMLEncoder


Statements

public Statements(Statements pLeft,
                  Instruction pRight)
Constructs a new Statements where multiple instructions are seperated by semicolons.

Parameters:
pLeft - the connected statements to this statement
pRight - the instruction at the end of this list of statements

Statements

public Statements(Instruction pRight)
Constructs a new Statements where only an Instruction is present.

Parameters:
pRight - the instruction of this Statements
Method Detail

getLeft

public Statements getLeft()
Returns the left hand side of the semicolon.


setLeft

public void setLeft(Statements pStatements)
For XMLEncoder


getRight

public Instruction getRight()
Returns the right hand side of the semicolon.


setRight

public void setRight(Instruction pRight)
For XMLEncoder


display

public java.lang.String display()
Returns a String to display the statements.
Seperates instructions with a semicolon.


clashes

public 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 ""
A Statement clashes with a signature if any of its left or right Instructions clash with the signature.

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