Class DiagMessage
java.lang.Object
org.checkerframework.framework.source.DiagMessage
A 
DiagMessage is a kind, a message key, and arguments. The message key will be expanded
 according to the user locale. Any arguments will then be interpolated into the localized message.
 By contrast, javax.tools.Diagnostic has just a string message.
- 
Constructor SummaryConstructorsConstructorDescriptionDiagMessage(Diagnostic.Kind kind, @CompilerMessageKey String messageKey, Object... args) Create a DiagMessage.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanObject[]getArgs()Returns the customized optional arguments for the message.getKind()Returns the kind of this DiagMessage.Returns the message key of this DiagMessage.inthashCode()static List<DiagMessage>mergeLists(List<DiagMessage> list1, List<DiagMessage> list2) Returns the concatenation of the lists.toString()
- 
Constructor Details- 
DiagMessageCreate a DiagMessage.- Parameters:
- kind- the kind of message
- messageKey- the message key
- args- the arguments that will be interpolated into the localized message
 
 
- 
- 
Method Details- 
getKindReturns the kind of this DiagMessage.- Returns:
- the kind of this DiagMessage
 
- 
getMessageKeyReturns the message key of this DiagMessage.- Returns:
- the message key of this DiagMessage
 
- 
getArgsReturns the customized optional arguments for the message.- Returns:
- the customized optional arguments for the message
 
- 
equals
- 
hashCode
- 
toString
- 
mergeListsReturns the concatenation of the lists.- Parameters:
- list1- a list of DiagMessage, or null
- list2- a list of DiagMessage, or null
- Returns:
- the concatenation of the lists
 
 
-