|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.cunit.instrumentors.threadCheck.ThreadCheckDefinitionRecord
public class ThreadCheckDefinitionRecord
Class that keeps track an invariant (ThreadCheckAnnotationRecord) and the classes and methods its applied to.
| Field Summary | |
|---|---|
java.util.HashSet<java.lang.String> |
classNames
A set of class names. |
ThreadCheckAnnotationRecord |
invariant
The invariant applied to the classes and methods below. |
java.util.HashMap<java.lang.String,java.lang.Boolean> |
methodClassAndSigs
A map of method strings, generated by concatenating the class name, "::" and the method signature. |
| Constructor Summary | |
|---|---|
ThreadCheckDefinitionRecord(ThreadCheckAnnotationRecord inv)
Create a new empty definition record that just specifies the invariant. |
|
| Method Summary | |
|---|---|
void |
addClass(java.lang.String className)
Add the specified class to the set of classes. |
void |
addMethod(java.lang.String className,
java.lang.String methodSig,
boolean suppressSubtypingWarning)
Add the specified method to the set of methods. |
boolean |
appliesToClass(java.lang.String className)
Return true if the invariant applies to the specified class. |
boolean |
appliesToMethod(java.lang.String className,
java.lang.String methodSig)
Return true if the invariant applies to the specified method. |
boolean |
empty()
Return true if there is nothing specified in this definition record. |
boolean |
equals(java.lang.Object o)
Returns true if the two ThreadCheckDefinitionRecords are equal. |
ThreadCheckAnnotationRecord |
getInvariant()
Return the invariant of this definition. |
int |
hashCode()
Return a hashcode for this ThreadCheckDefinitionRecord. |
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 |
|---|
public final ThreadCheckAnnotationRecord invariant
public final java.util.HashSet<java.lang.String> classNames
public final java.util.HashMap<java.lang.String,java.lang.Boolean> methodClassAndSigs
| Constructor Detail |
|---|
public ThreadCheckDefinitionRecord(ThreadCheckAnnotationRecord inv)
inv - the invariant of this definition| Method Detail |
|---|
public void addClass(java.lang.String className)
className - name of the class
public void addMethod(java.lang.String className,
java.lang.String methodSig,
boolean suppressSubtypingWarning)
className - name of the classmethodSig - signature of the methodsuppressSubtypingWarning - true if subtyping warnings should be suppressedpublic boolean appliesToClass(java.lang.String className)
className - name of the class
public boolean appliesToMethod(java.lang.String className,
java.lang.String methodSig)
className - name of the classmethodSig - signature of the method
public ThreadCheckAnnotationRecord getInvariant()
public boolean empty()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - other object
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||