@HashCodeAndEqualsPlugin.Enhance protected static class Plugin.Engine.Default.SourceEntryPrependingClassFileLocator extends Object implements ClassFileLocator
Plugin.Engine.Source.Element's type with the explicit element.
This avoids that caching yields the wrong class file in case of multi-release jars.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| Modifier | Constructor and Description |
|---|---|
protected |
SourceEntryPrependingClassFileLocator(String name,
Plugin.Engine.Source.Element element,
ClassFileLocator delegate)
Creates a class file locator that prepends a
Plugin.Engine.Source.Element. |
| 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.
|
protected SourceEntryPrependingClassFileLocator(String name, Plugin.Engine.Source.Element element, ClassFileLocator delegate)
Plugin.Engine.Source.Element.name - The name of the represented type.element - The corresponding source element.delegate - The actual class file locator to query for all other types.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–2024. All rights reserved.