protected static class ParameterDescription.ForLoadedParameter.OfLegacyVmMethod extends ParameterDescription.AbstractParameterDescription
java.lang.reflect.Parameter
is not available.ParameterDescription.AbstractParameterDescription, ParameterDescription.ForLoadedParameter, ParameterDescription.LatentModifierReviewable.AbstractModifierReviewableNAME_PREFIXEMPTY_NAMEEMPTY_MASK| Modifier | Constructor and Description |
|---|---|
protected |
OfLegacyVmMethod(Method method,
int index,
Class<?> parameterType,
Annotation[] parameterAnnotation)
Creates a legacy representation of a method's parameter.
|
| Modifier and Type | Method and Description |
|---|---|
AnnotationList |
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
MethodDescription |
getDeclaringMethod()
Returns the method that declares this parameter.
|
int |
getIndex()
Returns this parameter's index.
|
TypeDescription |
getTypeDescription()
Returns the parameter's type.
|
boolean |
hasModifiers()
Checks if this parameter has an explicit modifier.
|
boolean |
isNamed()
Checks if this parameter has an explicit name.
|
equals, getInternalName, getModifiers, getName, getOffset, getSourceCodeName, hashCode, 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, isVolatileprotected OfLegacyVmMethod(Method method, int index, Class<?> parameterType, Annotation[] parameterAnnotation)
method - The method that declares this parameter.index - The index of this parameter.parameterType - The type of this parameter.parameterAnnotation - The annotations of this parameter.public TypeDescription getTypeDescription()
ParameterDescriptionpublic MethodDescription getDeclaringMethod()
ParameterDescriptionpublic int getIndex()
ParameterDescriptionpublic boolean isNamed()
ParameterDescriptionargX with X denoting the zero-based index.true if the parameter has an explicit name.public boolean hasModifiers()
ParameterDescriptiontrue if this parameter defines explicit modifiers.public AnnotationList getDeclaredAnnotations()
AnnotatedCodeElementCopyright © 2014–2015. All rights reserved.