public abstract class SrcOp extends OutputModelObject
| Modifier and Type | Field and Description |
|---|---|
CodeBlock |
enclosingBlock
All operations know in which block they live: CodeBlock, CodeBlockForAlt Templates might need to know block nesting level or find a specific declaration, etc...
|
RuleFunction |
enclosingRuleRunction
|
int |
uniqueID
Used to create unique var names etc...
|
ast, factory| Constructor and Description |
|---|
SrcOp(OutputModelFactory
|
SrcOp(OutputModelFactory
|
| Modifier and Type | Method and Description |
|---|---|
String |
getContextName()
Return label alt or return name of rule
|
CodeBlockForOuterMostAlt |
getOuterMostAltCodeBlock()
Walk upwards in model tree, looking for outer alt's code block
|
public int uniqueID
public CodeBlockenclosingBlock
public RuleFunctionenclosingRuleRunction
public SrcOp(OutputModelFactoryfactory)
public SrcOp(OutputModelFactoryfactory, GrammarAST ast)
public CodeBlockForOuterMostAltgetOuterMostAltCodeBlock()
public StringgetContextName()