|
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
This is the superclass of most JML AST nodes. However, some JML AST nodes must directly subclass mjc AST nodes.
| Nested Class Summary | |
(package private) static class |
JmlNode.DummyInitializerDeclaration
A class for dummy initializer declarations. |
| Field Summary | |
static String |
MJCVISIT_MESSAGE
|
| Fields inherited from class org.multijava.mjc.JPhylum |
EMPTY |
| 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 |
| Constructor Summary | |
JmlNode(TokenReference where)
|
|
| Method Summary | |
void |
accept(MjcVisitor p)
Throws an UnsupportedOperationException since an MjcVisitor cannot be used to visit a JML AST. |
static void |
enterSpecScope()
Enters a new JML specification scope. |
static void |
enterSpecScope(long modifiers)
Enters a new JML specification scope if the argument contains a "model" or "ghost" modifiers. |
static void |
exitSpecScope()
Exits the current JML specification scope. |
static void |
exitSpecScope(long modifiers)
Exits the current JML specification scope if the argument contains a "model" or "ghost" modifiers. |
protected static long |
privacy(long modifiers)
Returns the access (privacy) modifier of the given modifiers, modifiers. |
protected static String |
privacyString(long privacy)
Return a string representation of the given visibility; the argument may be the complete set of modifiers; note that "package" is returned if no visibility level is specified. |
| 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 |
| Field Detail |
public static final String MJCVISIT_MESSAGE
| Constructor Detail |
public JmlNode(TokenReference where)
| Method Detail |
public void accept(MjcVisitor p)
public static void enterSpecScope(long modifiers)
JmlContext.enterSpecScope( ),
JStatementWrapper.enterSpecScope(int)public static void enterSpecScope()
JmlContext.enterSpecScope(),
JStatementWrapper.enterSpecScope()public static void exitSpecScope(long modifiers)
JmlContext.exitSpecScope(),
JStatementWrapper.exitSpecScope(int)public static void exitSpecScope()
JmlContext.exitSpecScope(),
JStatementWrapper.exitSpecScope()protected static long privacy(long modifiers)
modifiers. If the modifiers has either SPEC_PUBLIC
or SPEC_PROTECTED, then that access modifier takes a precedence
over the JAVA access modifiers.
protected static String privacyString(long privacy)
ensures \result != null;
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||