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

java.lang.Object
  extended by edu.rice.cs.cunit.instrumentors.threadCheck.SubtypingWarning
All Implemented Interfaces:
IScannerStrategy.IScanResult, java.lang.Comparable<SubtypingWarning>

public class SubtypingWarning
extends java.lang.Object
implements IScannerStrategy.IScanResult, java.lang.Comparable<SubtypingWarning>

Storage class for subtyping warnings.


Field Summary
 java.lang.String annotationName
          Name of the annotation.
 java.lang.String methodDescriptor
          Descriptor of the method.
 java.lang.String methodName
          Name of the method.
 java.lang.String subClassName
          Name of the subclass that contained the annotation.
 java.lang.String superClassName
          Name of the superclass that did not contain the annotation.
 
Constructor Summary
SubtypingWarning(java.lang.String subClassName, java.lang.String superClassName, java.lang.String methodName, java.lang.String methodDescriptor, java.lang.String annotationName)
          Create a new subtyping warning
 
Method Summary
 int compareTo(SubtypingWarning 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.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

subClassName

public final java.lang.String subClassName
Name of the subclass that contained the annotation.


superClassName

public final java.lang.String superClassName
Name of the superclass that did not contain the annotation.


methodName

public final java.lang.String methodName
Name of the method.


methodDescriptor

public final java.lang.String methodDescriptor
Descriptor of the method.


annotationName

public final java.lang.String annotationName
Name of the annotation.

Constructor Detail

SubtypingWarning

public SubtypingWarning(java.lang.String subClassName,
                        java.lang.String superClassName,
                        java.lang.String methodName,
                        java.lang.String methodDescriptor,
                        java.lang.String annotationName)
Create a new subtyping warning

Parameters:
subClassName - name of the subclass that contained the annotation
superClassName - name of the superclass that did not contain the annotation
methodName - name of the method, or null if on class level
methodDescriptor - descriptor of the method, or null if on class level
annotationName - name of the annotation
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(SubtypingWarning o)
Compares this object with the specified object for order.

Specified by:
compareTo in interface java.lang.Comparable<SubtypingWarning>
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.Object
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