Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

edu.ucsb.ccs.jcontractor
Class SimpleInstrumentationFilter  view SimpleInstrumentationFilter download SimpleInstrumentationFilter.java

java.lang.Object
  extended byedu.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.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

instrumentationLevel

protected int instrumentationLevel
The instrumentation level to assign to all classes.

Constructor Detail

SimpleInstrumentationFilter

public SimpleInstrumentationFilter(int level)
Create a filter to assign the given instrumentation level.

Method Detail

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.