Package com.google.googlejavaformat
Class FormatterDiagnostic
java.lang.Object
com.google.googlejavaformat.FormatterDiagnostic
An error that prevented formatting from succeeding.
-
Method Summary
Modifier and TypeMethodDescriptionintcolumn()Returns the 0-indexed column number on which the error occurred, or-1if the error does not have a column.static FormatterDiagnosticstatic FormatterDiagnosticintline()Returns the line number on which the error occurred, or-1if the error does not have a line number.message()Returns a description of the problem that prevented formatting from succeeding.toString()
-
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
-