public static class MethodDescription.Latent extends MethodDescription.AbstractMethodDescription
TypeDescription
.MethodDescription.AbstractMethodDescription, MethodDescription.ForLoadedConstructor, MethodDescription.ForLoadedMethod, MethodDescription.Latent
ModifierReviewable.AbstractModifierReviewable
CONSTRUCTOR_INTERNAL_NAME, TYPE_INITIALIZER_INTERNAL_NAME, TYPE_INITIALIZER_MODIFIER
EMPTY_NAME
EMPTY_MASK
Constructor and Description |
---|
Latent(String internalName,
TypeDescription declaringType,
TypeDescription returnType,
List<? extends TypeDescription> parameterTypes,
int modifiers,
List<? extends TypeDescription> exceptionTypes)
Creates an immutable latent method description.
|
Modifier and Type | Method and Description |
---|---|
AnnotationList |
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
TypeDescription |
getDeclaringType()
Returns the declaring type of this instance.
|
Object |
getDefaultValue()
Returns the default value of this method or
null if no such value exists. |
TypeList |
getExceptionTypes()
Returns a description of the exception types of the method described by this instance.
|
String |
getInternalName()
Returns the internal internalName of this byte code element.
|
int |
getModifiers()
Returns the modifier that is described by this object.
|
ParameterList |
getParameters()
Returns a list of this method's parameters.
|
TypeDescription |
getReturnType()
Returns a description of the return type of the method described by this instance.
|
static MethodDescription |
typeInitializerOf(TypeDescription declaringType)
Creates a latent method description of a type initializer (
<clinit> ) for a given type. |
equals, getAdjustedModifiers, getDefaultValue, getDescriptor, getGenericSignature, getName, getSourceCodeName, getStackSize, getUniqueSignature, hashCode, isBootstrap, isBootstrap, isConstructor, isDefaultMethod, isDefaultValue, isDefaultValue, isInvokableOn, isMethod, isOverridable, isSpecializableFor, isTypeInitializer, isVisibleTo, represents, represents, 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 internalName, TypeDescription declaringType, TypeDescription returnType, List<? extends TypeDescription> parameterTypes, int modifiers, List<? extends TypeDescription> exceptionTypes)
internalName
- The internal name of the method.declaringType
- The type that is declaring this method latently.returnType
- The return type of this method.parameterTypes
- The parameter types of this method.modifiers
- The modifiers of this method.exceptionTypes
- The exception types of this method.public static MethodDescription typeInitializerOf(TypeDescription declaringType)
<clinit>
) for a given type.declaringType
- The type that for which a type initializer should be created.public TypeDescription getReturnType()
MethodDescription
public ParameterList getParameters()
MethodDescription
public TypeList getExceptionTypes()
MethodDescription
public AnnotationList getDeclaredAnnotations()
AnnotatedCodeElement
public String getInternalName()
NamedElement
public TypeDescription getDeclaringType()
DeclaredInType
null
if no such type exists.public int getModifiers()
ModifierReviewable
public Object getDefaultValue()
MethodDescription
null
if no such value exists. The returned values might be
of a different type than usual:
Class
values are represented as
TypeDescription
s.Annotation
values are represented as
AnnotationDescription
sEnum
values are represented as
EnumerationDescription
s.null
.Copyright © 2014–2015. All rights reserved.