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.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 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.LatentTypeDefinition.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.WithRuntimeNameTypeVariableSource.Visitor<T>ARRAY_INTERFACES, CLASS, OBJECT, STRING, THROWABLE, UNDEFINED, VOIDEMPTY_MASKNON_GENERIC_SIGNATUREEMPTY_NAME, NO_NAME| Modifier and Type | Method and Description |
|---|---|
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 excluding anonymous classes.
|
TypeDescription |
getDeclaringType()
Returns the declaring type of this instance.
|
MethodDescription |
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.
|
PackageDescription |
getPackage()
Returns the package internalName 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 |
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, asErasure, asGenericType, equals, getActualModifiers, getActualName, getEnclosingSource, getGenericSignature, getInheritedAnnotations, getInternalName, getSegmentCount, getSort, getTypeName, hashCode, isAnnotationReturnType, isAnnotationValue, isAnnotationValue, isAssignableFrom, isAssignableFrom, isAssignableTo, isAssignableTo, isConstantPool, isGenericDeclaration, isInstance, isInstanceOrWrapper, isPackageType, isPrimitiveWrapper, isSamePackage, isVisibleTo, iterator, represents, toStringfindVariableisAbstract, 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, waitisAnnotation, isInterfaceisAbstractisEnumisDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStaticisFinal, isSyntheticforEach, spliteratorfindVariableprotected LazyTypeDescription(TypePool typePool, int modifiers, String name, String superClassInternalName, String[] interfaceInternalName, TypePool.Default.LazyTypeDescription.GenericTypeToken.Resolution.ForType signatureResolution, TypePool.Default.LazyTypeDescription.TypeContainment typeContainment, String declaringTypeInternalName, List<String> declaredTypes, boolean anonymousType, 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.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.signatureResolution - The resolution of this type's generic types.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.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()
TypeDefinitionTypeDefinition.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()
TypeDefinitionTypeDefinition.Sort.NON_GENERIC),
parameterized types (TypeDefinition.Sort.PARAMETERIZED) or generic array types (TypeDefinition.Sort.GENERIC_ARRAY) types.public MethodDescription getEnclosingMethod()
TypeDescriptionnull is returned by this method.null 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()
TypeDefinitionTypeDefinition.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()
TypeDefinitionpublic PackageDescription getPackage()
TypeDescriptionpublic String getName()
NamedElement.WithRuntimeNamepublic TypeDescription getDeclaringType()
DeclaredByTypenull if no such type exists.public int getModifiers()
ModifierReviewablepublic AnnotationList getDeclaredAnnotations()
AnnotatedCodeElementpublic TypeList.Generic getTypeVariables()
TypeVariableSourceCopyright © 2014–2016. All rights reserved.