public abstract class AbstractClasspath extends Object implements Classpath
| 构造器和说明 |
|---|
AbstractClasspath() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract Set<Location> |
allResources() |
ClassFile |
findClassFile(String classname)
根据 class name 在 root 下查找
|
List<ClassFile> |
scanClassFiles(String packageName,
ResourceFilter filter)
Scan of classes using the starting package and filter.
|
Set<Location> |
scanResourceLocations(String namespace,
ResourceFilter filter)
如果 namespace 是 null,则代表直接在 root 下递归检索
|
List<Resource> |
scanResources(String namespace,
ResourceFilter filter)
Scan for file resources using the starting location and filter.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindResource, getRootpublic ClassFile findClassFile(String classname)
ClasspathfindClassFile 在接口中 Classpathclassname - the class namepublic List<ClassFile> scanClassFiles(String packageName, ResourceFilter filter)
ClasspathScannerscanClassFiles 在接口中 ClasspathScannerpackageName - The relative location from which the scan will start.filter - The filter used to match classes.public List<Resource> scanResources(String namespace, ResourceFilter filter)
ClasspathScannerscanResources 在接口中 ClasspathScannernamespace - The relative location from which the scan will start.filter - The filter used to match resources.public Set<Location> scanResourceLocations(String namespace, ResourceFilter filter)
scanResourceLocations 在接口中 ClasspathScannernamespace - root下的 namespacefilter - filterpublic abstract Set<Location> allResources()
allResources 在接口中 ClasspathScannerCopyright © 2020. All rights reserved.