Class Hierarchy

java.lang.Object
antlr.preprocessor.Hierarchy

public class Hierarchy extends Object
  • Field Details

    • LexerRoot

      protected Grammar LexerRoot
    • ParserRoot

      protected Grammar ParserRoot
    • TreeParserRoot

      protected Grammar TreeParserRoot
    • symbols

      protected Hashtable symbols
    • files

      protected Hashtable files
    • antlrTool

      protected Tool antlrTool
  • Constructor Details

    • Hierarchy

      public Hierarchy(Tool tool)
  • Method Details

    • addGrammar

      public void addGrammar(Grammar gr)
    • addGrammarFile

      public void addGrammarFile(GrammarFile gf)
    • expandGrammarsInFile

      public void expandGrammarsInFile(String fileName)
    • findRoot

      public Grammar findRoot(Grammar g)
    • getFile

      public GrammarFile getFile(String fileName)
    • getGrammar

      public Grammar getGrammar(String gr)
    • optionsToString

      public static String optionsToString(IndexedVector options)
    • readGrammarFile

      public void readGrammarFile(String file) throws FileNotFoundException
      Throws:
      FileNotFoundException
    • verifyThatHierarchyIsComplete

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

      public Tool getTool()
    • setTool

      public void setTool(Tool antlrTool)