Package org.antlr.tool
Class CompositeGrammarTree
java.lang.Object
org.antlr.tool.CompositeGrammarTree
A tree of grammars
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<CompositeGrammarTree>
Who is the parent node of this node; if null, implies node is root -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
_getPostOrderedGrammarList
(List<Grammar> grammars) work for getPostOrderedGrammarListprotected void
_getPreOrderedGrammarList
(List<Grammar> grammars) void
Find an option by looking up towards the root grammar rather than downReturn a postorder list of grammars; root is last in listReturn a preorder list of grammars; root is first in listFind a rule by looking in current grammar then down towards the delegate grammars.void
-
Field Details
-
children
-
grammar
-
parent
Who is the parent node of this node; if null, implies node is root
-
-
Constructor Details
-
CompositeGrammarTree
-
-
Method Details
-
addChild
-
getRule
Find a rule by looking in current grammar then down towards the delegate grammars. -
getOption
Find an option by looking up towards the root grammar rather than down -
findNode
-
findNode
-
getPostOrderedGrammarList
Return a postorder list of grammars; root is last in list -
_getPostOrderedGrammarList
work for getPostOrderedGrammarList -
getPreOrderedGrammarList
Return a preorder list of grammars; root is first in list -
_getPreOrderedGrammarList
-
trimLexerImportsIntoCombined
public void trimLexerImportsIntoCombined()
-