|
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
org.multijava.mjc.JBooleanLiteral
Root class for all expressions
| Field Summary | |
private boolean |
value
|
| 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 | |
JBooleanLiteral(TokenReference where,
boolean value)
Construct a node in the parsing tree |
|
| Method Summary | |
void |
accept(MjcVisitor p)
Accepts the specified visitor |
boolean |
booleanValue()
get a Number that represents the value of this literal Do not call before typecheck |
void |
genBranch(boolean cond,
CodeSequence code,
CodeLabel label)
Generates a sequence of bytecodes to branch on a label This method helps to handle heavy optimizables conditions |
void |
genCode(CodeSequence code)
Generates a sequence of bytecodes |
CType |
getType()
Compute the type of this expression (called after parsing) |
Object |
getValue()
get a Number that represents the value of this literal Do not call before typecheck |
boolean |
isBooleanLiteral()
Does this expression represent a boolean literal? |
boolean |
isDefault()
Returns the literal value of an expression |
void |
setValue(boolean newValue)
set the value of this literal |
String |
toString()
|
| Methods inherited from class org.multijava.mjc.JLiteral |
createLiteral, getLiteral, isConstant, isLiteral, isLValue, typecheck |
| Methods inherited from class org.multijava.mjc.JExpression |
buildUniverseDynChecks, clone, convertType, dumpArray, fail, genUniverseDynCheckCode, getApparentType, getBooleanLiteral, getFANonNulls, getFANulls, getNumberLiteral, getOrdinalLiteral, getRealLiteral, getStringLiteral, isAssignableTo, 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, wait, wait, wait |
| Field Detail |
private boolean value
| Constructor Detail |
public JBooleanLiteral(TokenReference where,
boolean value)
where - the line of this node in the source codevalue - the value of this literal| Method Detail |
public String toString()
toString in class Objectpublic CType getType()
public boolean booleanValue()
public boolean isDefault()
public Object getValue()
public void setValue(boolean newValue)
newValue - the new valuepublic boolean isBooleanLiteral()
isBooleanLiteral in class JExpressionpublic void accept(MjcVisitor p)
p - the visitorpublic void genCode(CodeSequence code)
code - the code list
public void genBranch(boolean cond,
CodeSequence code,
CodeLabel label)
genBranch in class JExpressioncode - the code list
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||