java.lang.Object
edu.ucsb.ccs.jcontractor.SimpleInstrumentationFilter
- All Implemented Interfaces:
- InstrumentationFilter
- public class SimpleInstrumentationFilter
- extends java.lang.Object
- implements InstrumentationFilter
An instrumentation filter that assign the same instrumentation
level to all classes. This filter is good for implementing
defaults.
- Version:
- $Id: SimpleInstrumentationFilter.java,v 1.1 2002/03/28 19:21:57 parkera Exp $
Field Summary |
protected int |
instrumentationLevel
The instrumentation level to assign to all classes. |
instrumentationLevel
protected int instrumentationLevel
- The instrumentation level to assign to all classes.
SimpleInstrumentationFilter
public SimpleInstrumentationFilter(int level)
- Create a filter to assign the given instrumentation level.
getInstrumentationLevel
public int getInstrumentationLevel(java.lang.String classname)
- Get the instrumentation level for a class.
- Specified by:
getInstrumentationLevel
in interface InstrumentationFilter
appliesTo
public boolean appliesTo(java.lang.String theclass)
- Always returns true, this filter applies to all classes.
- Specified by:
appliesTo
in interface InstrumentationFilter
getFilterLevel
public int getFilterLevel()
- Get the filter level. Always returns zero.
- Specified by:
getFilterLevel
in interface InstrumentationFilter
toString
public java.lang.String toString()
- Get a string representation of the filter, for debugging.