|
|||||||||
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.Method
public class Method
Creates a method term.
Extends abstract PTerm class.
Constructor Summary | |
---|---|
Method(java.lang.String pName,
java.util.Vector<PTerm> pParams)
Constructs a new Method PTerm |
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 Method Statement clashes with a signature if any of its parts clash with the signature. |
java.lang.String |
display()
Returns the string representing the method call |
boolean |
equals(Method pStatement)
Returns true if the passed Term is equal to this Term. |
int |
getArity()
Return the arity of the parameters used in the method call |
java.lang.String |
getName()
Return the name of the method called |
java.util.Vector<PTerm> |
getParams()
Return the parameters of the method call. |
boolean |
isBool(PVar param,
PanSignature pSignature)
|
boolean |
isIn(PanSignature pSignature)
Returns true if this Method is in the Method list of the passed PanSignature. |
Term |
s()
Creates VVar to replace PVar in the formula where necessary. |
Methods inherited from class Raptor.ProgramParser.Statements.PTerm |
---|
setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Method(java.lang.String pName, java.util.Vector<PTerm> pParams)
pName
- the name of the method being calledpParams
- the parameters of the method callMethod Detail |
---|
public java.util.Vector<PTerm> getParams()
public java.lang.String getName()
getName
in class PTerm
public int getArity()
public java.lang.String display()
display
in class PTerm
public boolean isIn(PanSignature pSignature)
pSignature
- PanSignature represents the signature it is to be searched in.public boolean equals(Method pStatement)
pStatement
- pStatement represents the Statement it is to be compared
against.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 isBool(PVar param, PanSignature pSignature)
public Term s()
PTerm
s
in class PTerm
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |