public static class TypeDescription.Latent extends TypeDescription.AbstractTypeDescription.OfSimpleType
TypeDescription.AbstractTypeDescription.OfSimpleType
TypeDescription.AbstractTypeDescription, TypeDescription.ArrayProjection, TypeDescription.ForLoadedType, TypeDescription.Latent
ModifierReviewable.AbstractModifierReviewable
CLASS, ENUM, OBJECT, STRING, VOID
EMPTY_NAME
EMPTY_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, represents
equals, getActualModifiers, getGenericSignature, 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
public 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()
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 AnnotationList getDeclaredAnnotations()
AnnotatedCodeElement
public TypeDescription getDeclaringType()
DeclaredInType
null
if no such type exists.public int getModifiers()
ModifierReviewable
public String getName()
NamedElement
Copyright © 2014–2015. All rights reserved.