Class CompositeGrammarTree


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

      • CompositeGrammarTree

        public CompositeGrammarTree​(Grammar g)
    • Method Detail

      • getRule

        public Rule getRule​(String ruleName)
        Find a rule by looking in current grammar then down towards the delegate grammars.
      • getOption

        public Object getOption​(String key)
        Find an option by looking up towards the root grammar rather than down
      • getPostOrderedGrammarList

        public List<Grammar> getPostOrderedGrammarList()
        Return a postorder list of grammars; root is last in list
      • _getPostOrderedGrammarList

        protected void _getPostOrderedGrammarList​(List<Grammar> grammars)
        work for getPostOrderedGrammarList
      • getPreOrderedGrammarList

        public List<Grammar> getPreOrderedGrammarList()
        Return a preorder list of grammars; root is first in list
      • _getPreOrderedGrammarList

        protected void _getPreOrderedGrammarList​(List<Grammar> grammars)
      • trimLexerImportsIntoCombined

        public void trimLexerImportsIntoCombined()