Package net.bytebuddy.pool
Enum Class TypePool.Default.LazyTypeDescription.TypeContainment.SelfContained
java.lang.Object
java.lang.Enum<TypePool.Default.LazyTypeDescription.TypeContainment.SelfContained>
net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.TypeContainment.SelfContained
- All Implemented Interfaces:
Serializable,Comparable<TypePool.Default.LazyTypeDescription.TypeContainment.SelfContained>,Constable,TypePool.Default.LazyTypeDescription.TypeContainment
- Enclosing interface:
TypePool.Default.LazyTypeDescription.TypeContainment
public static enum TypePool.Default.LazyTypeDescription.TypeContainment.SelfContained
extends Enum<TypePool.Default.LazyTypeDescription.TypeContainment.SelfContained>
implements TypePool.Default.LazyTypeDescription.TypeContainment
Describes a type that is not contained within another type, a method or a constructor.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.TypeContainment
TypePool.Default.LazyTypeDescription.TypeContainment.SelfContained, TypePool.Default.LazyTypeDescription.TypeContainment.WithinMethod, TypePool.Default.LazyTypeDescription.TypeContainment.WithinType -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEnclosingMethod(TypePool typePool) Returns the enclosing method ornullif no such method exists.getEnclosingType(TypePool typePool) Returns the enclosing type ornullif no such type exists.booleanReturnstrueif the type is a local type unless it is an anonymous type.booleanReturnstrueif the type is self-contained.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
SelfContained
private SelfContained()
-
-
Method Details
-
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 TypePool.Default.LazyTypeDescription.TypeContainment.SelfContained 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 nameNullPointerException- if the argument is null
-
getEnclosingMethod
Returns the enclosing method ornullif no such method exists.- Specified by:
getEnclosingMethodin interfaceTypePool.Default.LazyTypeDescription.TypeContainment- Parameters:
typePool- The type pool to be used for looking up linked types.- Returns:
- A method description describing the linked type or
null.
-
getEnclosingType
Returns the enclosing type ornullif no such type exists.- Specified by:
getEnclosingTypein interfaceTypePool.Default.LazyTypeDescription.TypeContainment- Parameters:
typePool- The type pool to be used for looking up linked types.- Returns:
- A type description describing the linked type or
null.
-
isSelfContained
public boolean isSelfContained()Returnstrueif the type is self-contained.- Specified by:
isSelfContainedin interfaceTypePool.Default.LazyTypeDescription.TypeContainment- Returns:
trueif the type is self-contained.
-
isLocalType
public boolean isLocalType()Returnstrueif the type is a local type unless it is an anonymous type.- Specified by:
isLocalTypein interfaceTypePool.Default.LazyTypeDescription.TypeContainment- Returns:
trueif the type is a local type unless it is an anonymous type
-