Enum Plugin.Engine.Source.Empty
- All Implemented Interfaces:
Closeable, Serializable, AutoCloseable, Comparable<Plugin.Engine.Source.Empty>, java.lang.constant.Constable, Iterable<Plugin.Engine.Source.Element>, Plugin.Engine.Source, Plugin.Engine.Source.Origin
- Enclosing interface:
Plugin.Engine.Source
public static enum Plugin.Engine.Source.Empty
extends Enum<Plugin.Engine.Source.Empty>
implements Plugin.Engine.Source, Plugin.Engine.Source.Origin
An empty source that does not contain any elements or a manifest.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface Plugin.Engine.Source
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.OriginNested classes/interfaces inherited from interface Plugin.Engine.Source.Origin
Plugin.Engine.Source.Origin.Filtering, Plugin.Engine.Source.Origin.ForJarFile -
Enum Constant Summary
Enum Constants -
Field Summary
Fields inherited from interface Plugin.Engine.Source.Origin
NO_MANIFEST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Returns the manifest file of the source location ornullif no manifest exists.iterator()read()Initiates reading from a source.toClassFileLocator(ClassFileVersion classFileVersion) Creates a class file locator for the represented source.static Plugin.Engine.Source.EmptyReturns the enum constant of this type with the specified name.static Plugin.Engine.Source.Empty[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface Iterable
forEach, spliterator
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
Empty
private Empty()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
read
Initiates reading from a source.- Specified by:
readin interfacePlugin.Engine.Source- Returns:
- The origin to read from.
-
toClassFileLocator
Creates a class file locator for the represented source. If the class file locator needs to be closed, it is the responsibility of this origin to close the locator or its underlying resources.- Specified by:
toClassFileLocatorin interfacePlugin.Engine.Source.Origin- Parameters:
classFileVersion- The class file version to consider for multi-release jars ornullif multi-release jars should not be considered.- Returns:
- A class file locator for locating class files of this instance.
-
getManifest
Returns the manifest file of the source location ornullif no manifest exists.- Specified by:
getManifestin interfacePlugin.Engine.Source.Origin- Returns:
- This source's manifest or
null.
-
iterator
- Specified by:
iteratorin interfaceIterable<Plugin.Engine.Source.Element>
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-