|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.percederberg.grammatica.output.ParserGenerator | +--net.percederberg.grammatica.output.CSharpParserGenerator
A C# parser generator. This class generates the source code files needed for a C# parser.
Field Summary |
Fields inherited from class net.percederberg.grammatica.output.ParserGenerator |
FILE_COMMENT |
Constructor Summary | |
CSharpParserGenerator(Grammar grammar)
Creates a new parser generator. |
Method Summary | |
java.lang.String |
getBaseName()
Returns the class name prefix. |
CodeStyle |
getCodeStyle()
Returns the code style to use. |
java.lang.String |
getNamespace()
Returns the namespace used for the classes. |
void |
setBaseName(java.lang.String name)
Sets the class name prefix. |
void |
setNamespace(java.lang.String namespace)
Sets the namespace to use for the classes. |
void |
write()
Writes the source code files. |
Methods inherited from class net.percederberg.grammatica.output.ParserGenerator |
getBaseDir, getFileComment, getGrammar, setBaseDir |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CSharpParserGenerator(Grammar grammar)
grammar
- the grammar to useMethod Detail |
public java.lang.String getNamespace()
public void setNamespace(java.lang.String namespace)
namespace
- the fully qualified namespacepublic java.lang.String getBaseName()
public void setBaseName(java.lang.String name)
name
- the class name prefixpublic CodeStyle getCodeStyle()
public void write() throws java.io.IOException
write
in class ParserGenerator
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 |