com.ibm.dtfj.analyzer.util.filter
Class ClassFilter
java.lang.Object
com.ibm.dtfj.analyzer.util.filter.BaseFilter
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.
Method Summary |
protected boolean |
matched(com.ibm.dtfj.java.JavaObject obj)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 matchsuperclass
- check the superclasses
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.