Package net.bytebuddy.pool
Class TypePool.Default.WithLazyResolution.ExtendedLazyTypeDescription
- java.lang.Object
-
- net.bytebuddy.description.ModifierReviewable.AbstractBase
-
- net.bytebuddy.description.TypeVariableSource.AbstractBase
-
- net.bytebuddy.description.type.TypeDescription.AbstractBase
-
- net.bytebuddy.description.type.TypeDescription.AbstractBase.OfSimpleType
-
- net.bytebuddy.description.type.TypeDescription.AbstractBase.OfSimpleType.WithDelegation
-
- net.bytebuddy.pool.TypePool.Default.WithLazyResolution.ExtendedLazyTypeDescription
-
- All Implemented Interfaces:
java.lang.Iterable<TypeDefinition>,AnnotationSource,ByteCodeElement,DeclaredByType,ModifierReviewable,ModifierReviewable.ForFieldDescription,ModifierReviewable.ForMethodDescription,ModifierReviewable.ForModuleDescription,ModifierReviewable.ForModuleRequirement,ModifierReviewable.ForParameterDescription,ModifierReviewable.ForTypeDefinition,ModifierReviewable.OfAbstraction,ModifierReviewable.OfByteCodeElement,ModifierReviewable.OfEnumeration,ModifierReviewable.OfMandatable,NamedElement,NamedElement.WithDescriptor,NamedElement.WithRuntimeName,TypeDefinition,TypeDescription,TypeVariableSource
- Enclosing class:
- TypePool.Default.WithLazyResolution
protected class TypePool.Default.WithLazyResolution.ExtendedLazyTypeDescription extends TypeDescription.AbstractBase.OfSimpleType.WithDelegation
Represents a type description where the class file is only fully parsed if a complex property is resolved.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classTypePool.Default.WithLazyResolution.ExtendedLazyTypeDescription.DelegateA delegate representing a possibly unparsed class file.private classTypePool.Default.WithLazyResolution.ExtendedLazyTypeDescription.LazyInterfaceRepresents a lazy interface of an extended lazy type description.private classTypePool.Default.WithLazyResolution.ExtendedLazyTypeDescription.LazyInterfaceListCreates a list of lazy interfaces of an extended lazy type description.private classTypePool.Default.WithLazyResolution.ExtendedLazyTypeDescription.LazySuperClassRepresents a lazy super class of a type description with extended laziness.private classTypePool.Default.WithLazyResolution.ExtendedLazyTypeDescription.ResolvedDelegateA resolved version of a delegate where the class file was fully parsed.private classTypePool.Default.WithLazyResolution.ExtendedLazyTypeDescription.UnresolvedDelegateA unresolved delegate that has not parsed the class file.-
Nested classes/interfaces inherited from class net.bytebuddy.description.type.TypeDescription.AbstractBase.OfSimpleType
TypeDescription.AbstractBase.OfSimpleType.WithDelegation
-
Nested classes/interfaces inherited from class net.bytebuddy.description.type.TypeDescription.AbstractBase
TypeDescription.AbstractBase.OfSimpleType
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.annotation.AnnotationSource
AnnotationSource.Empty, AnnotationSource.Explicit
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.ByteCodeElement
ByteCodeElement.Member, ByteCodeElement.Token<T extends ByteCodeElement.Token<T>>, ByteCodeElement.TypeDependant<T extends ByteCodeElement.TypeDependant<?,S>,S extends ByteCodeElement.Token<S>>
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.DeclaredByType
DeclaredByType.WithMandatoryDeclaration
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.ModifierReviewable
ModifierReviewable.AbstractBase, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForModuleDescription, ModifierReviewable.ForModuleRequirement, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, ModifierReviewable.OfMandatable
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.NamedElement
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.type.TypeDefinition
TypeDefinition.Sort, TypeDefinition.SuperClassIterator
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.type.TypeDescription
TypeDescription.AbstractBase, TypeDescription.ArrayProjection, TypeDescription.ForLoadedType, TypeDescription.ForPackageDescription, TypeDescription.Generic, TypeDescription.Latent, TypeDescription.LazyProxy, TypeDescription.SuperTypeLoading
-
Nested classes/interfaces inherited from interface net.bytebuddy.description.TypeVariableSource
TypeVariableSource.AbstractBase, TypeVariableSource.Visitor<T>
-
-
Field Summary
Fields Modifier and Type Field Description private TypePool.Default.WithLazyResolution.ExtendedLazyTypeDescription.DelegatedelegateThe current delegate for resolving possibly short-wired class files.-
Fields inherited from class net.bytebuddy.description.type.TypeDescription.AbstractBase
RAW_TYPES
-
Fields inherited from interface net.bytebuddy.description.ModifierReviewable
EMPTY_MASK
-
Fields inherited from interface net.bytebuddy.description.NamedElement
EMPTY_NAME, NO_NAME
-
Fields inherited from interface net.bytebuddy.description.NamedElement.WithDescriptor
NON_GENERIC_SIGNATURE
-
Fields inherited from interface net.bytebuddy.description.type.TypeDefinition
RAW_TYPES_PROPERTY
-
Fields inherited from interface net.bytebuddy.description.type.TypeDescription
ARRAY_INTERFACES, CLASS, OBJECT, STRING, THROWABLE, UNDEFINED, VOID
-
Fields inherited from interface net.bytebuddy.description.TypeVariableSource
UNDEFINED
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedExtendedLazyTypeDescription(AsmClassReader classReader)Creates a new extended lazy type resolution.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TypeDescriptiondelegate()Returns the delegate type description to this type instance.TypeList.GenericgetInterfaces()Returns the interfaces that this type implements.java.lang.StringgetName()Returns the binary name of this byte code element.TypeDescription.GenericgetSuperClass()Returns the super class of this type.booleanisAbstract()Specifies if the modifier described by this object isabstract.booleanisAnnotation()Specifies if the modifier described by this object represents the annotation flag.booleanisEnum()Specifies if the modifier described by this object represents the enum flag.booleanisInterface()Specifies if the modifier described by this object represents the interface flag.-
Methods inherited from class net.bytebuddy.description.type.TypeDescription.AbstractBase.OfSimpleType.WithDelegation
getActualModifiers, getClassFileVersion, getDeclaredAnnotations, getDeclaredFields, getDeclaredMethods, getDeclaredTypes, getDeclaringType, getEnclosingMethod, getEnclosingType, getGenericSignature, getModifiers, getNestHost, getNestMembers, getPackage, getPermittedSubtypes, getRecordComponents, getTypeVariables, isAnonymousType, isLocalType, isRecord, isSealed, toModuleDescription
-
Methods inherited from class net.bytebuddy.description.type.TypeDescription.AbstractBase.OfSimpleType
getCanonicalName, getComponentType, getDescriptor, getSimpleName, getStackSize, isArray, isPrimitive
-
Methods inherited from class net.bytebuddy.description.type.TypeDescription.AbstractBase
accept, asBoxed, asErasure, asGenericType, asUnboxed, equals, getActualName, getDefaultValue, getEnclosingSource, getInheritedAnnotations, getInnerClassCount, getInternalName, getLongSimpleName, getSort, getTypeName, hashCode, isAccessibleTo, isAnnotationReturnType, isAnnotationValue, isAnnotationValue, isAssignableFrom, isAssignableFrom, isAssignableTo, isAssignableTo, isCompileTimeConstant, isGenerified, isInferrable, isInHierarchyWith, isInHierarchyWith, isInnerClass, isInstance, isMemberType, isModuleType, isNestedClass, isNestHost, isNestMateOf, isNestMateOf, isPackageType, isPrimitiveWrapper, isSamePackage, isVisibleTo, iterator, represents, toSafeString, toString
-
Methods inherited from class net.bytebuddy.description.TypeVariableSource.AbstractBase
findExpectedVariable, findVariable
-
Methods inherited from class net.bytebuddy.description.ModifierReviewable.AbstractBase
getEnumerationState, getFieldManifestation, getFieldPersistence, getMandate, getMethodManifestation, getMethodStrictness, getOpenness, getOwnership, getParameterManifestation, getProvisioningState, getRequiredPhase, getSynchronizationState, getSyntheticState, getTransitivity, getTypeManifestation, getVisibility, isBridge, isDeprecated, isFinal, isMandated, isNative, isOpen, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStaticPhase, isStrict, isSynchronized, isSynthetic, isTransient, isTransitive, isVarArgs, isVolatile
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.bytebuddy.description.ModifierReviewable
getSyntheticState, isFinal, isSynthetic
-
Methods inherited from interface net.bytebuddy.description.ModifierReviewable.ForTypeDefinition
getTypeManifestation
-
Methods inherited from interface net.bytebuddy.description.ModifierReviewable.OfByteCodeElement
getOwnership, getVisibility, isDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic
-
Methods inherited from interface net.bytebuddy.description.ModifierReviewable.OfEnumeration
getEnumerationState
-
Methods inherited from interface net.bytebuddy.description.TypeVariableSource
findExpectedVariable, findVariable
-
-
-
-
Field Detail
-
delegate
private TypePool.Default.WithLazyResolution.ExtendedLazyTypeDescription.Delegate delegate
The current delegate for resolving possibly short-wired class files.
-
-
Constructor Detail
-
ExtendedLazyTypeDescription
protected ExtendedLazyTypeDescription(AsmClassReader classReader)
Creates a new extended lazy type resolution.- Parameters:
classReader- The ASM class reader to represent.
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the binary name of this byte code element. If no well-defined internal name is known for this element, the actual name is returned.- Returns:
- The binary ame of this byte code element as visible from within a running Java application.
-
isAbstract
public boolean isAbstract()
Description copied from class:ModifierReviewable.AbstractBaseSpecifies if the modifier described by this object isabstract.- Specified by:
isAbstractin interfaceModifierReviewable.OfAbstraction- Overrides:
isAbstractin classTypeDescription.AbstractBase.OfSimpleType.WithDelegation- Returns:
trueif the modifier described by this object isabstract.
-
isInterface
public boolean isInterface()
Description copied from class:ModifierReviewable.AbstractBaseSpecifies if the modifier described by this object represents the interface flag.- Specified by:
isInterfacein interfaceModifierReviewable.ForTypeDefinition- Overrides:
isInterfacein classTypeDescription.AbstractBase.OfSimpleType.WithDelegation- Returns:
trueif the modifier described by this object represents the interface flag.
-
isEnum
public boolean isEnum()
Description copied from class:ModifierReviewable.AbstractBaseSpecifies if the modifier described by this object represents the enum flag.- Specified by:
isEnumin interfaceModifierReviewable.OfEnumeration- Overrides:
isEnumin classTypeDescription.AbstractBase.OfSimpleType.WithDelegation- Returns:
trueif the modifier described by this object represents the enum flag.
-
isAnnotation
public boolean isAnnotation()
Description copied from class:ModifierReviewable.AbstractBaseSpecifies if the modifier described by this object represents the annotation flag.- Specified by:
isAnnotationin interfaceModifierReviewable.ForTypeDefinition- Overrides:
isAnnotationin classTypeDescription.AbstractBase.OfSimpleType.WithDelegation- Returns:
trueif the modifier described by this object represents the annotation flag.
-
getSuperClass
@MaybeNull public TypeDescription.Generic getSuperClass()
Description copied from class:TypeDescription.AbstractBase.OfSimpleType.WithDelegationReturns the super class of this type. A super type is only defined for non-generic types (TypeDefinition.Sort.NON_GENERIC), parameterized types (TypeDefinition.Sort.PARAMETERIZED) or generic array types (TypeDefinition.Sort.GENERIC_ARRAY) types. Interface types and theObjectclass do not define a super class wherenullis returned. Array types defineObjectas their direct super class.- Specified by:
getSuperClassin interfaceTypeDefinition- Overrides:
getSuperClassin classTypeDescription.AbstractBase.OfSimpleType.WithDelegation- Returns:
- The super class of this type or
nullif no super class exists for this type.
-
getInterfaces
public TypeList.Generic getInterfaces()
Description copied from class:TypeDescription.AbstractBase.OfSimpleType.WithDelegationReturns the interfaces that this type implements. A super type is only defined for non-generic types (TypeDefinition.Sort.NON_GENERIC), parameterized types (TypeDefinition.Sort.PARAMETERIZED) or generic array types (TypeDefinition.Sort.GENERIC_ARRAY) types.- Specified by:
getInterfacesin interfaceTypeDefinition- Overrides:
getInterfacesin classTypeDescription.AbstractBase.OfSimpleType.WithDelegation- Returns:
- The interfaces that this type implements.
-
delegate
protected TypeDescription delegate()
Description copied from class:TypeDescription.AbstractBase.OfSimpleType.WithDelegationReturns the delegate type description to this type instance.- Specified by:
delegatein classTypeDescription.AbstractBase.OfSimpleType.WithDelegation- Returns:
- The delegate type description.
-
-