Class SpringJavaFormatterWrapper
java.lang.Object
de.funfried.netbeans.plugins.external.formatter.java.spring.SpringJavaFormatterWrapper
Delegation class to the Spring formatter implementation.
- Author:
- bahlef
-
Method Summary
-
Method Details
-
format
@CheckForNull public String format(String code, String lineFeed, SortedSet<Pair<Integer, Integer>> changedElements) throws FormattingFailedExceptionFormats the givencode
with the given configurations and returns the formatted code.- Parameters:
code
- the unformatted codelineFeed
- the line feed to use for formattingchangedElements
- aSortedSet
containing ranges asPair
objects defining the offsets which should be formatted- Returns:
- the formatted code
- Throws:
FormattingFailedException
- if the external formatter failed to format the given code
-