Package net.bytebuddy.build
Enum Plugin.Engine.Source.Empty
- java.lang.Object
-
- java.lang.Enum<Plugin.Engine.Source.Empty>
-
- net.bytebuddy.build.Plugin.Engine.Source.Empty
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Serializable,java.lang.AutoCloseable,java.lang.Comparable<Plugin.Engine.Source.Empty>,java.lang.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 java.lang.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 interface net.bytebuddy.build.Plugin.Engine.Source
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.Origin
-
Nested classes/interfaces inherited from interface net.bytebuddy.build.Plugin.Engine.Source.Origin
Plugin.Engine.Source.Origin.Filtering, Plugin.Engine.Source.Origin.ForJarFile
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCEThe singleton instance.
-
Field Summary
-
Fields inherited from interface net.bytebuddy.build.Plugin.Engine.Source.Origin
NO_MANIFEST
-
-
Constructor Summary
Constructors Modifier Constructor Description privateEmpty()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ClassFileLocatorgetClassFileLocator()Returns a class file locator for the represented source.java.util.jar.ManifestgetManifest()Returns the manifest file of the source location ornullif no manifest exists.java.util.Iterator<Plugin.Engine.Source.Element>iterator()Plugin.Engine.Source.Originread()Initiates reading from a source.static Plugin.Engine.Source.EmptyvalueOf(java.lang.String name)Returns 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.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final Plugin.Engine.Source.Empty INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static Plugin.Engine.Source.Empty[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Plugin.Engine.Source.Empty c : Plugin.Engine.Source.Empty.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Plugin.Engine.Source.Empty valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
read
public Plugin.Engine.Source.Origin read()
Initiates reading from a source.- Specified by:
readin interfacePlugin.Engine.Source- Returns:
- The origin to read from.
-
getClassFileLocator
public ClassFileLocator getClassFileLocator()
Returns 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:
getClassFileLocatorin interfacePlugin.Engine.Source.Origin- Returns:
- A class file locator for locating class files of this instance..
-
getManifest
public java.util.jar.Manifest 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
public java.util.Iterator<Plugin.Engine.Source.Element> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<Plugin.Engine.Source.Element>
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
-