|
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.multijava.mjc.JLiteral
Root class for all literals expression
| Field Summary |
| 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 | |
JLiteral(TokenReference where)
Construct a node in the parsing tree |
|
| Method Summary | |
static JLiteral |
createLiteral(CType type,
Object value)
Create a literal from a type and a value |
JLiteral |
getLiteral()
Returns the literal value of an expression |
abstract Object |
getValue()
Returns the value of this literal |
boolean |
isConstant()
|
abstract boolean |
isDefault()
Returns the literal value of an expression |
boolean |
isLiteral()
Does this expression represent a literal? |
boolean |
isLValue(CExpressionContextType context)
|
JExpression |
typecheck(CExpressionContextType context)
Typechecks the expression and mutates the context to record information gathered during typechecking. |
| Methods inherited from class org.multijava.mjc.JExpression |
accept, buildUniverseDynChecks, clone, convertType, dumpArray, fail, genBranch, genCode, genUniverseDynCheckCode, getApparentType, getBooleanLiteral, getFANonNulls, getFANulls, getNumberLiteral, getOrdinalLiteral, getRealLiteral, getStringLiteral, getType, isAssignableTo, isBooleanLiteral, isDeclaredNonNull, isMaybeInitializable, isNonNull, 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, toString, wait, wait, wait |
| Constructor Detail |
public JLiteral(TokenReference where)
where - the line of this node in the source code| Method Detail |
public static JLiteral createLiteral(CType type,
Object value)
public boolean isLValue(CExpressionContextType context)
public boolean isConstant()
isConstant in class JExpressionpublic JLiteral getLiteral()
getLiteral in class JExpressionpublic abstract boolean isDefault()
public boolean isLiteral()
isLiteral in class JExpressionpublic abstract Object getValue()
public JExpression typecheck(CExpressionContextType context)
throws PositionedError
context - the context in which this expression appears
JExpression.typecheck())
PositionedError - if the check fails
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||