@HashCodeAndEqualsPlugin.Enhance public static class ClassFileLocator.Filtering extends Object implements ClassFileLocator
ClassFileLocator.Compound, ClassFileLocator.Filtering, ClassFileLocator.ForClassLoader, ClassFileLocator.ForFolder, ClassFileLocator.ForInstrumentation, ClassFileLocator.ForJarFile, ClassFileLocator.ForModule, ClassFileLocator.ForModuleFile, ClassFileLocator.ForUrl, ClassFileLocator.MultiReleaseAware, ClassFileLocator.NoOp, ClassFileLocator.PackageDiscriminating, ClassFileLocator.Resolution, ClassFileLocator.SimpleCLASS_FILE_EXTENSION, META_INF_VERSIONS| Constructor and Description |
|---|
Filtering(ElementMatcher<? super String> matcher,
ClassFileLocator delegate)
Creates a new filtering class file locator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ClassFileLocator.Resolution |
locate(String name)
Locates the class file for a given type and returns the binary data of the class file.
|
public Filtering(ElementMatcher<? super String> matcher, ClassFileLocator delegate)
matcher - The matcher to determine if the delegate matcher is considered.delegate - The delegate class file locator.public ClassFileLocator.Resolution locate(String name) throws IOException
locate in interface ClassFileLocatorname - The name of the type to locate a class file representation for.IOException - If reading a class file causes an error.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2014–2025. All rights reserved.