Class EclipseJdk11CodeFormatter

java.lang.Object
io.spring.javaformat.eclipse.jdt.jdk11.core.formatter.CodeFormatter
io.spring.javaformat.eclipse.jdt.jdk11.internal.formatter.DefaultCodeFormatter
io.spring.javaformat.eclipse.jdt.jdk11.internal.formatter.ExtendedCodeFormatter
io.spring.javaformat.formatter.jdk11.eclipse.EclipseJdk11CodeFormatter
All Implemented Interfaces:
EclipseCodeFormatter

public class EclipseJdk11CodeFormatter extends io.spring.javaformat.eclipse.jdt.jdk11.internal.formatter.ExtendedCodeFormatter implements EclipseCodeFormatter
Internal delegate JDK 11 baseline EclipseCodeFormatter to apply Spring formatter.prefs and add Preparators.
Author:
Phillip Webb
  • Field Summary

    Fields inherited from class io.spring.javaformat.eclipse.jdt.jdk11.internal.formatter.DefaultCodeFormatter

    DEBUG, previewEnabled, sourceLevel, tokens

    Fields inherited from class io.spring.javaformat.eclipse.jdt.jdk11.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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class io.spring.javaformat.eclipse.jdt.jdk11.internal.formatter.ExtendedCodeFormatter

    addPreparator, prepareWraps, tokenizeSource

    Methods inherited from class io.spring.javaformat.eclipse.jdt.jdk11.internal.formatter.DefaultCodeFormatter

    createIndentationString, format, format

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.spring.javaformat.formatter.eclipse.EclipseCodeFormatter

    createIndentationString, format, format
  • Constructor Details

    • EclipseJdk11CodeFormatter

      public EclipseJdk11CodeFormatter(JavaFormatConfig javaFormatConfig)
  • Method Details

    • setOptions

      public void setOptions(Map<String,String> options)
      Specified by:
      setOptions in interface EclipseCodeFormatter
      Overrides:
      setOptions in class io.spring.javaformat.eclipse.jdt.jdk11.internal.formatter.DefaultCodeFormatter