public static class ParameterDescription.Latent extends ParameterDescription.AbstractParameterDescription
ParameterDescription.AbstractParameterDescription, ParameterDescription.ForLoadedParameter, ParameterDescription.LatentModifierReviewable.AbstractModifierReviewableNAME_PREFIXEMPTY_NAMEEMPTY_MASK| Constructor and Description |
|---|
Latent(MethodDescription declaringMethod,
TypeDescription parameterType,
int index,
int offset)
Creates a latent description of a 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.
|
int |
getOffset()
Returns the offset to the parameter value within the local method variable.
|
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, 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, isVolatilepublic Latent(MethodDescription declaringMethod, TypeDescription parameterType, int index, int offset)
declaringMethod - The method that is declaring the parameter.parameterType - The type of the parameter.index - The index of the parameter.offset - The parameter's offset in the local method variables array.public TypeDescription getTypeDescription()
ParameterDescriptionpublic MethodDescription getDeclaringMethod()
ParameterDescriptionpublic int getIndex()
ParameterDescriptionpublic int getOffset()
ParameterDescriptiongetOffset in interface ParameterDescriptiongetOffset in class ParameterDescription.AbstractParameterDescriptionpublic 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.