Interface IOutputFormatter
-
- All Known Implementing Classes:
TextOutputFormatter
public interface IOutputFormatter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
closeBrace(BraceStyle style)
void
endNode(AstNode node)
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 codevoid
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
writeTextBlock(java.lang.String value)
void
writeTextLiteral(java.lang.String value)
void
writeToken(java.lang.String token)
-
-
-
Method Detail
-
startNode
void startNode(AstNode node)
-
endNode
void endNode(AstNode node)
-
writeLabel
void writeLabel(java.lang.String label)
-
writeIdentifier
void writeIdentifier(java.lang.String identifier)
-
writeKeyword
void writeKeyword(java.lang.String keyword)
-
writeOperator
void writeOperator(java.lang.String token)
-
writeDelimiter
void writeDelimiter(java.lang.String token)
-
writeToken
void writeToken(java.lang.String token)
-
writeLiteral
void writeLiteral(java.lang.String value)
-
writeTextLiteral
void writeTextLiteral(java.lang.String value)
-
writeTextBlock
void writeTextBlock(java.lang.String value)
-
space
void space()
-
openBrace
void openBrace(BraceStyle style)
-
closeBrace
void closeBrace(BraceStyle style)
-
indent
void indent()
-
unindent
void unindent()
-
newLine
void newLine()
-
writeComment
void writeComment(CommentType commentType, java.lang.String content)
-
resetLineNumberOffsets
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
-
-