Enum Class Plugin.Engine.Source.Empty

java.lang.Object
java.lang.Enum<Plugin.Engine.Source.Empty>
net.bytebuddy.build.Plugin.Engine.Source.Empty
All Implemented Interfaces:
Closeable, Serializable, AutoCloseable, Comparable<Plugin.Engine.Source.Empty>, 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.
  • Enum Constant Details

  • Constructor Details

    • Empty

      private Empty()
  • Method Details

    • values

      public static Plugin.Engine.Source.Empty[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Plugin.Engine.Source.Empty valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • read

      Initiates reading from a source.
      Specified by:
      read in interface Plugin.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:
      getClassFileLocator in interface Plugin.Engine.Source.Origin
      Returns:
      A class file locator for locating class files of this instance..
    • getManifest

      public Manifest getManifest()
      Returns the manifest file of the source location or null if no manifest exists.
      Specified by:
      getManifest in interface Plugin.Engine.Source.Origin
      Returns:
      This source's manifest or null.
    • iterator

      Specified by:
      iterator in interface Iterable<Plugin.Engine.Source.Element>
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable