Class TextEditsBuilder

java.lang.Object
org.aspectj.org.eclipse.jdt.internal.formatter.TokenTraverser
org.aspectj.org.eclipse.jdt.internal.formatter.TextEditsBuilder

public class TextEditsBuilder extends TokenTraverser
Creates the formatter's result TextEdit by scanning through the tokens and comparing them with the original source.
  • Constructor Details

  • Method Details

    • token

      protected boolean token(Token token, int index)
      Specified by:
      token in class TokenTraverser
    • appendIndentationString

      public static void appendIndentationString(StringBuilder target, int tabChar, int tabSize, int indent, int additionalSpaces)
    • processComment

      public void processComment(Token commentToken)
    • getEdits

      public List<org.eclipse.text.edits.TextEdit> getEdits()
    • setAlignChar

      public void setAlignChar(int alignChar)