|
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.multijava.mjc.JStatement
org.jmlspecs.checker.JStatementWrapper
An abstraction of JML statement ASTs that should be subclass of
JStatement. This class provides a placeholder for
JML-specific manipulation of JStatement objects.
| Field Summary | |
private JStatement |
assertionCode
Java source code generated by jmlrac to check the assertion at runtime. |
| Fields inherited from class org.multijava.mjc.JStatement |
|
| 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 | |
protected |
JStatementWrapper(TokenReference where,
JavaStyleComment[] comments)
Construct a node in the parsing tree |
| Method Summary | |
JStatement |
assertionCode()
Returns the Java source code generated by jmlrac to check this assertion at runtime. |
static void |
enterSpecScope()
Enters a new JML specification scope. |
static void |
enterSpecScope(int modifiers)
Enters a new JML specification scope if the argument contains the "model" modifier. |
static void |
exitSpecScope()
Exits the current JML specification scope. |
static void |
exitSpecScope(int modifiers)
Exits the current JML specification scope if the argument contains the "model" modifier. |
boolean |
hasAssertionCode()
Returns true if this assertion has the Java source
code generated by jmlrac to check the assertion at runtime. |
void |
setAssertionCode(JStatement code)
Sets the Java source code generated by jmlrac to check this assertion at runtime. |
| Methods inherited from class org.multijava.mjc.JStatement |
accept, acceptsBreak, acceptsContinue, addBreak, addContinue, fail, genCode, getBreakLabel, getComments, getContinueLabel, typecheck |
| Methods inherited from class org.multijava.mjc.JPhylum |
check, check, check, check, 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 |
| Field Detail |
private JStatement assertionCode
| Constructor Detail |
protected JStatementWrapper(TokenReference where,
JavaStyleComment[] comments)
where - the line of this node in the source codecomments - the Java comments that go with this statement| Method Detail |
public JStatement assertionCode()
null.
ensures \result == assertionCode;
public boolean hasAssertionCode()
true if this assertion has the Java source
code generated by jmlrac to check the assertion at runtime.
ensures \result == (assertionCode != null);
public void setAssertionCode(JStatement code)
assignable assertionCode; ensures assertionCode == code;
public static void enterSpecScope(int modifiers)
JmlContext.enterSpecScope(),
enterSpecScope(int)public static void enterSpecScope()
JmlContext.enterSpecScope(),
enterSpecScope()public static void exitSpecScope(int modifiers)
JmlContext.exitSpecScope(),
exitSpecScope(int)public static void exitSpecScope()
JmlContext.exitSpecScope(),
exitSpecScope()
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||