Package | Description |
---|---|
com.google.common.reflect |
This package contains utilities to work with Java reflection.
|
Modifier and Type | Class and Description |
---|---|
static class |
ClassPath.ClassInfo
Represents a class that can be loaded through
ClassPath.ClassInfo.load() . |
Modifier and Type | Field and Description |
---|---|
private ImmutableSet<ClassPath.ResourceInfo> |
ClassPath.resources |
Modifier and Type | Method and Description |
---|---|
(package private) static ClassPath.ResourceInfo |
ClassPath.ResourceInfo.of(java.io.File file,
java.lang.String resourceName,
java.lang.ClassLoader loader) |
Modifier and Type | Method and Description |
---|---|
ImmutableSet<ClassPath.ResourceInfo> |
ClassPath.getResources()
Returns all resources loadable from the current class path, including the class files of all
loadable classes but excluding the "META-INF/MANIFEST.MF" file.
|
ImmutableSet<ClassPath.ResourceInfo> |
ClassPath.LocationInfo.scanResources()
Scans this location and returns all scanned resources.
|
ImmutableSet<ClassPath.ResourceInfo> |
ClassPath.LocationInfo.scanResources(java.util.Set<java.io.File> scannedFiles)
Scans this location and returns all scanned resources.
|
Modifier and Type | Method and Description |
---|---|
private void |
ClassPath.LocationInfo.scan(java.io.File file,
java.util.Set<java.io.File> scannedUris,
ImmutableSet.Builder<ClassPath.ResourceInfo> builder) |
private void |
ClassPath.LocationInfo.scanDirectory(java.io.File directory,
ImmutableSet.Builder<ClassPath.ResourceInfo> builder) |
private void |
ClassPath.LocationInfo.scanDirectory(java.io.File directory,
java.lang.String packagePrefix,
java.util.Set<java.io.File> currentPath,
ImmutableSet.Builder<ClassPath.ResourceInfo> builder)
Recursively scan the given directory, adding resources for each file encountered.
|
private void |
ClassPath.LocationInfo.scanJar(java.io.File file,
java.util.Set<java.io.File> scannedUris,
ImmutableSet.Builder<ClassPath.ResourceInfo> builder) |
private void |
ClassPath.LocationInfo.scanJarFile(java.util.jar.JarFile file,
ImmutableSet.Builder<ClassPath.ResourceInfo> builder) |
Constructor and Description |
---|
ClassPath(ImmutableSet<ClassPath.ResourceInfo> resources) |