public class CompositeGrammarTree extends Object
Modifier and Type | Field | Description |
---|---|---|
protected List<CompositeGrammarTree> |
children |
|
Grammar |
grammar |
|
CompositeGrammarTree |
parent |
Who is the parent node of this node; if null, implies node is root
|
Constructor | Description |
---|---|
CompositeGrammarTree(Grammar g) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
_getPostOrderedGrammarList(List<Grammar> grammars) |
work for getPostOrderedGrammarList
|
protected void |
_getPreOrderedGrammarList(List<Grammar> grammars) |
|
void |
addChild(CompositeGrammarTree t) |
|
CompositeGrammarTree |
findNode(String grammarName) |
|
CompositeGrammarTree |
findNode(Grammar g) |
|
Object |
getOption(String key) |
Find an option by looking up towards the root grammar rather than down
|
List<Grammar> |
getPostOrderedGrammarList() |
Return a postorder list of grammars; root is last in list
|
List<Grammar> |
getPreOrderedGrammarList() |
Return a preorder list of grammars; root is first in list
|
Rule |
getRule(String ruleName) |
Find a rule by looking in current grammar then down towards the
delegate grammars.
|
void |
trimLexerImportsIntoCombined() |
protected List<CompositeGrammarTree> children
public Grammar grammar
public CompositeGrammarTree parent
public CompositeGrammarTree(Grammar g)
public void addChild(CompositeGrammarTree t)
public Rule getRule(String ruleName)
public Object getOption(String key)
public CompositeGrammarTree findNode(Grammar g)
public CompositeGrammarTree findNode(String grammarName)
public List<Grammar> getPostOrderedGrammarList()
protected void _getPostOrderedGrammarList(List<Grammar> grammars)
public List<Grammar> getPreOrderedGrammarList()
public void trimLexerImportsIntoCombined()
Copyright © 1992–2019 ANTLR. All rights reserved.