Package it.unive.lisa.checks.warnings
Class Warning
- java.lang.Object
-
- it.unive.lisa.checks.warnings.Warning
-
- All Implemented Interfaces:
java.lang.Comparable<Warning>
- Direct Known Subclasses:
WarningWithLocation
public class Warning extends java.lang.Object implements java.lang.Comparable<Warning>
A warning reported by LiSA on the program under analysis.
-
-
Constructor Summary
Constructors Constructor Description Warning(java.lang.String message)Builds the warning.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Warning o)booleanequals(java.lang.Object obj)java.lang.StringgetMessage()Yields the message of this warning.java.lang.StringgetTag()Yields the tag of this warning.java.lang.StringgetTaggedMessage()Yields the message of this warning, preceeded by the tag under square brackets.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getMessage
public final java.lang.String getMessage()
Yields the message of this warning.- Returns:
- the message of this warning
-
getTag
public java.lang.String getTag()
Yields the tag of this warning.- Returns:
- the tag of this warning
-
getTaggedMessage
public final java.lang.String getTaggedMessage()
Yields the message of this warning, preceeded by the tag under square brackets.- Returns:
- the tag and message of this warning
-
compareTo
public int compareTo(Warning o)
- Specified by:
compareToin interfacejava.lang.Comparable<Warning>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-