com.ibm.dtfj.analyzer.util.filter
Class ClassFilter

java.lang.Object
  extended by com.ibm.dtfj.analyzer.util.filter.BaseFilter
      extended by com.ibm.dtfj.analyzer.util.filter.ClassFilter
All Implemented Interfaces:
ObjectFilter
Direct Known Subclasses:
ClassAccept, ClassReject

public class ClassFilter
extends BaseFilter

The basic class filter matches against the class of the given object. If the class matches the pattern then we accept the object else we reject it. Note that this filter doesn't combine well with other instances of a ClassFilter and so if you want to build a set of more than a single class it is easier to use the ClassAccept and ClassReject filters. Note that the performance of this is not ideal at present and we will eventually cache the matching/failing classes.


Constructor Summary
ClassFilter(java.lang.String cls)
           
ClassFilter(java.lang.String cls, boolean superclass)
           
 
Method Summary
protected  boolean matched(com.ibm.dtfj.java.JavaObject obj)
           
 
Methods inherited from class com.ibm.dtfj.analyzer.util.filter.BaseFilter
acceptObject, rejectObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassFilter

public ClassFilter(java.lang.String cls)
Parameters:
cls - the name to match - end with * for a prefix match

ClassFilter

public ClassFilter(java.lang.String cls,
                   boolean superclass)
Parameters:
cls - the name to match - end with * for a prefix match
superclass - check the superclasses
Method Detail

matched

protected boolean matched(com.ibm.dtfj.java.JavaObject obj)
Specified by:
matched in class BaseFilter


© Copyright IBM Corp. 2007, 2008 All Rights Reserved. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.