public class ClassFileFilterIsA extends Object implements IClassFileFilter, FileFilter
| 限定符和类型 | 字段和说明 |
|---|---|
protected File[] |
classpaths |
protected Set |
superclasses |
| 构造器和说明 |
|---|
ClassFileFilterIsA() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
accept(Class c) |
boolean |
accept(File pathname)
Tries to detect (from the file path and the Classloaders urls) and load the
corresponding class and delegates to
accept(Class). |
boolean |
addSuperClass(Class c)
Adds the given argument to the acceptance filter.
|
static void |
main(String[] args) |
public boolean addSuperClass(Class c)
Adds the given argument to the acceptance filter. The filter will only return true for a Class a in the following condition:
(a instanceof c)
This method may be called several times. The accept method will return true if the given Class is derived from any of the internal super classes.
c - A non-final Class.public boolean accept(Class c)
accept 在接口中 IClassFileFilteraddSuperClass(Class),
IClassFileFilter.accept(Class)public boolean accept(File pathname)
accept(Class).accept 在接口中 FileFilterFileFilter.accept(File)public static void main(String[] args)
Copyright © 2016. All rights reserved.