public abstract static class TypeDescription.AbstractTypeDescription extends ModifierReviewable.AbstractModifierReviewable implements TypeDescription
| Modifier and Type | Class and Description |
|---|---|
static class |
TypeDescription.AbstractTypeDescription.OfSimpleType
An adapter implementation of a
TypeDescription that
describes any type that is not an array or a primitive type. |
TypeDescription.AbstractTypeDescription, TypeDescription.ArrayProjection, TypeDescription.ForLoadedTypeModifierReviewable.AbstractModifierReviewable| Constructor and Description |
|---|
AbstractTypeDescription() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
getActualModifiers(boolean superFlag)
Returns the type's actual modifiers as present in the class file.
|
String |
getGenericSignature()
Returns the generic signature of this type or
null if no such signature is available. |
AnnotationList |
getInheritedAnnotations()
Returns the annotations that this type declares or inherits from super types.
|
TypeList |
getInheritedInterfaces()
Returns all interfaces that are implemented by this type, either directly or indirectly.
|
String |
getInternalName()
Returns the internal internalName of this byte code element.
|
protected String |
getPackageName()
Returns the name of this type's package.
|
String |
getSourceCodeName()
Returns the name of this byte code element as it is defined in Java source code.
|
int |
hashCode() |
boolean |
isInstance(Object object)
Checks if
object is an instance of the type represented by this instance. |
boolean |
isSamePackage(TypeDescription typeDescription)
Checks if two types are defined in the same package.
|
boolean |
isVisibleTo(TypeDescription typeDescription)
Checks if this element is visible from a given type.
|
String |
toString() |
isAbstract, 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, waitgetCanonicalName, getComponentType, getDeclaredFields, getDeclaredMethods, getEnclosingMethod, getEnclosingType, getInterfaces, getPackage, getSimpleName, getStackSize, getSupertype, isAnonymousClass, isArray, isAssignableFrom, isAssignableFrom, isAssignableTo, isAssignableTo, isLocalClass, isMemberClass, isPrimitive, representsgetDescriptorgetNamegetModifiers, isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatilegetDeclaringTypegetDeclaredAnnotationspublic boolean isInstance(Object object)
TypeDescriptionobject is an instance of the type represented by this instance.isInstance in interface TypeDescriptionobject - The object of interest.true if the object is an instance of the type described by this instance.public String getInternalName()
ByteCodeElementgetInternalName in interface ByteCodeElementpublic int getActualModifiers(boolean superFlag)
TypeDescription
Returns the type's actual modifiers as present in the class file. For example, a type cannot be private.
but it modifiers might reflect this property nevertheless if a class was defined as a private inner class.
Unfortunately, the modifier for marking a static class collides with the SUPER modifier such
that these flags are indistinguishable. Therefore, the flag must be specified manually.
getActualModifiers in interface TypeDescriptionsuperFlag - true if the super flag should be set.public String getGenericSignature()
TypeDescriptionnull if no such signature is available.
Note: Loaded classes do currently not provide such a signature.
getGenericSignature in interface ByteCodeElementgetGenericSignature in interface TypeDescriptionnull if no such signature is available.public boolean isSamePackage(TypeDescription typeDescription)
TypeDescriptionisSamePackage in interface TypeDescriptiontypeDescription - The type of interest.true if this type and the given type are in the same package.public boolean isVisibleTo(TypeDescription typeDescription)
ByteCodeElementisVisibleTo in interface ByteCodeElementtypeDescription - The type which is checked for its access of this element.true if this element is visible for typeDescription.public TypeList getInheritedInterfaces()
TypeDescriptiongetInheritedInterfaces in interface TypeDescriptionpublic AnnotationList getInheritedAnnotations()
TypeDescriptiongetInheritedAnnotations in interface TypeDescriptionpublic String getSourceCodeName()
ByteCodeElementNamedElement.getName().getSourceCodeName in interface ByteCodeElementprotected String getPackageName()
null if this type is defined in the default package.Copyright © 2014. All rights reserved.