Class CompositeGrammarTree


  • public class CompositeGrammarTree
    extends java.lang.Object
    A tree of grammars
    • Constructor Detail

      • CompositeGrammarTree

        public CompositeGrammarTree​(Grammar g)
    • Method Detail

      • 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
      • 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()