public interface IDocGenerator extends Serializable
| 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.
|
default void |
doNothing(Object o)
Dummy method to ensure parameters are used...
|
void |
expansionEnd(Expansion e,
boolean first)
Output end of Expansion.
|
void |
expansionStart(Expansion e,
boolean first)
Output start of an Expansion.
|
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 re)
Output end of regular expression.
|
void |
reStart(AbstractExpRegularExpression re)
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.
|
void text(String s) throws IOException
s - the String to outputIOException - on IO errorvoid print(String s) throws IOException
s - String to outputIOException - on IO errorvoid documentStart()
throws IOException
IOException - on IO errorvoid documentEnd()
throws IOException
IOException - on IO errorvoid specialTokens(String s) throws IOException
s - tokens to outputIOException - on IO errorvoid handleTokenProduction(TokenProduction tp) throws IOException
IOExceptionvoid nonterminalsStart()
throws IOException
IOException - on IO errorvoid nonterminalsEnd()
throws IOException
IOException - on IO errorvoid tokensStart()
throws IOException
IOException - on IO errorvoid tokensEnd()
throws IOException
IOException - on IO errorvoid javacode(CodeProductionJava jp) throws IOException
jp - the JavaCodeProduction to outputIOException - on IO errorvoid cppcode(CodeProductionCpp cp) throws IOException
cp - the CppCodeProduction to outputIOException - on IO errorvoid productionStart(NormalProduction np) throws IOException
np - the NormalProduction being outputIOException - on IO errorvoid productionEnd(NormalProduction np) throws IOException
np - the NormalProduction being outputIOException - on IO errorvoid expansionStart(Expansion e, boolean first) throws IOException
e - Expansion being outputfirst - whether this is the first expansionIOException - on IO errorvoid expansionEnd(Expansion e, boolean first) throws IOException
e - Expansion being outputfirst - whether this is the first expansionIOException - on IO errorvoid nonTerminalStart(ExpNonTerminal nt) throws IOException
nt - the NonTerminal being outputIOException - on IO errorvoid nonTerminalEnd(ExpNonTerminal nt) throws IOException
nt - the NonTerminal being outputIOException - on IO errorvoid reStart(AbstractExpRegularExpression re) throws IOException
re - the RegularExpression being outputIOException - on IO errorvoid reEnd(AbstractExpRegularExpression re) throws IOException
re - the RegularExpression being outputIOException - on IO errordefault void doNothing(Object o)
o - anythingCopyright © 2017–2019 Philip Helger. All rights reserved.