Package net.bytebuddy.pool
Interface TypePool.Default.LazyTypeDescription.TypeContainment
-
- All Known Implementing Classes:
TypePool.Default.LazyTypeDescription.TypeContainment.SelfContained,TypePool.Default.LazyTypeDescription.TypeContainment.WithinMethod,TypePool.Default.LazyTypeDescription.TypeContainment.WithinType
- Enclosing class:
- TypePool.Default.LazyTypeDescription
protected static interface TypePool.Default.LazyTypeDescription.TypeContainmentA declaration context encapsulates information about whether a type was declared within another type or within a method of another type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classTypePool.Default.LazyTypeDescription.TypeContainment.SelfContainedDescribes a type that is not contained within another type, a method or a constructor.static classTypePool.Default.LazyTypeDescription.TypeContainment.WithinMethodDescribes a type that is contained within a method or constructor.static classTypePool.Default.LazyTypeDescription.TypeContainment.WithinTypeDescribes a type that is contained within another type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MethodDescription.InDefinedShapegetEnclosingMethod(TypePool typePool)Returns the enclosing method ornullif no such method exists.TypeDescriptiongetEnclosingType(TypePool typePool)Returns the enclosing type ornullif no such type exists.booleanisLocalType()Returnstrueif the type is a local type unless it is an anonymous type.booleanisSelfContained()Returnstrueif the type is self-contained.
-
-
-
Method Detail
-
getEnclosingMethod
MethodDescription.InDefinedShape getEnclosingMethod(TypePool typePool)
Returns the enclosing method ornullif no such method exists.- Parameters:
typePool- The type pool to be used for looking up linked types.- Returns:
- A method description describing the linked type or
null.
-
getEnclosingType
TypeDescription getEnclosingType(TypePool typePool)
Returns the enclosing type ornullif no such type exists.- Parameters:
typePool- The type pool to be used for looking up linked types.- Returns:
- A type description describing the linked type or
null.
-
isSelfContained
boolean isSelfContained()
Returnstrueif the type is self-contained.- Returns:
trueif the type is self-contained.
-
isLocalType
boolean isLocalType()
Returnstrueif the type is a local type unless it is an anonymous type.- Returns:
trueif the type is a local type unless it is an anonymous type
-
-