public class HTMLGenerator extends TextGenerator
m_aPW| Constructor and Description |
|---|
HTMLGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
cppcode(CodeProductionCpp cp)
Output comment from a production.
|
void |
documentEnd()
Output document footer.
|
void |
documentStart()
Output document header.
|
void |
expansionEnd(Expansion e,
boolean first)
Output end of Expansion.
|
void |
expansionStart(Expansion e,
boolean first)
Output start of an Expansion.
|
protected String |
getID(String nt) |
void |
handleTokenProduction(TokenProduction tp) |
void |
javacode(CodeProductionJava jp)
Output comment from a production.
|
void |
nonTerminalEnd(ExpNonTerminal nt)
Output end of non-terminal.
|
void |
nonterminalsEnd()
Output end of non-terminal.
|
void |
nonterminalsStart()
Output start of non-terminal.
|
void |
nonTerminalStart(ExpNonTerminal nt)
Output start of non-terminal.
|
void |
print(String s)
Output String.
|
void |
productionEnd(NormalProduction np)
Output end of a normal production.
|
void |
productionStart(NormalProduction np)
Output start of a normal production.
|
void |
reEnd(AbstractExpRegularExpression r)
Output end of regular expression.
|
void |
reStart(AbstractExpRegularExpression r)
Output start of regular expression.
|
void |
specialTokens(String s)
Output Special Tokens.
|
void |
text(String s)
Output string with entity substitution for brackets and ampersands.
|
void |
tokensEnd()
Output end of tokens.
|
void |
tokensStart()
Output start of tokens.
|
createPrintWriter, createPrintWriterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoNothingpublic void text(String s) throws IOException
IDocGeneratortext in interface IDocGeneratortext in class TextGenerators - the String to outputIOException - on IO errorpublic void print(String s) throws IOException
IDocGeneratorprint in interface IDocGeneratorprint in class TextGenerators - String to outputIOException - on IO errorpublic void documentStart()
throws IOException
IDocGeneratordocumentStart in interface IDocGeneratordocumentStart in class TextGeneratorIOException - on IO errorpublic void documentEnd()
throws IOException
IDocGeneratordocumentEnd in interface IDocGeneratordocumentEnd in class TextGeneratorIOException - on IO errorpublic void specialTokens(String s) throws IOException
IDocGeneratorspecialTokens in interface IDocGeneratorspecialTokens in class TextGenerators - tokens to outputIOException - on IO errorpublic void handleTokenProduction(TokenProduction tp) throws IOException
handleTokenProduction in interface IDocGeneratorhandleTokenProduction in class TextGeneratorIOExceptionpublic void nonterminalsStart()
throws IOException
IDocGeneratornonterminalsStart in interface IDocGeneratornonterminalsStart in class TextGeneratorIOException - on IO errorpublic void nonterminalsEnd()
throws IOException
IDocGeneratornonterminalsEnd in interface IDocGeneratornonterminalsEnd in class TextGeneratorIOException - on IO errorpublic void tokensStart()
throws IOException
IDocGeneratortokensStart in interface IDocGeneratortokensStart in class TextGeneratorIOException - on IO errorpublic void tokensEnd()
throws IOException
IDocGeneratortokensEnd in interface IDocGeneratortokensEnd in class TextGeneratorIOException - on IO errorpublic void javacode(CodeProductionJava jp) throws IOException
IDocGeneratorjavacode in interface IDocGeneratorjavacode in class TextGeneratorjp - the JavaCodeProduction to outputIOException - on IO errorpublic void cppcode(CodeProductionCpp cp) throws IOException
IDocGeneratorcppcode in interface IDocGeneratorcppcode in class TextGeneratorcp - the CppCodeProduction to outputIOException - on IO errorpublic void productionStart(NormalProduction np) throws IOException
IDocGeneratorproductionStart in interface IDocGeneratorproductionStart in class TextGeneratornp - the NormalProduction being outputIOException - on IO errorpublic void productionEnd(NormalProduction np) throws IOException
IDocGeneratorproductionEnd in interface IDocGeneratorproductionEnd in class TextGeneratornp - the NormalProduction being outputIOException - on IO errorpublic void expansionStart(Expansion e, boolean first) throws IOException
IDocGeneratorexpansionStart in interface IDocGeneratorexpansionStart in class TextGeneratore - Expansion being outputfirst - whether this is the first expansionIOException - on IO errorpublic void expansionEnd(Expansion e, boolean first) throws IOException
IDocGeneratorexpansionEnd in interface IDocGeneratorexpansionEnd in class TextGeneratore - Expansion being outputfirst - whether this is the first expansionIOException - on IO errorpublic void nonTerminalStart(ExpNonTerminal nt) throws IOException
IDocGeneratornonTerminalStart in interface IDocGeneratornonTerminalStart in class TextGeneratornt - the NonTerminal being outputIOException - on IO errorpublic void nonTerminalEnd(ExpNonTerminal nt) throws IOException
IDocGeneratornonTerminalEnd in interface IDocGeneratornonTerminalEnd in class TextGeneratornt - the NonTerminal being outputIOException - on IO errorpublic void reStart(AbstractExpRegularExpression r)
IDocGeneratorreStart in interface IDocGeneratorreStart in class TextGeneratorr - the RegularExpression being outputpublic void reEnd(AbstractExpRegularExpression r)
IDocGeneratorreEnd in interface IDocGeneratorreEnd in class TextGeneratorr - the RegularExpression being outputCopyright © 2017–2019 Philip Helger. All rights reserved.