Package net.bytebuddy.pool
Enum 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:
java.io.Serializable
,java.lang.Comparable<TypePool.Default.LazyTypeDescription.TypeContainment.SelfContained>
,TypePool.Default.LazyTypeDescription.TypeContainment
- Enclosing interface:
- TypePool.Default.LazyTypeDescription.TypeContainment
public static enum TypePool.Default.LazyTypeDescription.TypeContainment.SelfContained extends java.lang.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 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 Enum Constant Description INSTANCE
The singleton instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodDescription
getEnclosingMethod(TypePool typePool)
Returns the enclosing method ornull
if no such method exists.TypeDescription
getEnclosingType(TypePool typePool)
Returns the enclosing type ornull
if no such type exists.boolean
isLocalType()
Returnstrue
if the type is a local type unless it is an anonymous type.boolean
isMemberClass()
Returnstrue
if the type is a member type.boolean
isSelfContained()
Returnstrue
if the type is self-contained.static TypePool.Default.LazyTypeDescription.TypeContainment.SelfContained
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TypePool.Default.LazyTypeDescription.TypeContainment.SelfContained[]
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.Default.LazyTypeDescription.TypeContainment.SelfContained INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static TypePool.Default.LazyTypeDescription.TypeContainment.SelfContained[] 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.Default.LazyTypeDescription.TypeContainment.SelfContained c : TypePool.Default.LazyTypeDescription.TypeContainment.SelfContained.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.Default.LazyTypeDescription.TypeContainment.SelfContained 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
-
getEnclosingMethod
public MethodDescription getEnclosingMethod(TypePool typePool)
Description copied from interface:TypePool.Default.LazyTypeDescription.TypeContainment
Returns the enclosing method ornull
if no such method exists.- Specified by:
getEnclosingMethod
in 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
public TypeDescription getEnclosingType(TypePool typePool)
Description copied from interface:TypePool.Default.LazyTypeDescription.TypeContainment
Returns the enclosing type ornull
if no such type exists.- Specified by:
getEnclosingType
in 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()
Description copied from interface:TypePool.Default.LazyTypeDescription.TypeContainment
Returnstrue
if the type is self-contained.- Specified by:
isSelfContained
in interfaceTypePool.Default.LazyTypeDescription.TypeContainment
- Returns:
true
if the type is self-contained.
-
isMemberClass
public boolean isMemberClass()
Description copied from interface:TypePool.Default.LazyTypeDescription.TypeContainment
Returnstrue
if the type is a member type.- Specified by:
isMemberClass
in interfaceTypePool.Default.LazyTypeDescription.TypeContainment
- Returns:
true
if the type is a member type.
-
isLocalType
public boolean isLocalType()
Description copied from interface:TypePool.Default.LazyTypeDescription.TypeContainment
Returnstrue
if the type is a local type unless it is an anonymous type.- Specified by:
isLocalType
in interfaceTypePool.Default.LazyTypeDescription.TypeContainment
- Returns:
true
if the type is a local type unless it is an anonymous type
-
-