Package net.bytebuddy.pool
Class TypePool.Default.LazyTypeDescription.TypeContainment.WithinType
- java.lang.Object
-
- net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.TypeContainment.WithinType
-
- All Implemented Interfaces:
TypePool.Default.LazyTypeDescription.TypeContainment
- Enclosing interface:
- TypePool.Default.LazyTypeDescription.TypeContainment
public static class TypePool.Default.LazyTypeDescription.TypeContainment.WithinType extends java.lang.Object implements TypePool.Default.LazyTypeDescription.TypeContainment
Describes a type that is contained within another type.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.TypeContainment
TypePool.Default.LazyTypeDescription.TypeContainment.SelfContained, TypePool.Default.LazyTypeDescription.TypeContainment.WithinMethod, TypePool.Default.LazyTypeDescription.TypeContainment.WithinType
-
-
Constructor Summary
Constructors Constructor Description WithinType(java.lang.String internalName, boolean localType)Creates a new type containment for a type that is declared within another type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodDescriptiongetEnclosingMethod(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.booleanisMemberClass()Returnstrueif the type is a member type.booleanisSelfContained()Returnstrueif the type is self-contained.
-
-
-
Constructor Detail
-
WithinType
public WithinType(java.lang.String internalName, boolean localType)Creates a new type containment for a type that is declared within another type.- Parameters:
internalName- The type's internal name.localType-trueif the type is a local type unless it is an anonymous type.
-
-
Method Detail
-
getEnclosingMethod
public MethodDescription getEnclosingMethod(TypePool typePool)
Description copied from interface:TypePool.Default.LazyTypeDescription.TypeContainmentReturns the enclosing method ornullif no such method exists.- Specified by:
getEnclosingMethodin interfaceTypePool.Default.LazyTypeDescription.TypeContainment- Parameters:
typePool- The type pool to be used for looking up linked types.- Returns:
- A method description describing the linked type or
null.
-
getEnclosingType
public TypeDescription getEnclosingType(TypePool typePool)
Description copied from interface:TypePool.Default.LazyTypeDescription.TypeContainmentReturns the enclosing type ornullif no such type exists.- Specified by:
getEnclosingTypein interfaceTypePool.Default.LazyTypeDescription.TypeContainment- Parameters:
typePool- The type pool to be used for looking up linked types.- Returns:
- A type description describing the linked type or
null.
-
isSelfContained
public boolean isSelfContained()
Description copied from interface:TypePool.Default.LazyTypeDescription.TypeContainmentReturnstrueif the type is self-contained.- Specified by:
isSelfContainedin interfaceTypePool.Default.LazyTypeDescription.TypeContainment- Returns:
trueif the type is self-contained.
-
isMemberClass
public boolean isMemberClass()
Description copied from interface:TypePool.Default.LazyTypeDescription.TypeContainmentReturnstrueif the type is a member type.- Specified by:
isMemberClassin interfaceTypePool.Default.LazyTypeDescription.TypeContainment- Returns:
trueif the type is a member type.
-
isLocalType
public boolean isLocalType()
Description copied from interface:TypePool.Default.LazyTypeDescription.TypeContainmentReturnstrueif the type is a local type unless it is an anonymous type.- Specified by:
isLocalTypein interfaceTypePool.Default.LazyTypeDescription.TypeContainment- Returns:
trueif the type is a local type unless it is an anonymous type
-
-