public class TestDiagnostic extends Object
Constructor and Description |
---|
TestDiagnostic(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
|
DiagnosticKind |
getKind() |
long |
getLineNumber() |
String |
getMessage() |
int |
hashCode() |
boolean |
isFixable() |
boolean |
shouldOmitParentheses() |
String |
toString() |
public TestDiagnostic(long lineNumber, DiagnosticKind kind, String message, boolean isFixable, boolean omitParentheses)
public long getLineNumber()
public DiagnosticKind getKind()
public boolean isFixable()
public String getMessage()
public boolean shouldOmitParentheses()
public String asSourceString()
public boolean equals(Object otherObj)