|
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.multijava.mjc.JVariableDeclarationStatement
A local variable declaration statement declares one or more local variable names. JLS 14.3: Local Variable Declaration Statement
| Field Summary | |
private JVariableDefinition[] |
vars
|
| Fields inherited from class org.multijava.mjc.JStatement |
|
| 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 | |
JVariableDeclarationStatement(TokenReference where,
JVariableDefinition var,
JavaStyleComment[] comments)
Construct a node in the parsing tree. |
|
JVariableDeclarationStatement(TokenReference where,
JVariableDefinition[] vars,
JavaStyleComment[] comments)
Construct a node in the parsing tree. |
|
| Method Summary | |
void |
accept(MjcVisitor p)
Accepts the specified visitor |
void |
genCode(CodeSequence code)
Generates a sequence of bytecodes |
JVariableDefinition[] |
getVars()
Returns an array of variable definition declared by this statement |
void |
setIsInFor()
Sets the variables to be for variables |
void |
typecheck(CFlowControlContextType context)
Typechecks the statement and mutates the context to record information gathered during typechecking. |
void |
unsetIsInFor()
Unsets the variables to be for variables |
| Methods inherited from class org.multijava.mjc.JStatement |
acceptsBreak, acceptsContinue, addBreak, addContinue, fail, getBreakLabel, getComments, getContinueLabel |
| 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 JVariableDefinition[] vars
| Constructor Detail |
public JVariableDeclarationStatement(TokenReference where,
JVariableDefinition[] vars,
JavaStyleComment[] comments)
where - the line of this node in the source codevars - the variables declared by this statement
public JVariableDeclarationStatement(TokenReference where,
JVariableDefinition var,
JavaStyleComment[] comments)
where - the line of this node in the source codevar - the variable declared by this statement| Method Detail |
public JVariableDefinition[] getVars()
public void setIsInFor()
public void unsetIsInFor()
public void typecheck(CFlowControlContextType context)
throws PositionedError
context - the context in which this expression appears
PositionedError - if the check fails public void accept(MjcVisitor p)
accept in class JStatementp - the visitorpublic void genCode(CodeSequence code)
code - the code list
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||