protected static interface TypePool.Default.LazyTypeDescription.TypeContainment
Modifier and Type | Interface and Description |
---|---|
static class |
TypePool.Default.LazyTypeDescription.TypeContainment.SelfContained
Describes a type that is not contained within another type, a method or a constructor.
|
static class |
TypePool.Default.LazyTypeDescription.TypeContainment.WithinMethod
Describes a type that is contained within a method or constructor.
|
static class |
TypePool.Default.LazyTypeDescription.TypeContainment.WithinType
Describes a type that is contained 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. |
MethodDescription getEnclosingMethod(TypePool typePool)
null
if no such method exists.typePool
- The type pool to be used for looking up linked types.null
.TypeDescription getEnclosingType(TypePool typePool)
null
if no such type exists.typePool
- The type pool to be used for looking up linked types.null
.boolean isSelfContained()
true
if the type is self-contained.true
if the type is self-contained.boolean isMemberClass()
true
if the type is a member type.true
if the type is a member type.boolean isLocalType()
true
if the type is a local type unless it is an anonymous type.true
if the type is a local type unless it is an anonymous typeCopyright © 2014–2018. All rights reserved.