public static class TypePool.LazyTypeDescription extends TypeDescription.AbstractTypeDescription.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 class |
TypePool.LazyTypeDescription.LazyTypeList
A list that is constructing
TypePool.LazyTypeDescription s. |
protected static class |
TypePool.LazyTypeDescription.MethodToken
A token for representing collected data on a method.
|
TypeDescription.AbstractTypeDescription.OfSimpleType
TypeDescription.AbstractTypeDescription, TypeDescription.ArrayProjection, TypeDescription.ForLoadedType, TypeDescription.Latent
ModifierReviewable.AbstractModifierReviewable
CLASS, ENUM, OBJECT, STRING, VOID
EMPTY_NAME
EMPTY_MASK
Modifier | Constructor and Description |
---|---|
protected |
LazyTypeDescription(TypePool typePool,
int modifiers,
String name,
String superTypeName,
String genericSignature,
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.
|
String |
getGenericSignature()
Returns the generic signature of this byte code element.
|
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, represents
equals, getActualModifiers, getInheritedAnnotations, getInheritedInterfaces, getInternalName, getPackageName, getSourceCodeName, hashCode, isAnnotationReturnType, isAnnotationValue, isAnnotationValue, isConstantPool, isInstanceOrWrapper, isPrimitiveWrapper, isSamePackage, isVisibleTo, toString
isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
protected LazyTypeDescription(TypePool typePool, int modifiers, String name, String superTypeName, String genericSignature, 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.genericSignature
- The generic signature of the type or null
if the code is not generic.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()
TypeDescription
null
if type does not have a super type as for the
Object
type.public TypeList getInterfaces()
TypeDescription
public MethodDescription getEnclosingMethod()
TypeDescription
null
if there is no such method.public TypeDescription getEnclosingType()
TypeDescription
null
if there is no such type.public String getCanonicalName()
TypeDescription
public boolean isAnonymousClass()
TypeDescription
true
if this type description represents an anonymous type.public boolean isLocalClass()
TypeDescription
true
if this type description represents a local type.public boolean isMemberClass()
TypeDescription
true
if this type description represents a member type.public FieldList getDeclaredFields()
TypeDescription
public MethodList getDeclaredMethods()
TypeDescription
public PackageDescription getPackage()
TypeDescription
public String getName()
NamedElement
public TypeDescription getDeclaringType()
DeclaredInType
null
if no such type exists.public int getModifiers()
ModifierReviewable
public AnnotationList getDeclaredAnnotations()
AnnotatedCodeElement
public String getGenericSignature()
ByteCodeElement
getGenericSignature
in interface ByteCodeElement
getGenericSignature
in class TypeDescription.AbstractTypeDescription
null
if this element is not generic.Copyright © 2014–2015. All rights reserved.