public class TestDiagnostic
extends java.lang.Object
JavaDiagnosticReader
and TestDiagnosticLine
.Constructor and Description |
---|
TestDiagnostic(java.lang.String filename,
long lineNumber,
DiagnosticKind kind,
java.lang.String message,
boolean isFixable,
boolean omitParentheses)
Basic constructor that sets the immutable fields of this diagnostic.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asSourceString() |
boolean |
equals(java.lang.Object otherObj)
Equality is compared without isFixable/omitParentheses
|
java.lang.String |
getFilename() |
DiagnosticKind |
getKind() |
long |
getLineNumber() |
java.lang.String |
getMessage() |
int |
hashCode() |
boolean |
isFixable() |
boolean |
shouldOmitParentheses() |
java.lang.String |
toString() |
public TestDiagnostic(java.lang.String filename, long lineNumber, DiagnosticKind kind, java.lang.String message, boolean isFixable, boolean omitParentheses)
public java.lang.String getFilename()
public long getLineNumber()
public DiagnosticKind getKind()
public boolean isFixable()
public java.lang.String getMessage()
public boolean shouldOmitParentheses()
public java.lang.String asSourceString()
public boolean equals(java.lang.Object otherObj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object