public static class TypePool.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.LazyTypeDescription.AnnotationToken
A token for representing collected data on an annotation.
|
protected static interface |
TypePool.LazyTypeDescription.DeclarationContext
A declaration context encapsulates information about whether a type was declared within another type
or within a method of another type.
|
protected static class |
TypePool.LazyTypeDescription.FieldToken
A token for representing collected data on a field.
|
protected static interface |
TypePool.LazyTypeDescription.GenericTypeToken
A token reprepresenting a generic type.
|
protected static class |
TypePool.LazyTypeDescription.MethodToken
A token for representing collected data on a method.
|
TypeDescription.AbstractBase.OfSimpleType, TypeDescription.AbstractBase.RawTypeWrapperTypeDescription.AbstractBase, TypeDescription.ArrayProjection, TypeDescription.ForLoadedType, TypeDescription.ForPackageDescription, TypeDescription.LatentGenericTypeDescription.ForGenericArray, GenericTypeDescription.ForNonGenericType, GenericTypeDescription.ForParameterizedType, GenericTypeDescription.ForTypeVariable, GenericTypeDescription.ForWildcardType, GenericTypeDescription.LazyProjection, GenericTypeDescription.Sort, GenericTypeDescription.SuperTypeIterator, GenericTypeDescription.Visitor<T>TypeVariableSource.Visitor<T>ByteCodeElement.Accessible, ByteCodeElement.Token<T extends ByteCodeElement.Token<T>>, ByteCodeElement.TypeDependant<T extends ByteCodeElement.TypeDependant<?,S>,S extends ByteCodeElement.Token<S>>NamedElement.WithGenericName, NamedElement.WithRuntimeNameARRAY_INTERFACES, ARRAY_MODIFIERS, CLASS, ENUM, OBJECT, STRING, UNDEFINED, VOIDNON_GENERIC_SIGNATUREEMPTY_NAME, NO_NAMEEMPTY_MASK| Modifier | Constructor and Description |
|---|---|
protected |
LazyTypeDescription(TypePool typePool,
int modifiers,
String name,
String superTypeInternalName,
String[] interfaceInternalName,
TypePool.LazyTypeDescription.GenericTypeToken.Resolution.ForType signatureResolution,
TypePool.LazyTypeDescription.DeclarationContext declarationContext,
List<String> declaredTypes,
boolean anonymousType,
List<TypePool.LazyTypeDescription.AnnotationToken> annotationTokens,
List<TypePool.LazyTypeDescription.FieldToken> fieldTokens,
List<TypePool.LazyTypeDescription.MethodToken> methodTokens)
Creates a new lazy type description.
|
| Modifier and Type | Method and Description |
|---|---|
AnnotationList |
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
FieldList<FieldDescription.InDefinedShape> |
getDeclaredFields()
Returns a list of field descriptions that are declared by this type.
|
protected GenericTypeList |
getDeclaredInterfaces()
Returns the declared interface types in the form they are declared in the class file.
|
MethodList<MethodDescription.InDefinedShape> |
getDeclaredMethods()
Returns a list of method descriptions that are declared by this type.
|
protected GenericTypeDescription |
getDeclaredSuperType()
Returns the declared super type in the form it is declared in the class file.
|
TypeList |
getDeclaredTypes()
Returns a list of types that are declared by this type excluding anonymous classes.
|
TypeDescription |
getDeclaringType()
Returns the declaring type of this instance.
|
MethodDescription |
getEnclosingMethod()
Returns a description of the enclosing method of this type.
|
TypeDescription |
getEnclosingType()
Returns a description of the enclosing type of this type.
|
int |
getModifiers()
Returns the modifier that is described by this object.
|
String |
getName()
Returns the internalName of this byte code element.
|
PackageDescription |
getPackage()
Returns the package internalName of the type described by this instance.
|
GenericTypeList |
getTypeVariables()
Returns the type variables that are declared by this element.
|
boolean |
isAnonymousClass()
Checks if this type description represents an anonymous type.
|
boolean |
isLocalClass()
Checks if this type description represents a local type.
|
boolean |
isMemberClass()
Checks if this type description represents a member type.
|
getCanonicalName, getComponentType, getDescriptor, getSimpleName, getStackSize, isArray, isPrimitiveaccept, accept, asErasure, equals, findVariable, getActualModifiers, getEnclosingSource, getGenericSignature, getInheritedAnnotations, getInterfaces, getInternalName, getLowerBounds, getOwnerType, getParameters, getSort, getSourceCodeName, getSuperType, getSymbol, getTypeName, getUpperBounds, getVariableSource, hashCode, isAnnotationReturnType, isAnnotationValue, isAnnotationValue, isAssignableFrom, isAssignableFrom, isAssignableTo, isAssignableTo, isConstantPool, isInstance, isInstanceOrWrapper, isPrimitiveWrapper, isSamePackage, isVisibleTo, iterator, represents, toStringisAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatileclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorisAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatileprotected LazyTypeDescription(TypePool typePool, int modifiers, String name, String superTypeInternalName, String[] interfaceInternalName, TypePool.LazyTypeDescription.GenericTypeToken.Resolution.ForType signatureResolution, TypePool.LazyTypeDescription.DeclarationContext declarationContext, List<String> declaredTypes, boolean anonymousType, List<TypePool.LazyTypeDescription.AnnotationToken> annotationTokens, List<TypePool.LazyTypeDescription.FieldToken> fieldTokens, List<TypePool.LazyTypeDescription.MethodToken> methodTokens)
typePool - The type pool to be used for looking up linked types.modifiers - The modifiers of this type.name - The binary name of this type.superTypeInternalName - 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.signatureResolution - The resolution of this type's generic types.declarationContext - The declaration context of this type.declaredTypes - A list of descriptors representing the types that are declared by this type.anonymousType - true if this type is an anonymous type.annotationTokens - A list of tokens describing the annotation's 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.protected GenericTypeDescription getDeclaredSuperType()
TypeDescription.AbstractBasegetDeclaredSuperType in class TypeDescription.AbstractBaseprotected GenericTypeList getDeclaredInterfaces()
TypeDescription.AbstractBasegetDeclaredInterfaces in class TypeDescription.AbstractBasepublic MethodDescription getEnclosingMethod()
TypeDescriptionnull if there is no such method.public TypeDescription getEnclosingType()
TypeDescriptionnull if there is no such type.public TypeList getDeclaredTypes()
TypeDescriptionpublic boolean isAnonymousClass()
TypeDescriptiontrue if this type description represents an anonymous type.public boolean isLocalClass()
TypeDescriptiontrue if this type description represents a local type.public boolean isMemberClass()
TypeDescriptiontrue if this type description represents a member type.public FieldList<FieldDescription.InDefinedShape> getDeclaredFields()
GenericTypeDescriptionReturns a list of field descriptions that are declared by this type. For parameterized types, all type variables of these fields are resolved to the values of the type variables.
Only non-generic types (GenericTypeDescription.Sort.NON_GENERIC) and parameterized types
(GenericTypeDescription.Sort.PARAMETERIZED) define a super type. For a generic array type,
(GenericTypeDescription.Sort.GENERIC_ARRAY), an empty list is returned. For other generic
types, an IllegalStateException is thrown.
public MethodList<MethodDescription.InDefinedShape> getDeclaredMethods()
GenericTypeDescriptionReturns a list of method descriptions that are declared by this type. For parameterized types, all type variables used by these methods are resolved to the values of the type variables.
Only non-generic types (GenericTypeDescription.Sort.NON_GENERIC) and parameterized types
(GenericTypeDescription.Sort.PARAMETERIZED) define a super type. For a generic array type,
(GenericTypeDescription.Sort.GENERIC_ARRAY), an empty list is returned. For other
generic types, an IllegalStateException is thrown.
public PackageDescription getPackage()
TypeDescriptionpublic String getName()
NamedElement.WithRuntimeNamepublic TypeDescription getDeclaringType()
DeclaredByTypenull if no such type exists.public int getModifiers()
ModifierReviewablepublic AnnotationList getDeclaredAnnotations()
AnnotatedCodeElementpublic GenericTypeList getTypeVariables()
TypeVariableSourceCopyright © 2014–2015. All rights reserved.