public abstract static class TypeDescription.AbstractBase.OfSimpleType.WithDelegation extends TypeDescription.AbstractBase.OfSimpleType
TypeDescription.AbstractBase.OfSimpleType.WithDelegationTypeDescription.AbstractBase.OfSimpleTypeTypeDescription.AbstractBase, TypeDescription.ArrayProjection, TypeDescription.ForLoadedType, TypeDescription.ForPackageDescription, TypeDescription.Generic, TypeDescription.Latent, TypeDescription.LazyProxy, TypeDescription.SuperTypeLoadingTypeDefinition.Sort, TypeDefinition.SuperClassIteratorModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumerationByteCodeElement.Member, ByteCodeElement.Token<T extends ByteCodeElement.Token<T>>, ByteCodeElement.TypeDependant<T extends ByteCodeElement.TypeDependant<?,S>,S extends ByteCodeElement.Token<S>>NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeNameDeclaredByType.WithMandatoryDeclarationAnnotationSource.Empty, AnnotationSource.ExplicitTypeVariableSource.Visitor<T>RAW_TYPESARRAY_INTERFACES, CLASS, OBJECT, STRING, THROWABLE, UNDEFINED, VOIDRAW_TYPES_PROPERTYEMPTY_MASKNON_GENERIC_SIGNATUREEMPTY_NAME, NO_NAME| Constructor and Description |
|---|
WithDelegation() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract TypeDescription |
delegate()
Returns the delegate type description to this type instance.
|
int |
getActualModifiers(boolean superFlag)
Returns the type's actual modifiers as present in the class file.
|
ClassFileVersion |
getClassFileVersion()
Attempts to resolve the class file version of this type.
|
AnnotationList |
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
FieldList<FieldDescription.InDefinedShape> |
getDeclaredFields()
Returns the fields that this type declares.
|
MethodList<MethodDescription.InDefinedShape> |
getDeclaredMethods()
Returns the methods that this type declares.
|
TypeList |
getDeclaredTypes()
Returns a list of types that are declared by this type.
|
TypeDescription |
getDeclaringType()
Returns the declaring type of this instance.
|
MethodDescription.InDefinedShape |
getEnclosingMethod()
Returns a description of the method that encloses this type.
|
TypeDescription |
getEnclosingType()
Returns a description of this type's enclosing type if any.
|
String |
getGenericSignature()
Returns the generic signature of this byte code element.
|
TypeList.Generic |
getInterfaces()
Returns the interfaces that this type implements.
|
int |
getModifiers()
Returns the modifier that is described by this object.
|
TypeDescription |
getNestHost()
Returns the nest host of this type.
|
TypeList |
getNestMembers()
Returns a list of members that are part of a nesting group.
|
PackageDescription |
getPackage()
Returns the package of the type described by this instance or
null if the described type
is a primitive type or an array. |
TypeList |
getPermittedSubtypes()
Returns the list of permitted direct subclasses if this class is a sealed class.
|
RecordComponentList<RecordComponentDescription.InDefinedShape> |
getRecordComponents()
Returns the list of record components that are declared by this type.
|
TypeDescription.Generic |
getSuperClass()
Returns the super class of this type.
|
TypeList.Generic |
getTypeVariables()
Returns the type variables that are declared by this element.
|
boolean |
isAbstract()
Specifies if the modifier described by this object is
abstract. |
boolean |
isAnnotation()
Specifies if the modifier described by this object represents the annotation flag.
|
boolean |
isAnonymousType()
Checks if this type description represents an anonymous type.
|
boolean |
isEnum()
Specifies if the modifier described by this object represents the enum flag.
|
boolean |
isInterface()
Specifies if the modifier described by this object represents the interface flag.
|
boolean |
isLocalType()
Checks if this type description represents a local type.
|
boolean |
isRecord()
Checks if this type is a Java record.
|
boolean |
isSealed()
Returns
true if this class is a sealed class that only permitts a specified range of subclasses. |
getCanonicalName, getComponentType, getDescriptor, getSimpleName, getStackSize, isArray, isPrimitiveaccept, 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, isNestedClass, isNestHost, isNestMateOf, isNestMateOf, isPackageType, isPrimitiveWrapper, isSamePackage, isVisibleTo, iterator, represents, toSafeString, toStringfindExpectedVariable, findVariablegetEnumerationState, getFieldManifestation, getFieldPersistence, getMethodManifestation, getMethodStrictness, getOwnership, getParameterManifestation, getProvisioningState, getSynchronizationState, getSyntheticState, getTypeManifestation, getVisibility, isBridge, isDeprecated, isFinal, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatileclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTypeManifestationgetEnumerationStategetOwnership, getVisibility, isDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStaticgetSyntheticState, isFinal, isSyntheticforEach, spliteratorgetNamefindExpectedVariable, findVariableprotected abstract TypeDescription delegate()
@MaybeNull public TypeDescription.Generic getSuperClass()
TypeDefinition.Sort.NON_GENERIC),
parameterized types (TypeDefinition.Sort.PARAMETERIZED) or generic array types (TypeDefinition.Sort.GENERIC_ARRAY) types. Interface types
and the Object class do not define a super class where null is returned. Array types define Object
as their direct super class.null if no super class exists for this type.public TypeList.Generic getInterfaces()
TypeDefinition.Sort.NON_GENERIC),
parameterized types (TypeDefinition.Sort.PARAMETERIZED) or generic array types (TypeDefinition.Sort.GENERIC_ARRAY) types.public FieldList<FieldDescription.InDefinedShape> getDeclaredFields()
TypeDefinition.Sort.NON_GENERIC),
parameterized types (TypeDefinition.Sort.PARAMETERIZED) or generic array types (TypeDefinition.Sort.GENERIC_ARRAY) types. Generic array
types never define fields and the returned list is always empty for such types.TypeDefinition.Sort.NON_GENERIC),
parameterized types (TypeDefinition.Sort.PARAMETERIZED) or generic array types (TypeDefinition.Sort.GENERIC_ARRAY) types. Generic array
types never define methods and the returned list is always empty for such types.public MethodList<MethodDescription.InDefinedShape> getDeclaredMethods()
@MaybeNull public TypeDescription getDeclaringType()
null if no such type exists.@MaybeNull public MethodDescription.InDefinedShape getEnclosingMethod()
null is returned by this method.null if there is no such method.@MaybeNull public TypeDescription getEnclosingType()
null if there is no such type.public TypeList getDeclaredTypes()
public boolean isAnonymousType()
true if this type description represents an anonymous type.public boolean isLocalType()
true if this type description represents a local type.@MaybeNull public PackageDescription getPackage()
null if the described type
is a primitive type or an array.null if the described type
is a primitive type or an array.public AnnotationList getDeclaredAnnotations()
public TypeList.Generic getTypeVariables()
public int getModifiers()
public boolean isAbstract()
ModifierReviewable.AbstractBaseabstract.isAbstract in interface ModifierReviewable.OfAbstractionisAbstract in class ModifierReviewable.AbstractBasetrue if the modifier described by this object is abstract.public boolean isEnum()
ModifierReviewable.AbstractBaseisEnum in interface ModifierReviewable.OfEnumerationisEnum in class ModifierReviewable.AbstractBasetrue if the modifier described by this object represents the enum flag.public boolean isInterface()
ModifierReviewable.AbstractBaseisInterface in interface ModifierReviewable.ForTypeDefinitionisInterface in class ModifierReviewable.AbstractBasetrue if the modifier described by this object represents the interface flag.public boolean isAnnotation()
ModifierReviewable.AbstractBaseisAnnotation in interface ModifierReviewable.ForTypeDefinitionisAnnotation in class ModifierReviewable.AbstractBasetrue if the modifier described by this object represents the annotation flag.@MaybeNull public String getGenericSignature()
TypeDescription.AbstractBasenull is returned as a signature.getGenericSignature in interface NamedElement.WithDescriptorgetGenericSignature in class TypeDescription.AbstractBasenull if this element is not generic.public int getActualModifiers(boolean superFlag)
TypeDescription.AbstractBaseprivate.
but it modifiers might reflect this property nevertheless if a class was defined as a private inner class. The
returned modifiers take also into account if the type is marked as Deprecated. Anonymous classes that are
enclosed in a static method or the type initializer are additionally marked as final as it is also done
by the Java compiler.getActualModifiers in interface TypeDescriptiongetActualModifiers in class TypeDescription.AbstractBasesuperFlag - true if the modifier's super flag should be set.public TypeDescription getNestHost()
public TypeList getNestMembers()
public RecordComponentList<RecordComponentDescription.InDefinedShape> getRecordComponents()
public boolean isRecord()
true if this type is a Java record.public boolean isSealed()
TypeDescription.AbstractBasetrue if this class is a sealed class that only permitts a specified range of subclasses.isSealed in interface TypeDescriptionisSealed in class TypeDescription.AbstractBasetrue if this class is a sealed class that only permitts a specified range of subclasses.public TypeList getPermittedSubtypes()
@MaybeNull public ClassFileVersion getClassFileVersion()
TypeDescription.AbstractBasenull is returned.getClassFileVersion in interface TypeDescriptiongetClassFileVersion in class TypeDescription.AbstractBasenull if it cannot be resolved.Copyright © 2014–2025. All rights reserved.