|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--edu.ucsb.ccs.jcontractor.SimpleInstrumentationFilter
An instrumentation filter that assign the same instrumentation level to all classes. This filter is good for implementing defaults.
| Field Summary |
| Fields inherited from interface edu.ucsb.ccs.jcontractor.InstrumentationFilter |
ALL, NONE, POST, PRE |
| Constructor Summary | |
SimpleInstrumentationFilter(int level)
Create a filter to assign the given instrumentation level. |
|
| Method Summary | |
boolean |
appliesTo(java.lang.String theclass)
Always returns true, this filter applies to all classes. |
int |
getFilterLevel()
Get the filter level. |
int |
getInstrumentationLevel(java.lang.String classname)
Get the instrumentation level for a class. |
java.lang.String |
toString()
Get a string representation of the filter, for debugging. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SimpleInstrumentationFilter(int level)
level - the instrumentation level to assign to all classes.| Method Detail |
public int getInstrumentationLevel(java.lang.String classname)
getInstrumentationLevel in interface InstrumentationFilterclassname - the name of the class to get the
instrumentation level of.
instrumentationLevel. All classes are
assigned the same level.public boolean appliesTo(java.lang.String theclass)
appliesTo in interface InstrumentationFiltertheclass - the name of a class to test.
public int getFilterLevel()
getFilterLevel in interface InstrumentationFilterpublic 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 | ||||||||||