Class PalantirJavaFormatterWrapper
java.lang.Object
de.funfried.netbeans.plugins.external.formatter.java.palantir.PalantirJavaFormatterWrapper
Delegation class to the Palantir formatter implementation.
- Author:
- bahlef
-
Method Summary
-
Method Details
-
format
@CheckForNull public String format(String code, SortedSet<Pair<Integer, Integer>> changedElements) throws FormattingFailedExceptionFormats the givencode
with the given configurations and returns the formatted code.- Parameters:
code
- the unformatted codechangedElements
- 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
-
organizeImports
- Throws:
FormattingFailedException
-