Class TextEditsBuilder
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.formatter.TokenTraverser
org.aspectj.org.eclipse.jdt.internal.formatter.TextEditsBuilder
Creates the formatter's result TextEdit by scanning through the tokens and comparing them with the original source.
-
Field Summary
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.formatter.TokenTraverser
counter, value
-
Constructor Summary
ConstructorDescriptionTextEditsBuilder(String source, List<org.eclipse.jface.text.IRegion> regions, TokenManager tokenManager, DefaultCodeFormatterOptions options)
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
appendIndentationString(StringBuilder target, int tabChar, int tabSize, int indent, int additionalSpaces)
List<org.eclipse.text.edits.TextEdit>
getEdits()
void
processComment(Token commentToken)
void
setAlignChar(int alignChar)
protected boolean
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.formatter.TokenTraverser
getCurrent, getLineBreaksAfter, getLineBreaksBefore, getNext, getPrevious, isSpaceAfter, isSpaceBefore, structureChanged, traverse
-
Constructor Details
-
TextEditsBuilder
public TextEditsBuilder(String source, List<org.eclipse.jface.text.IRegion> regions, TokenManager tokenManager, DefaultCodeFormatterOptions options)
-
-
Method Details
-
token
- Specified by:
token
in classTokenTraverser
-
appendIndentationString
public static void appendIndentationString(StringBuilder target, int tabChar, int tabSize, int indent, int additionalSpaces) -
processComment
-
getEdits
-
setAlignChar
public void setAlignChar(int alignChar)
-