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 factory) |
SrcOp(OutputModelFactory factory,
GrammarAST ast) |
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 CodeBlock enclosingBlock
public RuleFunction enclosingRuleRunction
public SrcOp(OutputModelFactory factory)
public SrcOp(OutputModelFactory factory, GrammarAST ast)
public CodeBlockForOuterMostAlt getOuterMostAltCodeBlock()
public String getContextName()
Copyright © 1992–2020 ANTLR. All rights reserved.