edu.rice.cs.cunit.instrumentors.threadCheck
Class ClassNotFoundWarning

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by edu.rice.cs.cunit.instrumentors.threadCheck.ClassNotFoundWarning
All Implemented Interfaces:
IScannerStrategy.IScanResult, java.io.Serializable, java.lang.Comparable<ClassNotFoundWarning>

public class ClassNotFoundWarning
extends java.lang.RuntimeException
implements IScannerStrategy.IScanResult, java.lang.Comparable<ClassNotFoundWarning>

Storage class for class not found warnings.

See Also:
Serialized Form

Field Summary
 java.lang.String className
          Name of the class that was not found.
 java.lang.String msg
          Message.
 
Constructor Summary
ClassNotFoundWarning(java.lang.String className, java.lang.String msg)
          Create a new class not found warning.
 
Method Summary
 int compareTo(ClassNotFoundWarning o)
          Compares this object with the specified object for order.
 boolean equals(java.lang.Object o)
          Return true if this object is equal to the other object.
 java.lang.String getPropertyName()
          Return the name of the property that was scanned for.
 int hashCode()
          Return a hash code for this object.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

className

public final java.lang.String className
Name of the class that was not found.


msg

public final java.lang.String msg
Message.

Constructor Detail

ClassNotFoundWarning

public ClassNotFoundWarning(java.lang.String className,
                            java.lang.String msg)
Create a new class not found warning.

Parameters:
className - name of the class that was not found
msg - message
Method Detail

equals

public boolean equals(java.lang.Object o)
Return true if this object is equal to the other object.

Overrides:
equals in class java.lang.Object
Parameters:
o - other object
Returns:
true if equal

hashCode

public int hashCode()
Return a hash code for this object.

Overrides:
hashCode in class java.lang.Object
Returns:
hash code

compareTo

public int compareTo(ClassNotFoundWarning o)
Compares this object with the specified object for order.

Specified by:
compareTo in interface java.lang.Comparable<ClassNotFoundWarning>
Parameters:
o - the Object to be compared.
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
Throws:
java.lang.ClassCastException - if the specified object's type prevents it from being compared to this Object.

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Throwable
Returns:
a string representation of the object

getPropertyName

public java.lang.String getPropertyName()
Return the name of the property that was scanned for.

Specified by:
getPropertyName in interface IScannerStrategy.IScanResult
Returns:
property name