antlr.preprocessor
Class Hierarchy

java.lang.Object
  |
  +--antlr.preprocessor.Hierarchy

public class Hierarchy
extends Object


Field Summary
protected  Tool antlrTool
           
protected  Hashtable files
           
protected  antlr.preprocessor.Grammar LexerRoot
           
protected  antlr.preprocessor.Grammar ParserRoot
           
protected  Hashtable symbols
           
protected  antlr.preprocessor.Grammar TreeParserRoot
           
 
Constructor Summary
Hierarchy(Tool tool)
           
 
Method Summary
 void addGrammar(antlr.preprocessor.Grammar gr)
           
 void addGrammarFile(GrammarFile gf)
           
 void expandGrammarsInFile(String fileName)
           
 antlr.preprocessor.Grammar findRoot(antlr.preprocessor.Grammar g)
           
 GrammarFile getFile(String fileName)
           
 antlr.preprocessor.Grammar getGrammar(String gr)
           
 Tool getTool()
           
static String optionsToString(IndexedVector options)
           
 void readGrammarFile(String file)
           
 void setTool(Tool antlrTool)
           
 boolean verifyThatHierarchyIsComplete()
          Return true if hierarchy is complete, false if not
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LexerRoot

protected antlr.preprocessor.Grammar LexerRoot

ParserRoot

protected antlr.preprocessor.Grammar ParserRoot

TreeParserRoot

protected antlr.preprocessor.Grammar TreeParserRoot

symbols

protected Hashtable symbols

files

protected Hashtable files

antlrTool

protected Tool antlrTool
Constructor Detail

Hierarchy

public Hierarchy(Tool tool)
Method Detail

addGrammar

public void addGrammar(antlr.preprocessor.Grammar gr)

addGrammarFile

public void addGrammarFile(GrammarFile gf)

expandGrammarsInFile

public void expandGrammarsInFile(String fileName)

findRoot

public antlr.preprocessor.Grammar findRoot(antlr.preprocessor.Grammar g)

getFile

public GrammarFile getFile(String fileName)

getGrammar

public antlr.preprocessor.Grammar getGrammar(String gr)

optionsToString

public static String optionsToString(IndexedVector options)

readGrammarFile

public void readGrammarFile(String file)
                     throws FileNotFoundException
FileNotFoundException

verifyThatHierarchyIsComplete

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


getTool

public Tool getTool()

setTool

public void setTool(Tool antlrTool)


Copyright 1999-2003 Oliver Zeigermann. All Rights Reserved.