Package com.google.googlejavaformat
Class FormatterDiagnostic
- java.lang.Object
-
- com.google.googlejavaformat.FormatterDiagnostic
-
public class FormatterDiagnostic extends java.lang.ObjectAn error that prevented formatting from succeeding.
-
-
Field Summary
Fields Modifier and Type Field Description private intcolumnprivate intlineNumberprivate java.lang.Stringmessage
-
Constructor Summary
Constructors Modifier Constructor Description privateFormatterDiagnostic(int lineNumber, int column, java.lang.String message)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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, java.lang.String message)static FormatterDiagnosticcreate(java.lang.String message)intline()Returns the line number on which the error occurred, or-1if the error does not have a line number.java.lang.Stringmessage()Returns a description of the problem that prevented formatting from succeeding.java.lang.StringtoString()
-
-
-
Method Detail
-
create
public static FormatterDiagnostic create(java.lang.String message)
-
create
public static FormatterDiagnostic create(int lineNumber, int column, java.lang.String message)
-
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
public java.lang.String message()
Returns a description of the problem that prevented formatting from succeeding.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-