public class TestDiagnostic extends Object
TestDiagnosticLine
represents a set of TestDiagnostics,
all of which were read from the same line of a file.JavaDiagnosticReader
Constructor and Description |
---|
TestDiagnostic(String filename,
long lineNumber,
DiagnosticKind kind,
String message,
boolean isFixable,
boolean omitParentheses)
Basic constructor that sets the immutable fields of this diagnostic.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(@Nullable Object otherObj)
Equality is compared without isFixable/omitParentheses.
|
String |
getFilename() |
DiagnosticKind |
getKind() |
long |
getLineNumber() |
String |
getMessage() |
int |
hashCode() |
boolean |
isFixable() |
boolean |
shouldOmitParentheses()
Returns whether or not the printed representation should omit parentheses around the message.
|
String |
toString()
Returns a representation of this diagnostic as if it appeared in a diagnostics file.
|
public TestDiagnostic(String filename, long lineNumber, DiagnosticKind kind, String message, boolean isFixable, boolean omitParentheses)
public String getFilename()
public long getLineNumber()
public DiagnosticKind getKind()
public String getMessage()
public boolean isFixable()
public boolean shouldOmitParentheses()
public boolean equals(@Nullable Object otherObj)