public interface IDocGenerator
| Modifier and Type | Method and Description |
|---|---|
void |
cppcode(CodeProductionCpp cp)
Output comment from a production.
|
default void |
debug(String message)
Log debug messages.
|
void |
documentEnd()
Output document footer.
|
void |
documentStart()
Output document header.
|
default void |
doNothing(Object o)
Dummy method to ensure parameters are used...
|
default void |
error(String message)
Log error messages.
|
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) |
default void |
info(String message)
Log informational messages.
|
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.
|
default void |
warn(String message)
Log warning messages.
|
void text(String s)
s - the String to outputvoid print(String s)
s - String to outputvoid documentStart()
void documentEnd()
void specialTokens(String s)
s - tokens to outputvoid handleTokenProduction(TokenProduction tp)
void nonterminalsStart()
void nonterminalsEnd()
void tokensStart()
void tokensEnd()
void javacode(CodeProductionJava jp)
jp - the JavaCodeProduction to outputvoid cppcode(CodeProductionCpp cp)
cp - the CppCodeProduction to outputvoid productionStart(NormalProduction np)
np - the NormalProduction being outputvoid productionEnd(NormalProduction np)
np - the NormalProduction being outputvoid expansionStart(Expansion e, boolean first)
e - Expansion being outputfirst - whether this is the first expansionvoid expansionEnd(Expansion e, boolean first)
e - Expansion being outputfirst - whether this is the first expansionvoid nonTerminalStart(ExpNonTerminal nt)
nt - the NonTerminal being outputvoid nonTerminalEnd(ExpNonTerminal nt)
nt - the NonTerminal being outputvoid reStart(AbstractExpRegularExpression re)
re - the RegularExpression being outputvoid reEnd(AbstractExpRegularExpression re)
re - the RegularExpression being outputdefault void debug(String message)
message - the string to logdefault void info(String message)
message - the string to logdefault void warn(String message)
message - the string to logdefault void error(String message)
message - the string to logdefault void doNothing(Object o)
o - anythingCopyright © 2017–2018 Philip Helger. All rights reserved.