protected static class TypePool.Default.LazyTypeDescription extends TypeDescription.AbstractBase.OfSimpleType
ByteCodeElement or
AnnotationDescription by querying a type pool at lookup time.| Modifier and Type | Class and Description |
|---|---|
protected static class |
TypePool.Default.LazyTypeDescription.AnnotationToken
A token for representing collected data on an annotation.
|
protected static class |
TypePool.Default.LazyTypeDescription.FieldToken
A token for representing collected data on a field.
|
protected class |
TypePool.Default.LazyTypeDescription.FieldTokenList
A list of field tokens representing each entry as a field description.
|
protected static interface |
TypePool.Default.LazyTypeDescription.GenericTypeToken
A token that represents a generic Java type.
|
protected static class |
TypePool.Default.LazyTypeDescription.LazyNestMemberList
A lazy list that represents all nest members of the represented type.
|
protected static class |
TypePool.Default.LazyTypeDescription.LazyTypeList
A list that is constructing
TypePool.Default.WithLazyResolution.LazyTypeDescriptions. |
protected static class |
TypePool.Default.LazyTypeDescription.MethodToken
A token for representing collected data on a method.
|
protected class |
TypePool.Default.LazyTypeDescription.MethodTokenList
A list of method tokens representing each entry as a method description.
|
protected static class |
TypePool.Default.LazyTypeDescription.TokenizedGenericType
A representation of a generic type that is described by a
TypePool.Default.LazyTypeDescription.GenericTypeToken. |
protected static interface |
TypePool.Default.LazyTypeDescription.TypeContainment
A declaration context encapsulates information about whether a type was declared within another type
or within a method of another type.
|
TypeDescription.AbstractBase.OfSimpleType.WithDelegationTypeDescription.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| Modifier | Constructor and Description |
|---|---|
protected |
LazyTypeDescription(TypePool typePool,
int actualModifiers,
int modifiers,
String name,
String superClassInternalName,
String[] interfaceInternalName,
String genericSignature,
TypePool.Default.LazyTypeDescription.TypeContainment typeContainment,
String declaringTypeInternalName,
List<String> declaredTypes,
boolean anonymousType,
String nestHostInternalName,
List<String> nestMemberInternalNames,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> superTypeAnnotationTokens,
Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> typeVariableAnnotationTokens,
Map<Integer,Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>>> typeVariableBoundsAnnotationTokens,
List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens,
List<TypePool.Default.LazyTypeDescription.FieldToken> fieldTokens,
List<TypePool.Default.LazyTypeDescription.MethodToken> methodTokens)
Creates a new lazy type description.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getActualModifiers(boolean superFlag)
Returns the type's actual modifiers as present in the class file.
|
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.
|
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. |
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 |
isLocalType()
Checks if this type description represents a local type.
|
getCanonicalName, getComponentType, getDescriptor, getSimpleName, getStackSize, isArray, isPrimitiveaccept, asBoxed, asErasure, asGenericType, asUnboxed, equals, getActualName, getDefaultValue, getEnclosingSource, 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, spliteratorfindVariableprotected LazyTypeDescription(TypePool typePool, int actualModifiers, int modifiers, String name, String superClassInternalName, String[] interfaceInternalName, String genericSignature, TypePool.Default.LazyTypeDescription.TypeContainment typeContainment, String declaringTypeInternalName, List<String> declaredTypes, boolean anonymousType, String nestHostInternalName, List<String> nestMemberInternalNames, Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> superTypeAnnotationTokens, Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>> typeVariableAnnotationTokens, Map<Integer,Map<Integer,Map<String,List<TypePool.Default.LazyTypeDescription.AnnotationToken>>>> typeVariableBoundsAnnotationTokens, List<TypePool.Default.LazyTypeDescription.AnnotationToken> annotationTokens, List<TypePool.Default.LazyTypeDescription.FieldToken> fieldTokens, List<TypePool.Default.LazyTypeDescription.MethodToken> methodTokens)
typePool - The type pool to be used for looking up linked types.actualModifiers - The actual modifiers of this type.modifiers - The modifiers of this type.name - The binary name of this type.superClassInternalName - The internal name of this type's super type or null if no such super type is defined.interfaceInternalName - An array of this type's interfaces or null if this type does not define any interfaces.genericSignature - The type's generic signature as found in the class file or null if the type is not generic.typeContainment - A definition of this type's containment within another type or method.declaringTypeInternalName - The internal name of this type's declaring type or null if no such type exists.declaredTypes - A list of descriptors representing the types that are declared by this type.anonymousType - true if this type is an anonymous type.nestHostInternalName - The internal name of the nest host or null if no nest host was specified.nestMemberInternalNames - A list of internal names of the nest members.superTypeAnnotationTokens - A mapping of type annotations for this type's super type and interface types by their indices.typeVariableAnnotationTokens - A mapping of type annotations of the type variables' type annotations by their indices.typeVariableBoundsAnnotationTokens - A mapping of type annotations of the type variables' bounds' type annotations by their indices
and each variable's index.annotationTokens - A list of tokens that represent the annotations of this type.fieldTokens - A list of field tokens describing the field's of this type.methodTokens - A list of method tokens describing the method's of this type.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 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 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.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 PackageDescription getPackage()
null if the described type does not imply a package.null if the described type does not imply a package.public String getName()
public TypeDescription getDeclaringType()
null if no such type exists.public int getModifiers()
public int getActualModifiers(boolean superFlag)
private.
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 AnnotationList getDeclaredAnnotations()
public TypeList.Generic getTypeVariables()
public String getGenericSignature()
null is returned as a signature.getGenericSignature in interface ByteCodeElementgetGenericSignature in class TypeDescription.AbstractBasenull if this element is not generic.Copyright © 2014–2019. All rights reserved.