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
ConstructorsConstructorDescriptionTextEditsBuilder(String source, List<org.eclipse.jface.text.IRegion> regions, TokenManager tokenManager, DefaultCodeFormatterOptions options) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidappendIndentationString(StringBuilder target, int tabChar, int tabSize, int indent, int additionalSpaces) List<org.eclipse.text.edits.TextEdit> getEdits()voidprocessComment(Token commentToken) voidsetAlignChar(int alignChar) protected booleanMethods 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:
tokenin classTokenTraverser
-
appendIndentationString
public static void appendIndentationString(StringBuilder target, int tabChar, int tabSize, int indent, int additionalSpaces) -
processComment
-
getEdits
-
setAlignChar
public void setAlignChar(int alignChar)
-