|
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.JExpression
org.jmlspecs.checker.JmlSpecExpression
| Field Summary | |
private JExpression |
expression
|
private boolean |
purityChecked
|
| Fields inherited from class org.multijava.mjc.JExpression |
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 | |
JmlSpecExpression(JExpression expression)
|
|
| Method Summary | |
void |
accept(MjcVisitor p)
Accepts the specified visitor. |
Object |
clone()
|
JExpression |
expression()
|
void |
genCode(CodeSequence code)
|
Object[] |
getFANonNulls(CContextType context)
Returns a list of expressions known to be non-null (null) in this context |
Object[] |
getFANulls(CContextType context)
Returns a list of expressions known to be null if this evaluates to false. |
CType |
getType()
|
boolean |
isNonNull(CContextType context)
Returns true iff the value represented by this expression is non-null |
boolean |
purityChecked()
Returns true if the purity of this spec expression has already been performed. |
void |
setExpr(JExpression expr)
|
void |
setPurityChecked()
Indicates the the purity of this spec expression has already been performed. |
String |
toString()
|
JExpression |
typecheck(CExpressionContextType context)
Checks this JML predicate in the given context and return the expression that results. |
JExpression |
typecheck(CExpressionContextType context,
long privacy)
Checks this JML predicate in the given context and return the expression that results. |
| Methods inherited from class org.multijava.mjc.JExpression |
buildUniverseDynChecks, convertType, dumpArray, fail, genBranch, genUniverseDynCheckCode, getApparentType, getBooleanLiteral, getLiteral, getNumberLiteral, getOrdinalLiteral, getRealLiteral, getStringLiteral, isAssignableTo, isBooleanLiteral, isConstant, isDeclaredNonNull, isLiteral, isMaybeInitializable, isOrdinalLiteral, isRealLiteral, isStatementExpression, isStringLiteral, typecheck, unParenthesize |
| 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 |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private JExpression expression
private boolean purityChecked
| Constructor Detail |
public JmlSpecExpression(JExpression expression)
| Method Detail |
public JExpression expression()
public CType getType()
JExpression
public boolean isNonNull(CContextType context)
isNonNull in class JExpressionpublic Object[] getFANonNulls(CContextType context)
getFANonNulls in class JExpressionpublic Object[] getFANulls(CContextType context)
JExpression
getFANulls in class JExpressionpublic Object clone()
clone in class JExpressionpublic boolean purityChecked()
public void setPurityChecked()
public void setExpr(JExpression expr)
public JExpression typecheck(CExpressionContextType context)
throws PositionedError
also ensures \result instanceof JmlSpecExpression;
PositionedError
public JExpression typecheck(CExpressionContextType context,
long privacy)
throws PositionedError
privacy.
PositionedErrorpublic void accept(MjcVisitor p)
p - the visitorpublic void genCode(CodeSequence code)
JExpression
public String toString()
toString in class Object
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||