@HashCodeAndEqualsPlugin.Enhance public static class TypePool.Default.LazyTypeDescription.TypeContainment.WithinMethod extends Object implements TypePool.Default.LazyTypeDescription.TypeContainment
TypePool.Default.LazyTypeDescription.TypeContainment.SelfContained, TypePool.Default.LazyTypeDescription.TypeContainment.WithinMethod, TypePool.Default.LazyTypeDescription.TypeContainment.WithinType
Modifier | Constructor and Description |
---|---|
protected |
WithinMethod(String internalName,
String methodName,
String methodDescriptor)
Creates a new type containment for a type that is declared within a method.
|
Modifier and Type | Method and Description |
---|---|
MethodDescription.InDefinedShape |
getEnclosingMethod(TypePool typePool)
Returns the enclosing method or
null if no such method exists. |
TypeDescription |
getEnclosingType(TypePool typePool)
Returns the enclosing type or
null if no such type exists. |
boolean |
isLocalType()
Returns
true if the type is a local type unless it is an anonymous type. |
boolean |
isSelfContained()
Returns
true if the type is self-contained. |
protected WithinMethod(String internalName, String methodName, String methodDescriptor)
internalName
- The method's declaring type's internal name.methodName
- The method's internal name.methodDescriptor
- The method's descriptor.public MethodDescription.InDefinedShape getEnclosingMethod(TypePool typePool)
null
if no such method exists.getEnclosingMethod
in interface TypePool.Default.LazyTypeDescription.TypeContainment
typePool
- The type pool to be used for looking up linked types.null
.public TypeDescription getEnclosingType(TypePool typePool)
null
if no such type exists.getEnclosingType
in interface TypePool.Default.LazyTypeDescription.TypeContainment
typePool
- The type pool to be used for looking up linked types.null
.public boolean isSelfContained()
true
if the type is self-contained.isSelfContained
in interface TypePool.Default.LazyTypeDescription.TypeContainment
true
if the type is self-contained.public boolean isLocalType()
true
if the type is a local type unless it is an anonymous type.isLocalType
in interface TypePool.Default.LazyTypeDescription.TypeContainment
true
if the type is a local type unless it is an anonymous typeCopyright © 2014–2025. All rights reserved.