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 byteCLIENT_MILDstatic byteCLIENT_MODERATEstatic byteCLIENT_SEVEREstatic byteMILDstatic byteMODERATEstatic byteN_LEVELSstatic byteSEVERE
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcompareTo(Object o)booleanequals(Object obj)bytegetLevel()abstract StringgetMsg()Must return the same String always -- this is required by the implementation of hashCode.inthashCode()voidsetLevel(byte b)protected StringseverityString()StringtoString()
-
-
-
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:
compareToin 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)
-
-