|
|||||||||
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.PArray
public class PArray
A program array term.
Extends abstract class PTerm.
Constructor Summary | |
---|---|
PArray()
Constructs a new PArray |
|
PArray(java.lang.String pName,
int pParams)
|
|
PArray(java.lang.String pName,
java.util.Vector<PTerm> pParams)
Constructs a new PArray. |
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(PVar pPVar)
|
boolean |
clashes(Var pVar)
|
java.lang.String |
display()
Returns a String to display the parray term. |
boolean |
equals(PTerm pTerm)
Returns true if the passed Term is equal to this Term. |
int |
getDimension()
Returns the dimension of the PArray |
java.lang.String |
getName()
Returns the name of the array |
java.util.Vector<PTerm> |
getParams()
Returns the parameters of the PArray |
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)
Set the name of the array |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PArray()
public PArray(java.lang.String pName, java.util.Vector<PTerm> pParams)
pName
- the name of the arraypParams
- the parameters of the arraypublic PArray(java.lang.String pName, int pParams)
Method Detail |
---|
public java.lang.String getName()
getName
in class PTerm
public void setName(java.lang.String pName)
setName
in class PTerm
public java.lang.String display()
display
in class PTerm
public Term s()
s
in class PTerm
public java.lang.String clashes(PanSignature pSignature)
clashes
in class PTerm
pSignature
- 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(PVar pPVar)
public boolean clashes(Atom pAtom)
public boolean clashes(Function pFunction)
public boolean clashes(Var pVar)
public java.util.Vector<PTerm> getParams()
public int getDimension()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |