Package com.ibm.wala.util.warnings
Class Warning
- java.lang.Object
-
- com.ibm.wala.util.warnings.Warning
-
- All Implemented Interfaces:
Comparable
- Direct Known Subclasses:
AbstractReflectionInterpreter.IgnoreSerializableWarning
,AbstractReflectionInterpreter.ManySubtypesWarning
,AbstractReflectionInterpreter.NoSubtypesWarning
,ClassHierarchyWarning
,Exceptions.MethodResolutionFailure
public abstract class Warning extends Object implements Comparable
A warning message. These are ordered first by severity, and then by lexicographic order.
-
-
Field Summary
Fields Modifier and Type Field Description static byte
CLIENT_MILD
static byte
CLIENT_MODERATE
static byte
CLIENT_SEVERE
static byte
MILD
static byte
MODERATE
static byte
N_LEVELS
static byte
SEVERE
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
compareTo(Object o)
boolean
equals(Object obj)
byte
getLevel()
abstract String
getMsg()
Must return the same String always -- this is required by the implementation of hashCode.int
hashCode()
void
setLevel(byte b)
protected String
severityString()
String
toString()
-
-
-
Field Detail
-
MILD
public static final byte MILD
- See Also:
- Constant Field Values
-
MODERATE
public static final byte MODERATE
- See Also:
- Constant Field Values
-
SEVERE
public static final byte SEVERE
- See Also:
- Constant Field Values
-
CLIENT_MILD
public static final byte CLIENT_MILD
- See Also:
- Constant Field Values
-
CLIENT_MODERATE
public static final byte CLIENT_MODERATE
- See Also:
- Constant Field Values
-
CLIENT_SEVERE
public static final byte CLIENT_SEVERE
- See Also:
- Constant Field Values
-
N_LEVELS
public static final byte N_LEVELS
- See Also:
- Constant Field Values
-
-
Method Detail
-
compareTo
public int compareTo(Object o) throws ClassCastException
- Specified by:
compareTo
in interfaceComparable
- Throws:
ClassCastException
-
severityString
protected String severityString()
-
getLevel
public byte getLevel()
-
getMsg
public abstract String getMsg()
Must return the same String always -- this is required by the implementation of hashCode.
-
setLevel
public void setLevel(byte b)
-
-