antlr.preprocessor

Class Hierarchy


public class Hierarchy
extends Object

Field Summary

protected Grammar
LexerRoot
protected Grammar
ParserRoot
protected Grammar
TreeParserRoot
protected Tool
antlrTool
protected Hashtable
files
protected Hashtable
symbols

Constructor Summary

Hierarchy(Tool tool)

Method Summary

void
addGrammar(Grammar gr)
void
addGrammarFile(GrammarFile gf)
void
expandGrammarsInFile(String fileName)
Grammar
findRoot(Grammar g)
GrammarFile
getFile(String fileName)
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

Field Details

LexerRoot

protected Grammar LexerRoot

ParserRoot

protected Grammar ParserRoot

TreeParserRoot

protected Grammar TreeParserRoot

antlrTool

protected Tool antlrTool

files

protected Hashtable files

symbols

protected Hashtable symbols

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)

getTool

public Tool getTool()

optionsToString

public static String optionsToString(IndexedVector options)

readGrammarFile

public void readGrammarFile(String file)
            throws FileNotFoundException

setTool

public void setTool(Tool antlrTool)

verifyThatHierarchyIsComplete

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