|
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.JBlock
org.jmlspecs.jmlrac.RacParser.RacBlock
A RAC node class for representing blocks. A RAC block is represented verbatim as a sequence of lines, where a line can be a string, an END_OF_LINE marker, and an object representing other RAC/JML node.
| Field Summary | |
private int |
indent
Indentation level of this block node. |
private String |
name
Name of this block node. |
private List |
pieces
The list of elements constituting this block node. |
private PreValueVars.Entry |
varDecl
The variable declaration to be piggyback with this code. |
| Fields inherited from class org.multijava.mjc.JBlock |
body, DUM_BLOCK |
| 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 | |
private |
RacParser.RacBlock(List pieces)
Creates a new instance. |
| Method Summary | |
void |
accept(MjcVisitor p)
Accepts the specified visitor. |
RacNode |
incrIndent()
Increments indentation level of this node . |
int |
indent()
Returns the current indentation level of this node. |
Iterator |
iterator()
Returns an interator that iterates over elements (sequence of RAC nodes) of this node. |
String |
name()
Returns the name of this node. |
void |
setName(String name)
Sets the name of this node. |
void |
setVarDecl(PreValueVars.Entry varDecl)
Sets the variable declaration to be piggyback with this code. |
PreValueVars.Entry |
varDecl()
Returns the variable declaration associated with this code. |
| Methods inherited from class org.multijava.mjc.JBlock |
body, cachedExpContext, genCode, setGenUniverseDynChecks, typecheck |
| 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 PreValueVars.Entry varDecl
private String name
private List pieces
private int indent
| Constructor Detail |
private RacParser.RacBlock(List pieces)
requires pieces != null;
| Method Detail |
public int indent()
RacNode
indent in interface RacNodepublic RacNode incrIndent()
RacNode
incrIndent in interface RacNodepublic Iterator iterator()
RacNode
iterator in interface RacNodepublic void accept(MjcVisitor p)
accept in interface RacNodeaccept in class JBlockp - the visitor public String name()
RacNode
name in interface RacNodepublic void setName(String name)
RacNode
setName in interface RacNodepublic void setVarDecl(PreValueVars.Entry varDecl)
setVarDecl in interface RacNodevarDecl()public PreValueVars.Entry varDecl()
varDecl in interface RacNodesetVarDecl(PreValueVars.Entry)
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||