public interface TokenRenderer
bean-style setter methods as per the user configured
getPrologue()
for each token {
if (line is changing) {
endLine()
newLine()
}
render()
}
getEpilogue();
| Modifier and Type | Method and Description |
|---|---|
String |
endLine(int line)
Produce a string to signal end of a line.
|
String |
getEpilogue()
Gets a string to be added after token processing ends.
|
String |
getPrologue()
Gets a string to be added before token processing begins.
|
String |
newLine(int line)
Produce a string to signal beginning of a line.
|
String |
render(int decision,
org.antlr.runtime.Token token)
Produce a string representation of the given token.
|
String getPrologue()
String getEpilogue()
String render(int decision, org.antlr.runtime.Token token)
decision - the index of the decision (or the context) in which
the current token is being processed. The index refers to ANTLR
DebugEventListener.enterDecision(int).token - the token to be rendered. Can be a hidden token as well.String newLine(int line)
line - the current line numberString endLine(int line)
line - the line being endedCopyright © 2006–2018 Apache Software Foundation. All rights reserved.