|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
An abstraction of RAC AST nodes. This type defines a common interface that all RAC AST nodes have to implement. A RAC node is a special form of AST node used to store assertion check code generated by the runtime assertion checker. The idea is to store the generated code in verbatim, intermixed with the regular JML AST nodes, and let visitor objects pretty-print them correctly. Since the only next step after assertion code generation is pretty-printing, we can store the code in verbatim.
RacParser| 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. |
| Method Detail |
public int indent()
public RacNode incrIndent()
public Iterator iterator()
public void accept(MjcVisitor p)
public String name()
public void setName(String name)
public void setVarDecl(PreValueVars.Entry varDecl)
varDecl()public PreValueVars.Entry varDecl()
setVarDecl(PreValueVars.Entry)
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||