|
|||||||||
| 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.PVar
public class PVar
A variable program term.
Extends abstract class PTerm.
| Constructor Summary | |
|---|---|
PVar()
For XMLEncoder |
|
PVar(java.lang.String pName)
Constructs a new variable. |
|
| Method Summary | |
|---|---|
boolean |
clashes(Atom pAtom)
|
boolean |
clashes(Function pFunction)
|
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 PVar Statement clashes with a signature if any of its parts clash with the signature. |
boolean |
clashes(PArray pPArray)
|
boolean |
clashes(Var pVar)
|
java.lang.String |
display()
Returns a String to display the var term. |
boolean |
equals(PTerm pTerm)
Returns true if the passed Term is equal to this Term. |
java.lang.String |
getName()
|
int |
getValue()
Returns the value associated with this variable. |
boolean |
isIn(PanSignature pSignature)
Returns true if this PVar is in the PVar list of the passed PanSignature. |
Term |
s()
Creates VVar to replace PVar in the formula where necessary. |
void |
setName(java.lang.String pName)
For XMLEncoder |
void |
setValue(int pValue)
For XMLEncoder |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PVar()
public PVar(java.lang.String pName)
pName - the name of the variable| Method Detail |
|---|
public int getValue()
public void setValue(int pValue)
public java.lang.String getName()
getName in class PTermpublic void setName(java.lang.String pName)
setName in class PTermpublic java.lang.String display()
display in class PTermpublic Term s()
s in class PTermpublic java.lang.String clashes(PanSignature pSignature)
clashes in class PTermpSignature - PanSignature represents the PanSignature to be checked if this
Formula clashes with.public boolean isIn(PanSignature pSignature)
pSignature - PanSignature represents the signature it is to be searched in.public boolean equals(PTerm pTerm)
pTerm - Term represents the Term it is to be compared against.public boolean clashes(PArray pPArray)
public boolean clashes(Atom pAtom)
public boolean clashes(Function pFunction)
public boolean clashes(Var pVar)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||