public interface MethodDescription extends ModifierReviewable, ByteCodeMethod, DeclaredInType, AnnotatedElement
equal(Object)
and hashCode()
implementations.Modifier and Type | Interface and Description |
---|---|
static class |
MethodDescription.AbstractMethodDescription
An abstract base implementation of a method description.
|
static class |
MethodDescription.ForLoadedConstructor
An implementation of a method description for a loaded constructor.
|
static class |
MethodDescription.ForLoadedMethod
An implementation of a method description for a loaded method.
|
static class |
MethodDescription.Latent
A latent method description describes a method that is not attached to a declaring
TypeDescription but stands for itself. |
ModifierReviewable.AbstractModifierReviewable
Modifier and Type | Field and Description |
---|---|
static String |
CONSTRUCTOR_INTERNAL_NAME
The internal internalName of a Java constructor.
|
Modifier and Type | Method and Description |
---|---|
TypeList |
getExceptionTypes()
Returns a description of the exception types of the method described by this instance.
|
Annotation[][] |
getParameterAnnotations()
Returns the parameter annotations of the method described by this instance.
|
int |
getParameterOffset(int parameterIndex)
Returns the offset of the parameter at
parameterIndex on the described method's local variable array. |
TypeList |
getParameterTypes()
Returns a list of type descriptions of the method described by this instance.
|
TypeDescription |
getReturnType()
Returns a description of the return type of the method described by this instance.
|
int |
getStackSize()
Returns the size of the local variable array that is required for this method, i.e.
|
boolean |
isConstructor()
Specifies if this method description represents a constructor.
|
boolean |
isOverridable()
Verifies if this method description represents an overridable method.
|
boolean |
represents(Constructor<?> constructor)
Verifies if a method description represents a given loaded constructor.
|
boolean |
represents(Method method)
Verifies if a method description represents a given loaded method.
|
getModifiers, isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
getUniqueSignature
getDescriptor, getInternalName, getName, isVisibleTo
getDeclaringType
getAnnotation, getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredAnnotationsByType, isAnnotationPresent
static final String CONSTRUCTOR_INTERNAL_NAME
TypeDescription getReturnType()
TypeList getParameterTypes()
Annotation[][] getParameterAnnotations()
TypeList getExceptionTypes()
boolean isConstructor()
true
if this method description represents a constructor.boolean represents(Method method)
method
- The method to be checked.true
if this method description represents the given loaded method.boolean represents(Constructor<?> constructor)
constructor
- The constructor to be checked.true
if this method description represents the given loaded constructor.boolean isOverridable()
true
if this method description represents an overridable method.int getStackSize()
this
if this method represented a non-static
method.int getParameterOffset(int parameterIndex)
parameterIndex
on the described method's local variable array.parameterIndex
- The parameter index of interest.Copyright © 2014. All rights reserved.