|
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.util.compiler.Phylum
org.multijava.mjc.JPhylum
org.jmlspecs.checker.JmlNode
org.jmlspecs.checker.JmlMemberDeclaration
org.jmlspecs.checker.JmlMethodDeclaration
org.jmlspecs.checker.JmlConstructorDeclaration
JmlConstructorDeclaration.java
| Nested Class Summary |
| Nested classes inherited from class org.jmlspecs.checker.JmlNode |
JmlNode.DummyInitializerDeclaration |
| Field Summary | |
private JConstructorDeclaration |
delegee
|
private CVariableInfoTable |
instanceInfo
Temporarily stores the final field definite assignment information while typechecking the constructor. |
| Fields inherited from class org.jmlspecs.checker.JmlMethodDeclaration |
|
| Fields inherited from class org.jmlspecs.checker.JmlMemberDeclaration |
refinedDecl, refiningDecl |
| Fields inherited from class org.jmlspecs.checker.JmlNode |
MJCVISIT_MESSAGE |
| Fields inherited from class org.multijava.util.compiler.Phylum |
|
| Fields inherited from class org.multijava.util.Utils |
DBG_LEVEL_HIGH, DBG_LEVEL_LOW, DBG_LEVEL_NO |
| Fields inherited from interface org.multijava.mjc.Constants |
ACC_PURE, AMID_JAVA_MATH, AMID_MAX, AMID_SAFE_MATH, CMP_VERSION, JAV_ASSERTION_ERROR, JAV_CLASS, JAV_CLASSLOADER, JAV_CLASSNOTFOUND_EXCEPTION, JAV_CLONE, JAV_CLONEABLE, JAV_CONSTRUCTOR, JAV_ERROR, JAV_EXCEPTION, JAV_INIT, JAV_LENGTH, JAV_NAME_SEPARATOR, JAV_NOCLASSDEFFOUND_ERROR, JAV_OBJECT, JAV_OUTER_THIS, JAV_RMJ_RUNTIME_EXCEPTION, JAV_RUNTIME, JAV_RUNTIME_EXCEPTION, JAV_SERIALIZABLE, JAV_STATIC_INIT, JAV_STRING, JAV_STRINGBUFFER, JAV_SUPER, JAV_THIS, JAV_THROWABLE, MJ_ANCHOR, OPE_BAND, OPE_BNOT, OPE_BOR, OPE_BSR, OPE_BXOR, OPE_EQ, OPE_GE, OPE_GT, OPE_LAND, OPE_LE, OPE_LNOT, OPE_LOR, OPE_LT, OPE_MINUS, OPE_NE, OPE_PERCENT, OPE_PLUS, OPE_POSTDEC, OPE_POSTINC, OPE_PREDEC, OPE_PREINC, OPE_SIMPLE, OPE_SL, OPE_SLASH, OPE_SR, OPE_STAR, TID_ARRAY, TID_BOOLEAN, TID_BYTE, TID_CHAR, TID_CLASS, TID_DOUBLE, TID_FLOAT, TID_INT, TID_LONG, TID_MAX, TID_SHORT, TID_VOID, UNIV_ARRAY_TMP, UNIV_TMP |
| Constructor Summary | |
private |
JmlConstructorDeclaration(TokenReference where,
JmlMethodSpecification methodSpecification,
JConstructorDeclaration delegee)
|
| Method Summary | |
void |
accept(MjcVisitor p)
Accepts the specified visitor. |
void |
acceptDelegee(MjcVisitor p)
|
boolean |
hasBody()
Indicates whether this method declaration has a body. |
boolean |
isConstructor()
Returns true if this declaration is for a constructor. |
boolean |
isExecutableModel()
Returns true if this constructor is a model constructor and can be executed by simply commenting out annotation markers. |
static JmlConstructorDeclaration |
makeInstance(TokenReference where,
long modifiers,
String ident,
JFormalParameter[] params,
CClassType[] exceptions,
JConstructorBlock body,
JavadocComment javadoc,
JavaStyleComment[] comments,
JmlMethodSpecification methodSpecification)
|
protected void |
resetFinalFieldStatusIfConstructor(CClassContextType context)
Resets the final field definite assignment info if this is a constructor. |
void |
typecheck(CClassContextType cContext,
CVariableInfoTable instanceInfo)
Typechecks this method declaration. |
| Methods inherited from class org.jmlspecs.checker.JmlMemberDeclaration |
checkRefinedModifiers, findJavaFileInRefinement, genComments, getCClass, getCombinedVarAssertions, getField, getMethod, getMostRefined, getRefinedMember, getRefiningMember, inBinaryClassFile, inJavaFile, inners, isDeprecated, isRefined, isRefiningMember, javadocComment, setRefinedMember, setRefiningMember |
| Methods inherited from class org.jmlspecs.checker.JmlNode |
enterSpecScope, enterSpecScope, exitSpecScope, exitSpecScope, privacy, privacyString |
| Methods inherited from class org.multijava.mjc.JPhylum |
check, check, check, check, fail, fail, fail, warn, warn, warn, warn |
| Methods inherited from class org.multijava.util.compiler.Phylum |
getTokenReference, setTokenReference |
| 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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.multijava.mjc.JMethodDeclarationType |
addParameter, body, checkInterface, checkInterfaceType, checkOverriding, compareTo, createSelfContext, getExceptions, ident, isExternal, isOverriding, modifiers, overriddenMethods, parameters, resolveExtMethods, resolveSpecializers, resolveTopMethods, returnType, setModifiers, setParameters, typecheck, usesMultipleDispatch |
| Methods inherited from interface org.multijava.mjc.JMemberDeclarationType |
genComments, getCClass, getField, getMethod, isDeprecated |
| Methods inherited from interface org.multijava.util.compiler.PhylumType |
getTokenReference, setTokenReference |
| Methods inherited from interface org.multijava.javadoc.Annotatable |
javadocComment |
| Field Detail |
private JConstructorDeclaration delegee
private CVariableInfoTable instanceInfo
| Constructor Detail |
private JmlConstructorDeclaration(TokenReference where,
JmlMethodSpecification methodSpecification,
JConstructorDeclaration delegee)
| Method Detail |
public static JmlConstructorDeclaration makeInstance(TokenReference where,
long modifiers,
String ident,
JFormalParameter[] params,
CClassType[] exceptions,
JConstructorBlock body,
JavadocComment javadoc,
JavaStyleComment[] comments,
JmlMethodSpecification methodSpecification)
public boolean hasBody()
JmlMethodDeclaration
hasBody in interface JMethodDeclarationTypehasBody in class JmlMethodDeclarationpublic boolean isConstructor()
isConstructor in class JmlMethodDeclarationpublic boolean isExecutableModel()
isExecutableModel in class JmlMethodDeclarationpublic void accept(MjcVisitor p)
accept in interface JMemberDeclarationTypeaccept in class JmlMethodDeclarationp - the visitorpublic void acceptDelegee(MjcVisitor p)
acceptDelegee in class JmlMethodDeclaration
public void typecheck(CClassContextType cContext,
CVariableInfoTable instanceInfo)
throws PositionedError
typecheck in interface JConstructorDeclarationTypecContext - the context in which this method appearsinstanceInfo - the definite-assignment state of the surrounding
class after instance initializers but before any
constructors
PositionedError - if the checks fail and the failure
cannot be recovered from protected void resetFinalFieldStatusIfConstructor(CClassContextType context)
resetFinalFieldStatusIfConstructor in class JmlMethodDeclaration
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||