Package com.palantir.javaformat.java
Class FormatterServiceImpl
java.lang.Object
com.palantir.javaformat.java.FormatterServiceImpl
- All Implemented Interfaces:
com.palantir.javaformat.java.FormatterService
@AutoService(com.palantir.javaformat.java.FormatterService.class)
public final class FormatterServiceImpl
extends Object
implements com.palantir.javaformat.java.FormatterService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfixImports(String input) com.google.common.collect.ImmutableList<com.palantir.javaformat.java.Replacement>getFormatReplacements(String text, Collection<com.google.common.collect.Range<Integer>> toRanges)
-
Constructor Details
-
FormatterServiceImpl
public FormatterServiceImpl()
-
-
Method Details
-
getFormatReplacements
public com.google.common.collect.ImmutableList<com.palantir.javaformat.java.Replacement> getFormatReplacements(String text, Collection<com.google.common.collect.Range<Integer>> toRanges) throws com.palantir.javaformat.java.FormatterException - Specified by:
getFormatReplacementsin interfacecom.palantir.javaformat.java.FormatterService- Throws:
com.palantir.javaformat.java.FormatterException
-
formatSourceReflowStringsAndFixImports
public String formatSourceReflowStringsAndFixImports(String input) throws com.palantir.javaformat.java.FormatterException - Specified by:
formatSourceReflowStringsAndFixImportsin interfacecom.palantir.javaformat.java.FormatterService- Throws:
com.palantir.javaformat.java.FormatterException
-
fixImports
- Specified by:
fixImportsin interfacecom.palantir.javaformat.java.FormatterService- Throws:
com.palantir.javaformat.java.FormatterException
-