| Modifier and Type | Method and Description |
|---|---|
ResourceList |
ResourceList.classFilesOnly()
Return a new
ResourceList consisting of only the resources with the filename extension ".class". |
static ResourceList |
ResourceList.emptyList()
Return an unmodifiable empty
ResourceList. |
ResourceList |
ResourceList.filter(ResourceList.ResourceFilter filter)
Find the subset of the
Resource objects in this list for which the given filter predicate is true. |
ResourceList |
ResourceList.get(String resourcePath)
Returns a list of all resources with the requested path.
|
ResourceList |
ScanResult.getAllResources()
Get the list of all resources.
|
ResourceList |
ScanResult.getResourcesMatchingPattern(Pattern pattern)
Get the list of all resources found in accepted packages that have a path matching the requested pattern.
|
ResourceList |
ScanResult.getResourcesWithExtension(String extension)
Get the list of all resources found in accepted packages that have the requested filename extension.
|
ResourceList |
ScanResult.getResourcesWithLeafName(String leafName)
Get the list of all resources found in accepted packages that have the requested leafname.
|
ResourceList |
ScanResult.getResourcesWithPath(String resourcePath)
Get the list of all resources found in accepted packages that have the given path, relative to the package
root of the classpath element.
|
ResourceList |
ScanResult.getResourcesWithPathIgnoringAccept(String resourcePath)
Get the list of all resources found in any classpath element, whether in accepted packages or not (as long
as the resource is not rejected), that have the given path, relative to the package root of the classpath
element.
|
ResourceList |
ScanResult.getResourcesWithPathIgnoringWhitelist(String resourcePath)
Deprecated.
|
ResourceList |
ResourceList.nonClassFilesOnly()
Return a new
ResourceList consisting of non-classfile resources only. |
| Modifier and Type | Method and Description |
|---|---|
Map<String,ResourceList> |
ResourceList.asMap()
Return this
ResourceList as a map from resource path (obtained from Resource.getPath()) to a
ResourceList of Resource objects that have that path. |
List<Map.Entry<String,ResourceList>> |
ResourceList.findDuplicatePaths()
Find duplicate resource paths within this
ResourceList. |
Map<String,ResourceList> |
ScanResult.getAllResourcesAsMap()
Get a map from resource path to
Resource for all resources (including classfiles and non-classfiles)
found in accepted packages. |
Copyright © 2021. All rights reserved.