public class TestDiagnostic extends Object
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 |
---|---|
String |
asSourceString() |
boolean |
equals(Object otherObj)
Equality is compared without isFixable/omitParentheses
|
String |
getFilename() |
DiagnosticKind |
getKind() |
long |
getLineNumber() |
String |
getMessage() |
int |
hashCode() |
boolean |
isFixable() |
boolean |
shouldOmitParentheses() |
String |
toString() |
public TestDiagnostic(String filename, long lineNumber, DiagnosticKind kind, String message, boolean isFixable, boolean omitParentheses)
public String getFilename()
public long getLineNumber()
public DiagnosticKind getKind()
public boolean isFixable()
public String getMessage()
public boolean shouldOmitParentheses()
public String asSourceString()
public boolean equals(Object otherObj)