antlr.preprocessor

Class Hierarchy

public class Hierarchy extends Object

Field Summary
protected ToolantlrTool
protected Hashtablefiles
protected GrammarLexerRoot
protected GrammarParserRoot
protected Hashtablesymbols
protected GrammarTreeParserRoot
Constructor Summary
Hierarchy(Tool tool)
Method Summary
voidaddGrammar(Grammar gr)
voidaddGrammarFile(GrammarFile gf)
voidexpandGrammarsInFile(String fileName)
GrammarfindRoot(Grammar g)
GrammarFilegetFile(String fileName)
GrammargetGrammar(String gr)
ToolgetTool()
static StringoptionsToString(IndexedVector options)
voidreadGrammarFile(String file)
voidsetTool(Tool antlrTool)
booleanverifyThatHierarchyIsComplete()
Return true if hierarchy is complete, false if not

Field Detail

antlrTool

protected Tool antlrTool

files

protected Hashtable files

LexerRoot

protected Grammar LexerRoot

ParserRoot

protected Grammar ParserRoot

symbols

protected Hashtable symbols

TreeParserRoot

protected Grammar TreeParserRoot

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(String fileName)

findRoot

public Grammar findRoot(Grammar g)

getFile

public GrammarFile getFile(String fileName)

getGrammar

public Grammar getGrammar(String gr)

getTool

public Tool getTool()

optionsToString

public static String optionsToString(IndexedVector options)

readGrammarFile

public void readGrammarFile(String file)

setTool

public void setTool(Tool antlrTool)

verifyThatHierarchyIsComplete

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