|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRaptor.ProgramParser.Statements.Statements
Raptor.ProgramParser.Statements.MethodDeclaration
public class MethodDeclaration
Creates a Method Declaration.
Extends abstract PTerm class.
Constructor Summary | |
---|---|
MethodDeclaration(java.lang.String pName,
java.util.Vector<java.lang.String> pTypedParams)
Constructs a new Method Declaration |
Method Summary | |
---|---|
java.lang.String |
display()
Return the string which represents the method header |
boolean |
equals(MethodDeclaration pStatement)
Returns true if the passed Term is equal to this Term. |
int |
getArity()
Return the arity of the method |
java.util.Vector<java.lang.String> |
getArrayParams()
Return the names of method's parameters which are arrays |
Formula |
getAutoPost()
|
java.lang.String |
getAutoPre()
|
java.lang.String |
getName()
Return the method's name |
java.util.Vector<java.lang.String> |
getParams()
Return the List of parameters with their types |
Formula |
getPost()
Return the method's post condition |
Formula |
getPre()
Return the method's precondition |
java.lang.String |
getRetType()
Return the return type of the method |
PanSignature |
getSignature()
Return the method's signature |
java.util.Vector<java.lang.String> |
getVarParams()
Return the names of method's parameters which are variables |
boolean |
isIn(PanSignature pSignature)
Returns true if this Method is in the Method list of the passed PanSignature. |
void |
setAutoPre(java.lang.String autoPrecondition)
|
void |
setPost(Formula pPost)
Set the method's post condition |
void |
setPre(Formula pPre)
Set the method's precondition |
void |
setRetType(java.lang.String pRetType)
Set the return type of the method declaration |
void |
setSignature(PanSignature pSignature)
Set the method's signature |
Methods inherited from class Raptor.ProgramParser.Statements.Statements |
---|
clashes, getLeft, getRight, setLeft, setRight |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MethodDeclaration(java.lang.String pName, java.util.Vector<java.lang.String> pTypedParams)
pName
- the name of the methodpTypedParams
- the parameters of the method definition with their typesMethod Detail |
---|
public java.util.Vector<java.lang.String> getParams()
public java.lang.String getName()
public int getArity()
public void setRetType(java.lang.String pRetType)
pRetType
- the return type to be setpublic java.lang.String getRetType()
public void setPre(Formula pPre)
pPre
- the formula which represents the method's preconditionpublic void setPost(Formula pPost)
pPost
- the formula which represents the method's post conditionpublic Formula getPre()
public Formula getPost()
public Formula getAutoPost()
public java.util.Vector<java.lang.String> getArrayParams()
public java.util.Vector<java.lang.String> getVarParams()
public void setSignature(PanSignature pSignature)
pSignature
- represents the method's signaturepublic PanSignature getSignature()
public java.lang.String display()
display
in class Statements
public boolean isIn(PanSignature pSignature)
pSignature
- PanSignature represents the signature it is to be searched in.public boolean equals(MethodDeclaration pStatement)
pStatement
- pStatement represents the Statement it is to be compared
against.public void setAutoPre(java.lang.String autoPrecondition)
public java.lang.String getAutoPre()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |