|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.cunit.instrumentors.threadCheck.AThreadCheckStrategy.SharedData
public static class AThreadCheckStrategy.SharedData
Data shared among all AAddThreadCheckStrategy instances. This is an IScannerStrategy so that the warnings can be reported from a central place.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface edu.rice.cs.cunit.instrumentors.util.IScannerStrategy |
|---|
IScannerStrategy.IScanResult |
| Field Summary | |
|---|---|
private java.util.HashSet<BadPredicateAnnotationWarning> |
_badPredicateAnnotWarnings
Warnings about badly formatted predicate annotations. |
private java.util.HashSet<ClassNotFoundWarning> |
_classNotFoundWarnings
Warnings about classes that could not be found. |
private java.util.List<java.lang.String> |
_classPath
List of paths to consider when searching for classes. |
private java.lang.String |
_currentClassName
Name of the class currently being instrumented. |
private boolean |
_includePredicateMethodParameterOrder
Update the method attribute of a @PredicateLink annotation to include the parameter order. |
private boolean |
_xmlConcDefFormat
Use concurrency definitions format for output, i.e. |
private java.lang.String |
_xmlFileName
File name for the XML annotations file. |
| Constructor Summary | |
|---|---|
AThreadCheckStrategy.SharedData(java.util.List<java.lang.String> parameters)
Create a new instance of shared data. |
|
| Method Summary | |
|---|---|
void |
addBadPredicateAnnotWarning(BadPredicateAnnotationWarning badPredicateAnnotWarning)
Add a bad predicate annotation warning. |
void |
addClassNotFoundWarning(ClassNotFoundWarning classNotFoundWarning)
Add a class not found warning. |
void |
done()
Instrumentation of all classes is done. |
java.util.List<java.lang.String> |
getClassPath()
Return the paths to consider when searching classes. |
java.lang.String |
getCurrentClassName()
Return the name of the class currently being instrumented. |
boolean |
getIncludePredicateMethodParameterOrder()
Returns true if the method attribute of a @PredicateLink annotation should be updated to include the parameter order. |
java.util.List<? extends IScannerStrategy.IScanResult> |
getScanResults()
Return a list of scan results. |
java.lang.String |
getXmlFileName()
Return the name of the XML annotations file. |
void |
instrument(ClassFile cf)
Instrument the class. |
boolean |
isXmlConcDefFormat()
Return true if the XML file should use concurrency definitions format for output, i.e. |
void |
setCurrentClassName(java.lang.String currentClassName)
Set the name of the class currently being instrumented. |
void |
setXmlFileName(java.lang.String xmlFileName)
Set the name of the XML annotations file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.HashSet<BadPredicateAnnotationWarning> _badPredicateAnnotWarnings
private java.util.HashSet<ClassNotFoundWarning> _classNotFoundWarnings
private java.lang.String _xmlFileName
private boolean _xmlConcDefFormat
private java.util.List<java.lang.String> _classPath
private java.lang.String _currentClassName
private boolean _includePredicateMethodParameterOrder
| Constructor Detail |
|---|
public AThreadCheckStrategy.SharedData(java.util.List<java.lang.String> parameters)
parameters - parameters for the instrumentation strategy| Method Detail |
|---|
public java.lang.String getXmlFileName()
public void setXmlFileName(java.lang.String xmlFileName)
xmlFileName - new file namepublic boolean isXmlConcDefFormat()
public java.util.List<java.lang.String> getClassPath()
public void addClassNotFoundWarning(ClassNotFoundWarning classNotFoundWarning)
classNotFoundWarning - warning to addpublic void addBadPredicateAnnotWarning(BadPredicateAnnotationWarning badPredicateAnnotWarning)
badPredicateAnnotWarning - warning to addpublic boolean getIncludePredicateMethodParameterOrder()
public java.util.List<? extends IScannerStrategy.IScanResult> getScanResults()
getScanResults in interface IScannerStrategypublic void instrument(ClassFile cf)
instrument in interface IInstrumentationStrategycf - class file infopublic java.lang.String getCurrentClassName()
public void setCurrentClassName(java.lang.String currentClassName)
currentClassName - new current class namepublic void done()
done in interface IInstrumentationStrategy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||