public class TextOutputFormatter extends java.lang.Object implements IOutputFormatter
| Modifier and Type | Class and Description |
|---|---|
static class |
TextOutputFormatter.LineNumberMode
whether or not to emit debug line number comments into the source code
|
| Constructor and Description |
|---|
TextOutputFormatter(ITextOutput output,
TextOutputFormatter.LineNumberMode lineNumberMode) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeBrace(BraceStyle style) |
void |
endNode(AstNode node) |
java.util.List<LineNumberPosition> |
getLineNumberPositions()
Returns the mapping from original to decompiler-emitted line numbers.
|
void |
indent() |
void |
newLine() |
void |
openBrace(BraceStyle style) |
void |
resetLineNumberOffsets(OffsetToLineNumberConverter offset2LineNumber)
instructs 'this' formatter to forget what it used to know about the sequence of line
number offsets in the source code
|
void |
space() |
void |
startNode(AstNode node) |
void |
unindent() |
void |
writeComment(CommentType commentType,
java.lang.String content) |
void |
writeDelimiter(java.lang.String token) |
void |
writeIdentifier(java.lang.String identifier) |
void |
writeKeyword(java.lang.String keyword) |
void |
writeLabel(java.lang.String label) |
void |
writeLiteral(java.lang.String value) |
void |
writeOperator(java.lang.String token) |
void |
writeTextLiteral(java.lang.String value) |
void |
writeToken(java.lang.String token) |
public TextOutputFormatter(ITextOutput output, TextOutputFormatter.LineNumberMode lineNumberMode)
public void startNode(AstNode node)
startNode in interface IOutputFormatterpublic void endNode(AstNode node)
endNode in interface IOutputFormatterpublic void writeLabel(java.lang.String label)
writeLabel in interface IOutputFormatterpublic void writeIdentifier(java.lang.String identifier)
writeIdentifier in interface IOutputFormatterpublic void writeKeyword(java.lang.String keyword)
writeKeyword in interface IOutputFormatterpublic void writeOperator(java.lang.String token)
writeOperator in interface IOutputFormatterpublic void writeDelimiter(java.lang.String token)
writeDelimiter in interface IOutputFormatterpublic void writeToken(java.lang.String token)
writeToken in interface IOutputFormatterpublic void writeLiteral(java.lang.String value)
writeLiteral in interface IOutputFormatterpublic void writeTextLiteral(java.lang.String value)
writeTextLiteral in interface IOutputFormatterpublic void space()
space in interface IOutputFormatterpublic void openBrace(BraceStyle style)
openBrace in interface IOutputFormatterpublic void closeBrace(BraceStyle style)
closeBrace in interface IOutputFormatterpublic void indent()
indent in interface IOutputFormatterpublic void unindent()
unindent in interface IOutputFormatterpublic void newLine()
newLine in interface IOutputFormatterpublic void writeComment(CommentType commentType, java.lang.String content)
writeComment in interface IOutputFormatterpublic void resetLineNumberOffsets(OffsetToLineNumberConverter offset2LineNumber)
IOutputFormatterresetLineNumberOffsets in interface IOutputFormatterpublic java.util.List<LineNumberPosition> getLineNumberPositions()