Class SourceChecker.CheckerMessage
java.lang.Object
org.checkerframework.framework.source.SourceChecker.CheckerMessage
- All Implemented Interfaces:
Comparable<SourceChecker.CheckerMessage>
- Enclosing class:
- SourceChecker
protected static class SourceChecker.CheckerMessage
extends Object
implements Comparable<SourceChecker.CheckerMessage>
Represents a message (e.g., an error message) issued by a checker.
-
Constructor Summary
ModifierConstructorDescriptionprotected
CheckerMessage
(Diagnostic.Kind kind, String message, Tree source, SourceChecker checker, StackTraceElement[] trace) Create a new CheckerMessage. -
Method Summary
-
Constructor Details
-
CheckerMessage
protected CheckerMessage(Diagnostic.Kind kind, String message, @FindDistinct Tree source, @FindDistinct SourceChecker checker, StackTraceElement[] trace) Create a new CheckerMessage.- Parameters:
kind
- kind of diagnostic, for example, error or warningmessage
- error message that needs to be printedsource
- tree node causing the errorchecker
- the type-checker in usetrace
- the stack trace when the message is created
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
compareTo
Comparesother
withthis
SourceChecker.CheckerMessage
. Compares first by position at which the error will be printed, then by kind of message, then the order in which the checkers run, and finally by the message string.- Specified by:
compareTo
in interfaceComparable<SourceChecker.CheckerMessage>
- Parameters:
other
- the other CheckerMessage- Returns:
- a negative integer, zero, or a positive integer if this CheckerMessage is less than,
equal to, or greater than
other
-