Enum TypePool.Empty

java.lang.Object
java.lang.Enum<TypePool.Empty>
net.bytebuddy.pool.TypePool.Empty
All Implemented Interfaces:
Serializable, Comparable<TypePool.Empty>, java.lang.constant.Constable, TypePool
Enclosing interface:
TypePool

public static enum TypePool.Empty extends Enum<TypePool.Empty> implements TypePool
An empty type pool that cannot describe any type.
  • Enum Constant Details

    • INSTANCE

      public static final TypePool.Empty INSTANCE
      The singleton instance.
  • Constructor Details

    • Empty

      private Empty()
  • Method Details

    • values

      public static TypePool.Empty[] 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

      public static TypePool.Empty valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • describe

      public TypePool.Resolution describe(String name)
      Locates and describes the given type by its name.
      Specified by:
      describe in interface TypePool
      Parameters:
      name - The name of the type to describe. The name is to be written as when calling Class.getName().
      Returns:
      A resolution of the type to describe. If the type to be described was found, the returned TypePool.Resolution represents this type. Otherwise, an illegal resolution is returned.
    • clear

      public void clear()
      Clears this type pool's cache.
      Specified by:
      clear in interface TypePool