public class CompositeGrammarTree extends Object
Modifier and Type | Field and Description |
---|---|
protected List<CompositeGrammarTree> |
children |
Grammar |
grammar |
CompositeGrammarTree |
parent
Who is the parent node of this node; if null, implies node is root
|
Constructor and Description |
---|
CompositeGrammarTree(Grammar g) |
Modifier and Type | Method and Description |
---|---|
protected void |
_getPostOrderedGrammarList(List<Grammar> grammars)
work for getPostOrderedGrammarList
|
protected void |
_getPreOrderedGrammarList(List<Grammar> grammars) |
void |
addChild(CompositeGrammarTree t) |
CompositeGrammarTree |
findNode(Grammar g) |
CompositeGrammarTree |
findNode(String grammarName) |
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 postorder list of grammars; root is last 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 © 2020. All rights reserved.