java.lang.Object
com.google.googlejavaformat.FormatterDiagnostic
public class FormatterDiagnostic extends Object
An error that prevented formatting from succeeding.
-
Method Summary
Modifier and Type Method Description intcolumn()Returns the 0-indexed column number on which the error occurred, or-1if the error does not have a column.static FormatterDiagnosticcreate(int lineNumber, int column, String message)static FormatterDiagnosticcreate(String message)intline()Returns the line number on which the error occurred, or-1if the error does not have a line number.Stringmessage()Returns a description of the problem that prevented formatting from succeeding.StringtoString()
-
Method Details
-
create
-
create
-
line
public int line()Returns the line number on which the error occurred, or-1if the error does not have a line number. -
column
public int column()Returns the 0-indexed column number on which the error occurred, or-1if the error does not have a column. -
message
Returns a description of the problem that prevented formatting from succeeding. -
toString
-