|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRaptor.ProgramParser.Statements.PTerm
Raptor.ProgramParser.Statements.PAExp.PAExp
public class PAExp
Abstract class for arithmetic expressions.
Field Summary | |
---|---|
PTerm |
left
|
java.lang.String |
op
|
PTerm |
right
|
Constructor Summary | |
---|---|
PAExp(PTerm pLeft,
PTerm pRight,
java.lang.String pOp)
Create a new arithmetic expression |
Method Summary | |
---|---|
java.lang.String |
clashes(PanSignature pSignature)
Returns a String of error message if this Term clashes with the passed PanSignature. A Term clashes with a PanSignature if it clashes with any of its Predicates,Constants,Functions or Variables. If this Term does not clash with the Signature, it is added to the signature and an empty String is returned. |
java.lang.String |
display()
Returns a String to display the PAExp. |
PTerm |
getLeft()
Returns the left hand side of the arithmetic expression. |
PTerm |
getRight()
Returns the right hand side of the arithmetic expression. |
Term |
s()
Creates VVar to replace PVar in the term where necessary. |
Methods inherited from class Raptor.ProgramParser.Statements.PTerm |
---|
getName, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public PTerm left
public PTerm right
public java.lang.String op
Constructor Detail |
---|
public PAExp(PTerm pLeft, PTerm pRight, java.lang.String pOp)
pLeft
- the left operand of the arithmetic expressionpRight
- the right operand of the arithmetic expressionpOp
- the operator of the arithmetic expressionMethod Detail |
---|
public java.lang.String display()
display
in class PTerm
public PTerm getLeft()
public PTerm getRight()
public java.lang.String clashes(PanSignature pSignature)
clashes
in class PTerm
pSignature
- PanSignature Represents the signature to be compared against.public Term s()
s
in class PTerm
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |