public static class TypeDescription.SuperTypeLoading extends TypeDescription.AbstractBase
| Modifier and Type | Class and Description |
|---|---|
static interface |
TypeDescription.SuperTypeLoading.ClassLoadingDelegate
A class loading delegate is responsible for resolving a type given a class loader and a type name.
|
protected static class |
TypeDescription.SuperTypeLoading.ClassLoadingTypeList
A type list that attempts loading any type.
|
protected static class |
TypeDescription.SuperTypeLoading.ClassLoadingTypeProjection
A type projection that attempts to load any super type of the delegate type.
|
TypeDescription.AbstractBase.OfSimpleTypeTypeDescription.AbstractBase, TypeDescription.ArrayProjection, TypeDescription.ForLoadedType, TypeDescription.ForPackageDescription, TypeDescription.Generic, TypeDescription.Latent, TypeDescription.SuperTypeLoadingTypeDefinition.Sort, TypeDefinition.SuperClassIteratorModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumerationByteCodeElement.Token<T extends ByteCodeElement.Token<T>>, ByteCodeElement.TypeDependant<T extends ByteCodeElement.TypeDependant<?,S>,S extends ByteCodeElement.Token<S>>NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeNameAnnotationSource.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 |
|---|
SuperTypeLoading(TypeDescription delegate,
ClassLoader classLoader)
Creates a super type loading type description.
|
SuperTypeLoading(TypeDescription delegate,
ClassLoader classLoader,
TypeDescription.SuperTypeLoading.ClassLoadingDelegate classLoadingDelegate)
Creates a super type loading type description.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCanonicalName()
Returns the canonical name of this type if it exists.
|
TypeDescription |
getComponentType()
Returns the component type 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.
|
String |
getDescriptor()
Returns the descriptor of this byte code element.
|
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.
|
TypeList.Generic |
getInterfaces()
Returns the interfaces that this type implements.
|
int |
getModifiers()
Returns the modifier that is described by this object.
|
String |
getName()
Returns the internalName of this byte code element.
|
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 does not imply a package. |
String |
getSimpleName()
Returns the simple internalName of this type.
|
StackSize |
getStackSize()
Returns the size of the type described by this instance.
|
TypeDescription.Generic |
getSuperClass()
Returns the super class of this type.
|
TypeList.Generic |
getTypeVariables()
Returns the type variables that are declared by this element.
|
boolean |
isAnonymousType()
Checks if this type description represents an anonymous type.
|
boolean |
isArray()
Checks if the type described by this entity is an array.
|
boolean |
isLocalType()
Checks if this type description represents a local type.
|
boolean |
isPrimitive()
Checks if the type described by this entity is a primitive type.
|
accept, asBoxed, asErasure, asGenericType, asUnboxed, equals, getActualModifiers, getActualName, getDefaultValue, getEnclosingSource, getGenericSignature, getInheritedAnnotations, getInnerClassCount, getInternalName, getSort, getTypeName, hashCode, isAccessibleTo, isAnnotationReturnType, isAnnotationValue, isAnnotationValue, isAssignableFrom, isAssignableFrom, isAssignableTo, isAssignableTo, isGenerified, isInferrable, isInHierarchyWith, isInHierarchyWith, isInnerClass, isInstance, isMemberType, isNestedClass, isNestHost, isNestMateOf, isNestMateOf, isPackageType, isPrimitiveWrapper, isSamePackage, isVisibleTo, iterator, represents, toStringfindVariablegetEnumerationState, getFieldManifestation, getFieldPersistence, getMethodManifestation, getMethodStrictness, getOwnership, getParameterManifestation, getProvisioningState, getSynchronizationState, getSyntheticState, getTypeManifestation, getVisibility, isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatileclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetTypeManifestation, isAnnotation, isInterfaceisAbstractgetEnumerationState, isEnumgetOwnership, getVisibility, isDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStaticgetSyntheticState, isFinal, isSyntheticforEach, spliteratorfindVariablepublic SuperTypeLoading(TypeDescription delegate, ClassLoader classLoader)
delegate - The delegate type description.classLoader - The class loader to use for loading a super type.public SuperTypeLoading(TypeDescription delegate, ClassLoader classLoader, TypeDescription.SuperTypeLoading.ClassLoadingDelegate classLoadingDelegate)
delegate - The delegate type description.classLoader - The class loader to use for loading a super type.classLoadingDelegate - A delegate for loading a type.public AnnotationList getDeclaredAnnotations()
public int getModifiers()
public TypeList.Generic getTypeVariables()
public String getDescriptor()
public String getName()
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()
public StackSize getStackSize()
TypeDescription.Generic.Sort#WILDCARD do not have a well-defined a stack size and
cause an IllegalStateException to be thrown.public boolean isArray()
true if this type description represents an array.public boolean isPrimitive()
true if this type description represents a primitive type.public TypeDescription getComponentType()
Returns the component type of this type.
Only non-generic types (TypeDescription.Generic.Sort#NON_GENERIC) and generic array types
TypeDescription.Generic.Sort#GENERIC_ARRAY) define a component type. For other
types, an IllegalStateException is thrown.
null if this type does not represent an array type.public TypeDescription getDeclaringType()
null if no such type exists.public TypeList getDeclaredTypes()
public MethodDescription.InDefinedShape getEnclosingMethod()
null is returned by this method.null if there is no such method.public TypeDescription getEnclosingType()
null if there is no such type.public String getSimpleName()
public String getCanonicalName()
null.public boolean isAnonymousType()
true if this type description represents an anonymous type.public boolean isLocalType()
true if this type description represents a local type.public PackageDescription getPackage()
null if the described type does not imply a package.null if the described type does not imply a package.public TypeDescription getNestHost()
public TypeList getNestMembers()
Copyright © 2014–2019. All rights reserved.