Class TestDiagnostic
java.lang.Object
org.checkerframework.framework.test.diagnostics.TestDiagnostic
Represents an expected error/warning message in a Java test file or an error/warning reported by
 the Javac compiler. By contrast, 
TestDiagnosticLine represents a set of TestDiagnostics,
 all of which were read from the same line of a file.- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionTestDiagnostic(String filename, long lineNumber, DiagnosticKind kind, String message, boolean isFixable, boolean omitParentheses) Basic constructor that sets the immutable fields of this diagnostic.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanEquality is compared without isFixable/omitParentheses.getKind()longinthashCode()booleanrepr()Returns the internal representation of this, formatted.booleanReturns whether or not the printed representation should omit parentheses around the message.toString()Returns a representation of this diagnostic as if it appeared in a diagnostics file.
- 
Constructor Details- 
TestDiagnosticpublic TestDiagnostic(String filename, long lineNumber, DiagnosticKind kind, String message, boolean isFixable, boolean omitParentheses) Basic constructor that sets the immutable fields of this diagnostic.
 
- 
- 
Method Details- 
getFilename
- 
getLineNumberpublic long getLineNumber()
- 
getKind
- 
getMessage
- 
isFixablepublic boolean isFixable()
- 
shouldOmitParenthesespublic boolean shouldOmitParentheses()Returns whether or not the printed representation should omit parentheses around the message.- Returns:
- whether or not the printed representation should omit parentheses around the message
 
- 
equalsEquality is compared without isFixable/omitParentheses.
- 
hashCodepublic int hashCode()
- 
toStringReturns a representation of this diagnostic as if it appeared in a diagnostics file.
- 
reprReturns the internal representation of this, formatted.- Returns:
- the internal representation of this, formatted
 
 
-