Index

A B C D E F G H I J L M P R S T V 
All Classes and Interfaces|All Packages|Serialized Form

A

AOSP - Enum constant in enum class com.palantir.javaformat.java.JavaFormatterOptions.Style
The AOSP-compliant configuration.

B

build() - Method in class com.palantir.javaformat.java.JavaFormatterOptions.Builder
 
builder() - Static method in class com.palantir.javaformat.java.JavaFormatterOptions
Returns a builder for JavaFormatterOptions.

C

column() - Method in class com.palantir.javaformat.java.FormatterDiagnostic
Returns the 0-indexed column number on which the error occurred, or -1 if the error does not have a column.
com.palantir.javaformat.java - package com.palantir.javaformat.java
 
create(int, int, String) - Static method in class com.palantir.javaformat.java.FormatterDiagnostic
 
create(int, int, String) - Static method in class com.palantir.javaformat.java.Replacement
 
create(String) - Static method in class com.palantir.javaformat.java.FormatterDiagnostic
 

D

defaultOptions() - Static method in class com.palantir.javaformat.java.JavaFormatterOptions
Returns the default formatting options.
diagnostics() - Method in exception com.palantir.javaformat.java.FormatterException
 

E

equals(Object) - Method in class com.palantir.javaformat.java.Replacement
 

F

formatSourceReflowStringsAndFixImports(String) - Method in interface com.palantir.javaformat.java.FormatterService
Formats an input string (a Java compilation unit), reflows strings and fixes imports.
FormatterDiagnostic - Class in com.palantir.javaformat.java
An error that prevented formatting from succeeding.
FormatterException - Exception in com.palantir.javaformat.java
Checked exception class for formatter errors.
FormatterException(FormatterDiagnostic) - Constructor for exception com.palantir.javaformat.java.FormatterException
 
FormatterException(Iterable<FormatterDiagnostic>) - Constructor for exception com.palantir.javaformat.java.FormatterException
 
FormatterException(String) - Constructor for exception com.palantir.javaformat.java.FormatterException
 
FormatterService - Interface in com.palantir.javaformat.java
A stable facade for palantir-java-format.

G

getFormatReplacements(String, Collection<Range<Integer>>) - Method in interface com.palantir.javaformat.java.FormatterService
Emit a list of Replacements to convert from input to formatted output.
getReplacementString() - Method in class com.palantir.javaformat.java.Replacement
The string to replace the range of characters with.
getReplaceRange() - Method in class com.palantir.javaformat.java.Replacement
The range of characters in the original source to replace.
GOOGLE - Enum constant in enum class com.palantir.javaformat.java.JavaFormatterOptions.Style
The default Google Java Style configuration.

H

hashCode() - Method in class com.palantir.javaformat.java.Replacement
 

I

indentationMultiplier() - Method in class com.palantir.javaformat.java.JavaFormatterOptions
Returns the multiplier for the unit of indent.

J

JavaFormatterOptions - Class in com.palantir.javaformat.java
Options for a google-java-format invocation.
JavaFormatterOptions.Builder - Class in com.palantir.javaformat.java
A builder for JavaFormatterOptions.
JavaFormatterOptions.Style - Enum Class in com.palantir.javaformat.java
 

L

line() - Method in class com.palantir.javaformat.java.FormatterDiagnostic
Returns the line number on which the error occurred, or -1 if the error does not have a line number.

M

maxLineLength() - Method in class com.palantir.javaformat.java.JavaFormatterOptions
 
maxLineLength() - Method in enum class com.palantir.javaformat.java.JavaFormatterOptions.Style
 
message() - Method in class com.palantir.javaformat.java.FormatterDiagnostic
Returns a description of the problem that prevented formatting from succeeding.

P

PALANTIR - Enum constant in enum class com.palantir.javaformat.java.JavaFormatterOptions.Style
The default Palantir Java Style configuration.

R

Replacement - Class in com.palantir.javaformat.java
Data class representing a range in the original source and replacement text for that range.

S

style() - Method in class com.palantir.javaformat.java.JavaFormatterOptions
Returns the code style.
style(JavaFormatterOptions.Style) - Method in class com.palantir.javaformat.java.JavaFormatterOptions.Builder
 

T

toString() - Method in class com.palantir.javaformat.java.FormatterDiagnostic
 
toString() - Method in class com.palantir.javaformat.java.Replacement
 

V

valueOf(String) - Static method in enum class com.palantir.javaformat.java.JavaFormatterOptions.Style
Returns the enum constant of this class with the specified name.
values() - Static method in enum class com.palantir.javaformat.java.JavaFormatterOptions.Style
Returns an array containing the constants of this enum class, in the order they are declared.
A B C D E F G H I J L M P R S T V 
All Classes and Interfaces|All Packages|Serialized Form