Class SpringJavaFormatterWrapper

java.lang.Object
de.funfried.netbeans.plugins.external.formatter.java.spring.SpringJavaFormatterWrapper

public final class SpringJavaFormatterWrapper extends Object
Delegation class to the Spring formatter implementation.
Author:
bahlef
  • Method Details

    • format

      @CheckForNull public String format(String code, String lineFeed, SortedSet<Pair<Integer,Integer>> changedElements) throws FormattingFailedException
      Formats the given code with the given configurations and returns the formatted code.
      Parameters:
      code - the unformatted code
      lineFeed - the line feed to use for formatting
      changedElements - a SortedSet containing ranges as Pair objects defining the offsets which should be formatted
      Returns:
      the formatted code
      Throws:
      FormattingFailedException - if the external formatter failed to format the given code