Constructor and Description |
---|
Packages(String packageName) |
Packages(String packageName,
boolean recursive) |
Packages(String packageName,
boolean recursive,
ClassLoader classLoader) |
Packages(String packageName,
ClassLoader classLoader) |
Modifier and Type | Method and Description |
---|---|
Class<?>[] |
asArray() |
String[] |
asResources() |
Packages |
evictAnnotations() |
Packages |
evictAnonymousClasses() |
Packages |
evictClasses() |
Packages |
evictEnums() |
Packages |
evictInterfaces() |
void |
onlyAnnotations() |
void |
onlyAnonymousClasses() |
void |
onlyClasses() |
void |
onlyEnums() |
void |
onlyInterfaces() |
void |
onlyResource(String suffix) |
Iterator<Class<?>> |
scan()
Scans all classes accessible from the context class loader which belong to the given package and subpackages.
|
Iterator<String> |
scanResource()
Scans the resource accessible from the context class loader which belong to the given package and subpackages.
|
public Packages(String packageName, ClassLoader classLoader)
public Packages(String packageName, boolean recursive, ClassLoader classLoader)
public Iterator<Class<?>> scan() throws IOException
IOException
- failed when read directory resourcespublic Iterator<String> scanResource() throws IOException
IOException
- failed when read directory resourcespublic String[] asResources()
public Packages evictInterfaces()
public Packages evictEnums()
public Packages evictAnnotations()
public Packages evictAnonymousClasses()
public Packages evictClasses()
public void onlyInterfaces()
public void onlyEnums()
public void onlyAnnotations()
public void onlyAnonymousClasses()
public void onlyClasses()
public void onlyResource(String suffix)
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.