|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--net.percederberg.grammatica.output.ParserGenerator
The grammar parser generator base class.
| Field Summary | |
protected static java.lang.String |
FILE_COMMENT
The default file comment string. |
| Constructor Summary | |
protected |
ParserGenerator(Grammar grammar)
Creates a new parser generator. |
| Method Summary | |
java.io.File |
getBaseDir()
Returns the base directory where files will be created. |
java.lang.String |
getFileComment()
Returns the file comment. |
Grammar |
getGrammar()
Returns the grammar that this parser generator works on. |
void |
setBaseDir(java.io.File dir)
Sets the base directory where files will be created. |
abstract void |
write()
Writes the source code files. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.lang.String FILE_COMMENT
| Constructor Detail |
protected ParserGenerator(Grammar grammar)
grammar - the grammar to use| Method Detail |
public Grammar getGrammar()
public java.io.File getBaseDir()
public void setBaseDir(java.io.File dir)
dir - the base directorypublic java.lang.String getFileComment()
public abstract void write()
throws java.io.IOException
java.io.IOException - if the files couldn't be written correctly
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||