Enum Class ClassFileLocator.NoOp

java.lang.Object
java.lang.Enum<ClassFileLocator.NoOp>
net.bytebuddy.dynamic.ClassFileLocator.NoOp
All Implemented Interfaces:
Closeable, Serializable, AutoCloseable, Comparable<ClassFileLocator.NoOp>, Constable, ClassFileLocator
Enclosing interface:
ClassFileLocator

public static enum ClassFileLocator.NoOp extends Enum<ClassFileLocator.NoOp> implements ClassFileLocator
A class file locator that cannot locate any class files.
  • Enum Constant Details

  • Constructor Details

    • NoOp

      private NoOp()
  • Method Details

    • values

      public static ClassFileLocator.NoOp[] 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 ClassFileLocator.NoOp 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
    • locate

      public ClassFileLocator.Resolution locate(String name)
      Locates the class file for a given type and returns the binary data of the class file.
      Specified by:
      locate in interface ClassFileLocator
      Parameters:
      name - The name of the type to locate a class file representation for.
      Returns:
      Any binary representation of the type which might be illegal.
    • close

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