Class ExtendedCodeFormatter

java.lang.Object
org.eclipse.jdt.core.formatter.CodeFormatter
org.eclipse.jdt.internal.formatter.DefaultCodeFormatter
org.eclipse.jdt.internal.formatter.ExtendedCodeFormatter

public class ExtendedCodeFormatter extends org.eclipse.jdt.internal.formatter.DefaultCodeFormatter
Extended version of DefaultCodeFormatter that allows additional preparators to be used.
Author:
Phillip Webb
  • Field Summary

    Fields inherited from class org.eclipse.jdt.internal.formatter.DefaultCodeFormatter

    DEBUG, previewEnabled, sourceLevel, tokens

    Fields inherited from class org.eclipse.jdt.core.formatter.CodeFormatter

    F_INCLUDE_COMMENTS, K_CLASS_BODY_DECLARATIONS, K_COMPILATION_UNIT, K_EXPRESSION, K_JAVA_DOC, K_MODULE_INFO, K_MULTI_LINE_COMMENT, K_SINGLE_LINE_COMMENT, K_STATEMENTS, K_UNKNOWN
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
    ExtendedCodeFormatter(org.eclipse.jdt.internal.formatter.DefaultCodeFormatterOptions options)
     
    ExtendedCodeFormatter(org.eclipse.jdt.internal.formatter.DefaultCodeFormatterOptions defaultCodeFormatterOptions, Map<String,String> options)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
    prepareWraps(int kind)
     
    protected void
    tokenizeSource(int kind)
     

    Methods inherited from class org.eclipse.jdt.internal.formatter.DefaultCodeFormatter

    createIndentationString, format, format, setOptions

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExtendedCodeFormatter

      public ExtendedCodeFormatter()
    • ExtendedCodeFormatter

      public ExtendedCodeFormatter(org.eclipse.jdt.internal.formatter.DefaultCodeFormatterOptions defaultCodeFormatterOptions, Map<String,String> options)
    • ExtendedCodeFormatter

      public ExtendedCodeFormatter(org.eclipse.jdt.internal.formatter.DefaultCodeFormatterOptions options)
    • ExtendedCodeFormatter

      public ExtendedCodeFormatter(Map<String,String> options)
  • Method Details

    • addPreparator

      protected void addPreparator(Preparator preparator)
    • tokenizeSource

      protected void tokenizeSource(int kind)
      Overrides:
      tokenizeSource in class org.eclipse.jdt.internal.formatter.DefaultCodeFormatter
    • prepareWraps

      protected void prepareWraps(int kind)
      Overrides:
      prepareWraps in class org.eclipse.jdt.internal.formatter.DefaultCodeFormatter