Package net.bytebuddy.pool
Enum TypePool.Empty
- java.lang.Object
-
- java.lang.Enum<TypePool.Empty>
-
- net.bytebuddy.pool.TypePool.Empty
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TypePool.Empty>
,TypePool
- Enclosing interface:
- TypePool
public static enum TypePool.Empty extends java.lang.Enum<TypePool.Empty> implements TypePool
An empty type pool that cannot describe any type.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.pool.TypePool
TypePool.AbstractBase, TypePool.CacheProvider, TypePool.ClassLoading, TypePool.Default, TypePool.Empty, TypePool.Explicit, TypePool.LazyFacade, TypePool.Resolution
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
Empty()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Clears this type pool's cache.TypePool.Resolution
describe(java.lang.String name)
Locates and describes the given type by its name.static TypePool.Empty
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TypePool.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 TypePool.Empty INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static TypePool.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 (TypePool.Empty c : TypePool.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 TypePool.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
-
describe
public TypePool.Resolution describe(java.lang.String name)
Locates and describes the given type by its name.- Specified by:
describe
in interfaceTypePool
- Parameters:
name
- The name of the type to describe. The name is to be written as when callingObject.toString()
on a loadedClass
.- 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.
-
-