Package net.bytebuddy.pool
Class TypePool.Default.LazyTypeDescription.TypeContainment.WithinMethod
- java.lang.Object
-
- net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.TypeContainment.WithinMethod
-
- All Implemented Interfaces:
TypePool.Default.LazyTypeDescription.TypeContainment
- Enclosing interface:
- TypePool.Default.LazyTypeDescription.TypeContainment
public static class TypePool.Default.LazyTypeDescription.TypeContainment.WithinMethod extends java.lang.Object implements TypePool.Default.LazyTypeDescription.TypeContainment
Describes a type that is contained within a method or 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
-
-
Constructor Summary
Constructors Constructor Description WithinMethod(java.lang.String internalName, java.lang.String methodName, java.lang.String methodDescriptor)
Creates a new type containment for a type that is declared within a method.
-
Method Summary
All 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.
-
-
-
Constructor Detail
-
WithinMethod
public WithinMethod(java.lang.String internalName, java.lang.String methodName, java.lang.String methodDescriptor)
Creates a new type containment for a type that is declared within a method.- Parameters:
internalName
- The method's declaring type's internal name.methodName
- The method's internal name.methodDescriptor
- The method's descriptor.
-
-
Method Detail
-
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
-
-