Package | Description |
---|---|
org.antlr.v4.codegen | |
org.antlr.v4.codegen.model | |
org.antlr.v4.codegen.model.decl |
Modifier and Type | Method | Description |
---|---|---|
Decl |
DefaultOutputModelFactory.getCurrentDeclForName(String name) |
|
Decl |
ParserFactory.getTokenLabelDecl(String label) |
Modifier and Type | Field | Description |
---|---|---|
Decl |
AddToLabelList.label |
|
Decl |
Choice.label |
Modifier and Type | Field | Description |
---|---|---|
OrderedHashSet<Decl> |
InvokeRule.labels |
|
List<Decl> |
MatchToken.labels |
|
OrderedHashSet<Decl> |
RuleFunction.locals |
Modifier and Type | Method | Description |
---|---|---|
List<Decl> |
RuleFunction.getDeclForAltElement(GrammarAST t,
String refLabelName,
boolean needList) |
|
Set<Decl> |
RuleFunction.getDeclsForAllElements(List<AltAST> altASTs) |
for all alts, find which ref X or r needs List
Must see across alts.
|
List<Decl> |
InvokeRule.getLabels() |
|
List<Decl> |
LabeledOp.getLabels() |
|
List<Decl> |
MatchToken.getLabels() |
Modifier and Type | Method | Description |
---|---|---|
void |
RuleFunction.addContextDecl(String altLabel,
Decl d) |
Add decl to struct ctx for rule or alt if labeled
|
void |
RuleFunction.addLocalDecl(Decl d) |
Add local var decl
|
Constructor | Description |
---|---|
AddToLabelList(OutputModelFactory factory,
String listName,
Decl label) |
Modifier and Type | Class | Description |
---|---|---|
class |
AltLabelStructDecl |
A StructDecl to handle a -> label on alt
|
class |
AttributeDecl |
|
class |
ContextGetterDecl |
|
class |
ContextRuleGetterDecl |
public XContext X() { } |
class |
ContextRuleListGetterDecl |
public List<XContext> X() { }
public XContext X(int i) { } |
class |
ContextRuleListIndexedGetterDecl |
|
class |
ContextTokenGetterDecl |
public Token X() { } |
class |
ContextTokenListGetterDecl |
public List<Token> X() { }
public Token X(int i) { } |
class |
ContextTokenListIndexedGetterDecl |
|
class |
ElementListDecl |
|
class |
RuleContextDecl |
|
class |
RuleContextListDecl |
|
class |
StructDecl |
This object models the structure holding all of the parameters,
return values, local variables, and labels associated with a rule.
|
class |
TokenDecl |
x=ID or implicit _tID label
|
class |
TokenListDecl |
|
class |
TokenTypeDecl |
Modifier and Type | Field | Description |
---|---|---|
OrderedHashSet<Decl> |
StructDecl.attributeDecls |
|
OrderedHashSet<Decl> |
StructDecl.attrs |
|
OrderedHashSet<Decl> |
StructDecl.getters |
|
OrderedHashSet<Decl> |
CodeBlock.locals |
|
OrderedHashSet<Decl> |
StructDecl.ruleContextDecls |
|
OrderedHashSet<Decl> |
StructDecl.ruleContextListDecls |
|
OrderedHashSet<Decl> |
StructDecl.tokenDecls |
|
OrderedHashSet<Decl> |
StructDecl.tokenListDecls |
|
OrderedHashSet<Decl> |
StructDecl.tokenTypeDecls |
Modifier and Type | Method | Description |
---|---|---|
void |
StructDecl.addDecl(Decl d) |
|
void |
CodeBlock.addLocalDecl(Decl d) |
Add local var decl
|
Copyright © 1992–2018 ANTLR. All rights reserved.