Class SpringCodeFormatter

  • Direct Known Subclasses:
    SpringCodeFormatterSpaces, SpringCodeFormatterTabs

    public abstract class SpringCodeFormatter
    extends org.eclipse.jdt.core.formatter.CodeFormatter
    Eclipse CodeFormatter base class for Spring formatting.
    Author:
    Phillip Webb
    • Field Summary

      • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String createIndentationString​(int indentationLevel)  
      org.eclipse.text.edits.TextEdit format​(int kind, java.lang.String source, int offset, int length, int indentationLevel, java.lang.String lineSeparator)  
      org.eclipse.text.edits.TextEdit format​(int kind, java.lang.String source, org.eclipse.jface.text.IRegion[] regions, int indentationLevel, java.lang.String lineSeparator)  
      void setOptions​(java.util.Map<java.lang.String,​java.lang.String> options)  
      • Methods inherited from class java.lang.Object

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

      • SpringCodeFormatter

        public SpringCodeFormatter​(JavaFormatConfig javaFormatConfig)
    • Method Detail

      • format

        public org.eclipse.text.edits.TextEdit format​(int kind,
                                                      java.lang.String source,
                                                      int offset,
                                                      int length,
                                                      int indentationLevel,
                                                      java.lang.String lineSeparator)
        Specified by:
        format in class org.eclipse.jdt.core.formatter.CodeFormatter
      • format

        public org.eclipse.text.edits.TextEdit format​(int kind,
                                                      java.lang.String source,
                                                      org.eclipse.jface.text.IRegion[] regions,
                                                      int indentationLevel,
                                                      java.lang.String lineSeparator)
        Specified by:
        format in class org.eclipse.jdt.core.formatter.CodeFormatter
      • createIndentationString

        public java.lang.String createIndentationString​(int indentationLevel)
        Overrides:
        createIndentationString in class org.eclipse.jdt.core.formatter.CodeFormatter
      • setOptions

        public void setOptions​(java.util.Map<java.lang.String,​java.lang.String> options)
        Overrides:
        setOptions in class org.eclipse.jdt.core.formatter.CodeFormatter