public static class TypePool.LazyTypeDescription extends TypeDescription.AbstractTypeDescription.OfSimpleType
ByteCodeElements or
AnnotationDescriptions by querying a type pool
at lookup time.| Modifier and Type | Class and Description |
|---|---|
protected static class |
TypePool.LazyTypeDescription.AnnotationInvocationHandler
An invocation handler to represent a loaded annotation of a
TypePool.LazyTypeDescription.LazyAnnotationDescription. |
protected static class |
TypePool.LazyTypeDescription.AnnotationToken
A token for representing collected data on an annotation.
|
protected static interface |
TypePool.LazyTypeDescription.AnnotationValue<T,S>
A value of a
TypePool.LazyTypeDescription.LazyAnnotationDescription which
is not yet loaded by a class loader. |
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 class |
TypePool.LazyTypeDescription.LazyTypeList
A list that is constructing
TypePool.LazyTypeDescriptions. |
protected static class |
TypePool.LazyTypeDescription.MethodToken
A token for representing collected data on a method.
|
TypeDescription.AbstractTypeDescription.OfSimpleTypeTypeDescription.AbstractTypeDescription, TypeDescription.ArrayProjection, TypeDescription.ForLoadedTypeModifierReviewable.AbstractModifierReviewable| Modifier | Constructor and Description |
|---|---|
protected |
LazyTypeDescription(TypePool typePool,
int modifiers,
String name,
String superTypeName,
String[] interfaceName,
TypePool.LazyTypeDescription.DeclarationContext declarationContext,
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 |
|---|---|
String |
getCanonicalName()
Returns the canonical internalName of this type.
|
AnnotationList |
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
FieldList |
getDeclaredFields()
Returns a list of fields that are declared by this type.
|
MethodList |
getDeclaredMethods()
Returns a list of methods that are declared by this type.
|
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.
|
TypeList |
getInterfaces()
Returns a list of interfaces that are implemented by 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.
|
TypeDescription |
getSupertype()
Returns the component type of this type.
|
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.
|
getComponentType, getDescriptor, getSimpleName, getStackSize, isArray, isAssignableFrom, isAssignableFrom, isAssignableTo, isAssignableTo, isInstance, isPrimitive, representsequals, getActualModifiers, getGenericSignature, getInheritedAnnotations, getInheritedInterfaces, getInternalName, getPackageName, getSourceCodeName, hashCode, isSamePackage, isVisibleTo, 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, waitisAbstract, 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 superTypeName, String[] interfaceName, TypePool.LazyTypeDescription.DeclarationContext declarationContext, 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 internal name of this type.superTypeName - The internal name of this type's super type or null if no such type
exists.interfaceName - An array of the internal names of all implemented interfaces or null if no
interfaces are implemented.declarationContext - The declaration context of this type.anonymousType - true if this type is an anonymous type.annotationTokens - A list of annotation tokens representing methods that are declared by this type.fieldTokens - A list of field tokens representing methods that are declared by this type.methodTokens - A list of method tokens representing methods that are declared by this type.public TypeDescription getSupertype()
TypeDescriptionnull if type does not have a super type as for the
Object type.public TypeList getInterfaces()
TypeDescriptionpublic MethodDescription getEnclosingMethod()
TypeDescriptionnull if there is no such method.public TypeDescription getEnclosingType()
TypeDescriptionnull if there is no such type.public String getCanonicalName()
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 getDeclaredFields()
TypeDescriptionpublic MethodList getDeclaredMethods()
TypeDescriptionpublic PackageDescription getPackage()
TypeDescriptionpublic String getName()
NamedElementpublic TypeDescription getDeclaringType()
DeclaredInTypenull if no such type exists.public int getModifiers()
ModifierReviewablepublic AnnotationList getDeclaredAnnotations()
AnnotatedElementCopyright © 2014. All rights reserved.