protected static interface TypePool.LazyTypeDescription.DeclarationContext
Modifier and Type | Interface and Description |
---|---|
static class |
TypePool.LazyTypeDescription.DeclarationContext.DeclaredInMethod
A declaration context representing a type that is declared within a method of another type.
|
static class |
TypePool.LazyTypeDescription.DeclarationContext.DeclaredInType
A declaration context representing a type that is declared within another type but not within
a method.
|
static class |
TypePool.LazyTypeDescription.DeclarationContext.SelfDeclared
Represents a self-declared type that is not defined 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 |
isDeclaredInMethod()
Returns
true if this instance represents a type that was declared within a method. |
boolean |
isDeclaredInType()
Returns
true if this instance represents a type that was declared within another type but not
within a method. |
boolean |
isSelfDeclared()
Returns
true if this instance represents a self declared type. |
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 isSelfDeclared()
true
if this instance represents a self declared type.true
if this instance represents a self declared type.boolean isDeclaredInType()
true
if this instance represents a type that was declared within another type but not
within a method.true
if this instance represents a type that was declared within another type but not
within a method.boolean isDeclaredInMethod()
true
if this instance represents a type that was declared within a method.true
if this instance represents a type that was declared within a method.Copyright © 2014–2015. All rights reserved.