@HashCodeAndEqualsPlugin.Enhance public static class Plugin.Engine.Source.InMemory extends Object implements Plugin.Engine.Source, Plugin.Engine.Source.Origin
| Modifier and Type | Class and Description |
|---|---|
protected static class |
Plugin.Engine.Source.InMemory.MapEntryIterator
An iterator that represents map entries as sources.
|
Plugin.Engine.Source.Compound, Plugin.Engine.Source.Element, Plugin.Engine.Source.Empty, Plugin.Engine.Source.Filtering, Plugin.Engine.Source.ForFolder, Plugin.Engine.Source.ForJarFile, Plugin.Engine.Source.InMemory, Plugin.Engine.Source.OriginPlugin.Engine.Source.Origin.Filtering, Plugin.Engine.Source.Origin.ForJarFileNO_MANIFEST| Constructor and Description |
|---|
InMemory(Map<String,byte[]> storage)
Creates a new in-memory source.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Manifest |
getManifest()
Returns the manifest file of the source location or
null if no manifest exists. |
Iterator<Plugin.Engine.Source.Element> |
iterator() |
static Plugin.Engine.Source |
ofTypes(Class<?>... type)
Represents a collection of types as an in-memory source.
|
static Plugin.Engine.Source |
ofTypes(Collection<? extends Class<?>> types)
Represents a collection of types as an in-memory source.
|
static Plugin.Engine.Source |
ofTypes(Collection<? extends Class<?>> types,
Map<ClassFileVersion,Collection<? extends Class<?>>> versionedTypes)
Represents a collection of types as an in-memory source.
|
static Plugin.Engine.Source |
ofTypes(Map<TypeDescription,byte[]> binaryRepresentations)
Represents a map of type names to their binary representation as an in-memory source.
|
static Plugin.Engine.Source |
ofTypes(Map<TypeDescription,byte[]> binaryRepresentations,
Map<ClassFileVersion,Map<TypeDescription,byte[]>> versionedBinaryRepresentations)
Represents a map of type names to their binary representation as an in-memory source.
|
Plugin.Engine.Source.Origin |
read()
Initiates reading from a source.
|
ClassFileLocator |
toClassFileLocator(ClassFileVersion classFileVersion)
Creates a class file locator for the represented source.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static Plugin.Engine.Source ofTypes(Class<?>... type)
type - The types to represent.public static Plugin.Engine.Source ofTypes(Collection<? extends Class<?>> types)
types - The types to represent.public static Plugin.Engine.Source ofTypes(Collection<? extends Class<?>> types, Map<ClassFileVersion,Collection<? extends Class<?>>> versionedTypes)
types - The types to represent.versionedTypes - A versioned mapping of types to represent.public static Plugin.Engine.Source ofTypes(Map<TypeDescription,byte[]> binaryRepresentations)
binaryRepresentations - A mapping of type names to their binary representation.public static Plugin.Engine.Source ofTypes(Map<TypeDescription,byte[]> binaryRepresentations, Map<ClassFileVersion,Map<TypeDescription,byte[]>> versionedBinaryRepresentations)
binaryRepresentations - A mapping of type names to their binary representation.versionedBinaryRepresentations - A versioned mapping of type names to their binary representation.public Plugin.Engine.Source.Origin read()
read in interface Plugin.Engine.Sourcepublic ClassFileLocator toClassFileLocator(@MaybeNull ClassFileVersion classFileVersion)
toClassFileLocator in interface Plugin.Engine.Source.OriginclassFileVersion - The class file version to consider for multi-release jars or null
if multi-release jars should not be considered.@MaybeNull public Manifest getManifest() throws IOException
null if no manifest exists.getManifest in interface Plugin.Engine.Source.Originnull.IOException - If an I/O error occurs.public Iterator<Plugin.Engine.Source.Element> iterator()
iterator in interface Iterable<Plugin.Engine.Source.Element>public void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2014–2025. All rights reserved.