Class SpringJavaFormatFormattingService

java.lang.Object
com.intellij.formatting.service.AbstractDocumentFormattingService
io.spring.format.formatter.intellij.formatting.SpringJavaFormatFormattingService
All Implemented Interfaces:
com.intellij.formatting.service.FormattingService

public class SpringJavaFormatFormattingService extends com.intellij.formatting.service.AbstractDocumentFormattingService
FormattingService to apply Spring formatting conventions.
Author:
Phillip Webb
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.intellij.formatting.service.FormattingService

    com.intellij.formatting.service.FormattingService.Feature
  • Field Summary

    Fields inherited from interface com.intellij.formatting.service.FormattingService

    EP_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canFormat(com.intellij.psi.PsiFile file)
     
    void
    formatDocument(com.intellij.openapi.editor.Document document, List<com.intellij.openapi.util.TextRange> formattingRanges, com.intellij.formatting.FormattingContext formattingContext, boolean canChangeWhiteSpaceOnly, boolean quickFormat)
     
    Set<com.intellij.formatting.service.FormattingService.Feature>
     

    Methods inherited from class com.intellij.formatting.service.AbstractDocumentFormattingService

    formatElement, formatElement, formatRanges, getImportOptimizers, setDocument

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface com.intellij.formatting.service.FormattingService

    runAfter
  • Constructor Details

    • SpringJavaFormatFormattingService

      public SpringJavaFormatFormattingService()
  • Method Details

    • getFeatures

      @NotNull public Set<com.intellij.formatting.service.FormattingService.Feature> getFeatures()
    • canFormat

      public boolean canFormat(@NotNull com.intellij.psi.PsiFile file)
    • formatDocument

      public void formatDocument(@NotNull com.intellij.openapi.editor.Document document, @NotNull List<com.intellij.openapi.util.TextRange> formattingRanges, @NotNull com.intellij.formatting.FormattingContext formattingContext, boolean canChangeWhiteSpaceOnly, boolean quickFormat)
      Specified by:
      formatDocument in class com.intellij.formatting.service.AbstractDocumentFormattingService