Klasse 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.
-
Feldübersicht
Von Klasse geerbte Felder org.aspectj.org.eclipse.jdt.internal.formatter.TokenTraverser
counter, value
-
Konstruktorübersicht
KonstruktorBeschreibungTextEditsBuilder
(String source, List<org.eclipse.jface.text.IRegion> regions, TokenManager tokenManager, DefaultCodeFormatterOptions options) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic 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
Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.formatter.TokenTraverser
getCurrent, getLineBreaksAfter, getLineBreaksBefore, getNext, getPrevious, isSpaceAfter, isSpaceBefore, structureChanged, traverse
-
Konstruktordetails
-
TextEditsBuilder
public TextEditsBuilder(String source, List<org.eclipse.jface.text.IRegion> regions, TokenManager tokenManager, DefaultCodeFormatterOptions options)
-
-
Methodendetails
-
token
- Angegeben von:
token
in KlasseTokenTraverser
-
appendIndentationString
public static void appendIndentationString(StringBuilder target, int tabChar, int tabSize, int indent, int additionalSpaces) -
processComment
-
getEdits
-
setAlignChar
public void setAlignChar(int alignChar)
-