Class Hierarchy


  • public class Hierarchy
    extends java.lang.Object
    • Field Detail

      • LexerRoot

        protected Grammar LexerRoot
      • ParserRoot

        protected Grammar ParserRoot
      • TreeParserRoot

        protected Grammar TreeParserRoot
      • symbols

        protected java.util.Hashtable symbols
      • files

        protected java.util.Hashtable files
      • antlrTool

        protected Tool antlrTool
    • Constructor Detail

      • Hierarchy

        public Hierarchy​(Tool tool)
    • Method Detail

      • addGrammar

        public void addGrammar​(Grammar gr)
      • addGrammarFile

        public void addGrammarFile​(GrammarFile gf)
      • expandGrammarsInFile

        public void expandGrammarsInFile​(java.lang.String fileName)
      • getFile

        public GrammarFile getFile​(java.lang.String fileName)
      • getGrammar

        public Grammar getGrammar​(java.lang.String gr)
      • optionsToString

        public static java.lang.String optionsToString​(IndexedVector options)
      • readGrammarFile

        public void readGrammarFile​(java.lang.String file)
                             throws java.io.FileNotFoundException
        Throws:
        java.io.FileNotFoundException
      • verifyThatHierarchyIsComplete

        public boolean verifyThatHierarchyIsComplete()
        Return true if hierarchy is complete, false if not
      • getTool

        public Tool getTool()
      • setTool

        public void setTool​(Tool antlrTool)