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| Constructor and Description |
|---|
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 |
|---|---|
boolean |
equals(Object object) |
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. |
int |
hashCode() |
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. |
String |
toString() |
public 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 getEnclosingMethod(TypePool typePool)
TypePool.Default.LazyTypeDescription.TypeContainmentnull if no such method exists.getEnclosingMethod in interface TypePool.Default.LazyTypeDescription.TypeContainmenttypePool - The type pool to be used for looking up linked types.null.public TypeDescription getEnclosingType(TypePool typePool)
TypePool.Default.LazyTypeDescription.TypeContainmentnull if no such type exists.getEnclosingType in interface TypePool.Default.LazyTypeDescription.TypeContainmenttypePool - The type pool to be used for looking up linked types.null.public boolean isSelfContained()
TypePool.Default.LazyTypeDescription.TypeContainmenttrue if the type is self-contained.isSelfContained in interface TypePool.Default.LazyTypeDescription.TypeContainmenttrue if the type is self-contained.public boolean isMemberClass()
TypePool.Default.LazyTypeDescription.TypeContainmenttrue if the type is a member type.isMemberClass in interface TypePool.Default.LazyTypeDescription.TypeContainmenttrue if the type is a member type.public boolean isLocalType()
TypePool.Default.LazyTypeDescription.TypeContainmenttrue if the type is a local type unless it is an anonymous type.isLocalType in interface TypePool.Default.LazyTypeDescription.TypeContainmenttrue if the type is a local type unless it is an anonymous typeCopyright © 2014–2016. All rights reserved.