CodeBlockForAlt
public class CodeBlock extends SrcOp
Modifier and Type | Field | Description |
---|---|---|
int |
codeBlockLevel |
|
OrderedHashSet<Decl> |
locals |
|
List<SrcOp> |
ops |
|
List<SrcOp> |
preamble |
|
int |
treeLevel |
ast, factory
enclosingBlock, enclosingRuleRunction, uniqueID
Constructor | Description |
---|---|
CodeBlock(OutputModelFactory factory) |
|
CodeBlock(OutputModelFactory factory,
int treeLevel,
int codeBlockLevel) |
Modifier and Type | Method | Description |
---|---|---|
void |
addLocalDecl(Decl d) |
Add local var decl
|
void |
addOp(SrcOp op) |
|
void |
addOps(List<SrcOp> ops) |
|
void |
addPreambleOp(SrcOp op) |
|
void |
insertOp(int i,
SrcOp op) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContextName, getOuterMostAltCodeBlock
public int codeBlockLevel
public int treeLevel
public OrderedHashSet<Decl> locals
public CodeBlock(OutputModelFactory factory)
public CodeBlock(OutputModelFactory factory, int treeLevel, int codeBlockLevel)
Copyright © 1992–2019 ANTLR. All rights reserved.