Class Warning

java.lang.Object
com.ibm.wala.core.util.warnings.Warning
All Implemented Interfaces:
Comparable<Warning>
Direct Known Subclasses:
AbstractReflectionInterpreter.IgnoreSerializableWarning, AbstractReflectionInterpreter.ManySubtypesWarning, AbstractReflectionInterpreter.NoSubtypesWarning, ClassHierarchyWarning, Exceptions.MethodResolutionFailure

public abstract class Warning extends Object implements Comparable<Warning>
A warning message. These are ordered first by severity, and then by lexicographic order.
  • Field Details

  • Constructor Details

    • Warning

      public Warning(byte level)
    • Warning

      public Warning()
  • Method Details

    • compareTo

      public int compareTo(Warning other)
      Specified by:
      compareTo in interface Comparable<Warning>
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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)