AddToLabelList, CaptureNextToken, CaptureNextTokenType, CodeBlock, Decl, ExceptionClause, RuleElement, Sync, TestSetInline, ThrowRecognitionExceptionpublic abstract class SrcOp extends OutputModelObject
| Modifier and Type | Field | 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 | Description |
|---|---|
SrcOp(OutputModelFactory factory) |
|
SrcOp(OutputModelFactory factory,
GrammarAST ast) |
| Modifier and Type | Method | 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–2019 ANTLR. All rights reserved.