public static class TypeDescription.Latent extends TypeDescription.AbstractTypeDescription.OfSimpleType
TypeDescription.AbstractTypeDescription.OfSimpleTypeTypeDescription.AbstractTypeDescription, TypeDescription.ArrayProjection, TypeDescription.ForLoadedType, TypeDescription.LatentModifierReviewable.AbstractModifierReviewableCLASS, ENUM, OBJECT, STRING, VOIDEMPTY_NAMEEMPTY_MASK| Constructor and Description |
|---|
Latent(String name,
int modifiers,
TypeDescription superType,
List<? extends TypeDescription> interfaces)
Creates a new latent type.
|
| 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, isAnnotationReturnType, isAnnotationValue, isAnnotationValue, isConstantPool, isInstanceOrWrapper, isPrimitiveWrapper, 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, isVolatilepublic Latent(String name, int modifiers, TypeDescription superType, List<? extends TypeDescription> interfaces)
name - The name of the type.modifiers - The modifiers of the type.superType - The super type or null if no such type exists.interfaces - The interfaces that this type implements.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 AnnotationList getDeclaredAnnotations()
AnnotatedCodeElementpublic TypeDescription getDeclaringType()
DeclaredInTypenull if no such type exists.public int getModifiers()
ModifierReviewablepublic String getName()
NamedElementCopyright © 2014–2015. All rights reserved.