|
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.CBinaryMethod
org.jmlspecs.checker.JmlSigBinaryMethod
A class to represent JML method declaratons read from bytecode files.
| Field Summary |
| Fields inherited from class org.multijava.mjc.CBinaryMethod |
|
| 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 | |
JmlSigBinaryMethod(CClass owner,
org.jmlspecs.util.classfile.JmlMethodInfo methodInfo,
CContextType declarationContext)
Creates a new instance by using the given method info methodInfo. |
|
| Method Summary | |
private static JmlMemberAccess |
createMemberAccess(CClass owner,
org.jmlspecs.util.classfile.JmlMethodInfo methodInfo)
Creates a JML member access for the given JML method info object methodInfo. |
boolean |
isApplicable(String ident,
CType recvType,
CType[] actuals)
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 field should be treated as a model method; the method itself is defined as model (or ghost) or it is defined in a model class or interface. |
boolean |
isGhost()
Returns true iff this method is explicitly declared as ghost. |
boolean |
isModel()
Returns true iff this method 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 |
isPure()
Returns true if this method is pure. |
boolean |
isSpecProtected()
Returns true if this method is spec_protected. |
boolean |
isSpecPublic()
Returns true if this method is spec_public. |
| Methods inherited from class org.multijava.mjc.CBinaryMethod |
ambiguousDispatcherClass, anchorClass, checkTypes, dispatcherSignature, functionNumber, plantFunctionRef, plantOldFunctionRef, registerVisibleTypes, resolveTops, swallowReceivers |
| 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 |
| Constructor Detail |
public JmlSigBinaryMethod(CClass owner,
org.jmlspecs.util.classfile.JmlMethodInfo methodInfo,
CContextType declarationContext)
methodInfo.
| Method Detail |
public boolean isModel()
isModel in interface org.jmlspecs.util.classfile.JmlModifiablepublic boolean isGhost()
isGhost in interface org.jmlspecs.util.classfile.JmlModifiablepublic boolean isEffectivelyModel()
isEffectivelyModel in interface org.jmlspecs.util.classfile.JmlModifiable
public boolean isApplicable(String ident,
CType recvType,
CType[] actuals)
ident - the identifier to matchrecvType - receiver type actuals - the method call static argument types
CMethod#isApplicable(String, CType, CType[])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 isPure()
pure modifier or it
inherits pureness from its owner or supertypes. A non-static
method (including a constructor) is pure if its owner class or
interface is pure, or if it overrides a pure method inherited
from supertypes (classes and intefaces).
isPure in class CMethod
private static JmlMemberAccess createMemberAccess(CClass owner,
org.jmlspecs.util.classfile.JmlMethodInfo methodInfo)
methodInfo.
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||