|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.multijava.util.Utils
org.multijava.mjc.CMember
org.multijava.mjc.CMethod
org.multijava.mjc.CSourceMethod
org.jmlspecs.checker.JmlSourceMethod
A class for representing JML method declaration in the signature forest. It includes the type signature of the method and operations for checking the method's applicability and whether it is more specfic than a given method.
| Field Summary | |
private JmlMemberDeclaration |
methodAST
|
| Fields inherited from class org.multijava.mjc.CSourceMethod |
|
| Fields inherited from class org.multijava.mjc.CMethod |
declarationContext, generatefrom, needsPrivacyModifierRemoved, specArgs, synthetic, topConcreteMethod |
| Fields inherited from class org.multijava.mjc.CMember |
|
| Fields inherited from class org.multijava.util.Utils |
DBG_LEVEL_HIGH, DBG_LEVEL_LOW, DBG_LEVEL_NO |
| Constructor Summary | |
JmlSourceMethod(CSourceMethod method)
|
|
JmlSourceMethod(MemberAccess access,
String ident,
CType returnType,
CSpecializedType[] paramTypes,
CClassType[] exceptions,
CTypeVariable[] typevariables,
boolean deprecated,
JBlock body,
CContextType declarationContext,
JMethodDeclaration declarationASTNode)
|
|
| Method Summary | |
protected MethodInfo |
createCMethodInfo(int modifiers,
String name,
String type,
String[] exceptions,
CSourceMethod method,
boolean deprecated,
boolean synthetic)
Creates a method info object. |
protected MethodInfo |
createMethodInfo(int modifiers,
String name,
String type,
String[] exceptions,
CodeInfo code,
boolean deprecated,
boolean synthetic)
Creates a method info object. |
JmlMemberDeclaration |
getAST()
Returns the AST for this method. |
JFormalParameter[] |
getASTparameters()
Returns the parameters (AST's) for this method. |
String |
getGenericSignature()
|
JmlSourceMethod |
getMostRefined()
Returns the most refined declaration AST for this method. |
JmlMethodSpecification |
getSpecification()
Returns the specification AST for this method. |
boolean |
inJavaFile()
Returns true if the file in which this member is declared is a '.java' file. |
boolean |
isApplicable(String ident,
CType recvType,
CType[] actuals,
CClassType[] args)
Returns true if this method is applicable to a method call with the given identifier and actual (static) argument types. |
boolean |
isEffectivelyModel()
Returns true iff this method should be treated as a model method; the method itself is model or it is declared inside a model class or interface. |
boolean |
isExecutableModel()
Returns true if this method is a model method and can be executed by simply commenting out annotation markers. |
boolean |
isGhost()
Returns always false. |
boolean |
isModel()
Returns true iff this field is explicitly declared as model. |
boolean |
isPrivate()
Returns true if this member is private. |
boolean |
isProtected()
Returns true if this member is protected, including spec_protected in a JML specification scope. |
boolean |
isPublic()
Returns true if this member is public, including spec_public in a JML specification scope. |
boolean |
isRefined()
|
boolean |
isSpecProtected()
Returns true if this method is spec_protected. |
boolean |
isSpecPublic()
Returns true if this method is spec_public. |
JmlMemberAccess |
jmlAccess()
|
void |
setAST(JmlMemberDeclaration methAST)
Sets the AST for this method. |
| Methods inherited from class org.multijava.mjc.CMember |
access, addModifiers, deprecated, getCClass, getCCompilationUnit, getField, getIdent, getJavaName, getOwnerName, getQualNameWithSeparator, hasDefaultAccess, hasProtectedVisibilityIn, host, ident, isAccessibleFrom, isDeclaredNonNull, isDeprecated, isFinal, isLocalTo, isStatic, modifiers, owner, qualifiedName, setModifiers |
| Methods inherited from class org.multijava.util.Utils |
assertTrue, assertTrue, combineArrays, escapeString, escapeString, fail, fail, getFilePath, hasFlag, hasOtherFlags, parsePathParts, relativePathTo, splitQualifiedName, splitQualifiedName, stripJavaModifiers, stripNonJavaModifiers, stripPrivateModifier, unescapeString, vectorToArray, vectorToIntArray |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jmlspecs.util.classfile.JmlMethodable |
isPure |
| Field Detail |
private JmlMemberDeclaration methodAST
| Constructor Detail |
public JmlSourceMethod(MemberAccess access,
String ident,
CType returnType,
CSpecializedType[] paramTypes,
CClassType[] exceptions,
CTypeVariable[] typevariables,
boolean deprecated,
JBlock body,
CContextType declarationContext,
JMethodDeclaration declarationASTNode)
public JmlSourceMethod(CSourceMethod method)
| Method Detail |
public boolean isEffectivelyModel()
isEffectivelyModel in interface org.jmlspecs.util.classfile.JmlModifiablepublic boolean isModel()
isModel in interface org.jmlspecs.util.classfile.JmlModifiablepublic boolean isExecutableModel()
public boolean isApplicable(String ident,
CType recvType,
CType[] actuals,
CClassType[] args)
isApplicable in class CMethodident - the identifier to matchrecvType - receiver type actuals - the method call static argument types
CMethod#isApplicable(String, CType, CType[])public boolean inJavaFile()
public boolean isPublic()
isPublic in class CMemberisProtected(),
isPrivate()public boolean isProtected()
isProtected in class CMemberisPublic(),
isPrivate()public boolean isPrivate()
isPrivate in class CMemberisProtected(),
isPublic()public boolean isSpecPublic()
public boolean isSpecProtected()
public boolean isGhost()
isGhost in interface org.jmlspecs.util.classfile.JmlModifiablepublic String getGenericSignature()
getGenericSignature in class CSourceMethodpublic JFormalParameter[] getASTparameters()
public void setAST(JmlMemberDeclaration methAST)
public JmlMemberDeclaration getAST()
public JmlSourceMethod getMostRefined()
public JmlMethodSpecification getSpecification()
public boolean isRefined()
public JmlMemberAccess jmlAccess()
protected MethodInfo createCMethodInfo(int modifiers,
String name,
String type,
String[] exceptions,
CSourceMethod method,
boolean deprecated,
boolean synthetic)
protected MethodInfo createMethodInfo(int modifiers,
String name,
String type,
String[] exceptions,
CodeInfo code,
boolean deprecated,
boolean synthetic)
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||