public static class TypePool.Default.LazyTypeDescription.TypeContainment.WithinType extends Object implements TypePool.Default.LazyTypeDescription.TypeContainment
TypePool.Default.LazyTypeDescription.TypeContainment.SelfContained, TypePool.Default.LazyTypeDescription.TypeContainment.WithinMethod, TypePool.Default.LazyTypeDescription.TypeContainment.WithinType
Constructor and Description |
---|
WithinType(String internalName,
boolean localType)
Creates a new type containment for a type that is declared within another type.
|
Modifier and Type | Method and Description |
---|---|
MethodDescription |
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 |
isMemberClass()
Returns
true if the type is a member type. |
boolean |
isSelfContained()
Returns
true if the type is self-contained. |
public WithinType(String internalName, boolean localType)
internalName
- The type's internal name.localType
- true
if the type is a local type unless it is an anonymous type.public MethodDescription getEnclosingMethod(TypePool typePool)
TypePool.Default.LazyTypeDescription.TypeContainment
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)
TypePool.Default.LazyTypeDescription.TypeContainment
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()
TypePool.Default.LazyTypeDescription.TypeContainment
true
if the type is self-contained.isSelfContained
in interface TypePool.Default.LazyTypeDescription.TypeContainment
true
if the type is self-contained.public boolean isMemberClass()
TypePool.Default.LazyTypeDescription.TypeContainment
true
if the type is a member type.isMemberClass
in interface TypePool.Default.LazyTypeDescription.TypeContainment
true
if the type is a member type.public boolean isLocalType()
TypePool.Default.LazyTypeDescription.TypeContainment
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–2018. All rights reserved.