程序包 org.antlr.tool
类 CompositeGrammarTree
- java.lang.Object
-
- org.antlr.tool.CompositeGrammarTree
-
public class CompositeGrammarTree extends java.lang.Object
A tree of grammars
-
-
字段概要
字段 修饰符和类型 字段 说明 protected java.util.List<CompositeGrammarTree>
children
Grammar
grammar
CompositeGrammarTree
parent
Who is the parent node of this node; if null, implies node is root
-
构造器概要
构造器 构造器 说明 CompositeGrammarTree(Grammar g)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected void
_getPostOrderedGrammarList(java.util.List<Grammar> grammars)
work for getPostOrderedGrammarListprotected void
_getPreOrderedGrammarList(java.util.List<Grammar> grammars)
void
addChild(CompositeGrammarTree t)
CompositeGrammarTree
findNode(java.lang.String grammarName)
CompositeGrammarTree
findNode(Grammar g)
java.lang.Object
getOption(java.lang.String key)
Find an option by looking up towards the root grammar rather than downjava.util.List<Grammar>
getPostOrderedGrammarList()
Return a postorder list of grammars; root is last in listjava.util.List<Grammar>
getPreOrderedGrammarList()
Return a preorder list of grammars; root is first in listRule
getRule(java.lang.String ruleName)
Find a rule by looking in current grammar then down towards the delegate grammars.void
trimLexerImportsIntoCombined()
-
-
-
字段详细资料
-
children
protected java.util.List<CompositeGrammarTree> children
-
grammar
public Grammar grammar
-
parent
public CompositeGrammarTree parent
Who is the parent node of this node; if null, implies node is root
-
-
构造器详细资料
-
CompositeGrammarTree
public CompositeGrammarTree(Grammar g)
-
-
方法详细资料
-
addChild
public void addChild(CompositeGrammarTree t)
-
getRule
public Rule getRule(java.lang.String ruleName)
Find a rule by looking in current grammar then down towards the delegate grammars.
-
getOption
public java.lang.Object getOption(java.lang.String key)
Find an option by looking up towards the root grammar rather than down
-
findNode
public CompositeGrammarTree findNode(Grammar g)
-
findNode
public CompositeGrammarTree findNode(java.lang.String grammarName)
-
getPostOrderedGrammarList
public java.util.List<Grammar> getPostOrderedGrammarList()
Return a postorder list of grammars; root is last in list
-
_getPostOrderedGrammarList
protected void _getPostOrderedGrammarList(java.util.List<Grammar> grammars)
work for getPostOrderedGrammarList
-
getPreOrderedGrammarList
public java.util.List<Grammar> getPreOrderedGrammarList()
Return a preorder list of grammars; root is first in list
-
_getPreOrderedGrammarList
protected void _getPreOrderedGrammarList(java.util.List<Grammar> grammars)
-
trimLexerImportsIntoCombined
public void trimLexerImportsIntoCombined()
-
-