public interface ParameterDescription extends AnnotatedElement, NamedElement, ModifierReviewable
Modifier and Type | Interface and Description |
---|---|
static class |
ParameterDescription.AbstractParameterDescription
A base implementation of a method parameter description.
|
static class |
ParameterDescription.ForLoadedParameter
Description of a loaded parameter, represented by a Java 8
java.lang.reflect.Parameter . |
static class |
ParameterDescription.Latent
A latent description of a parameter that is not attached to a method or constructor.
|
ModifierReviewable.AbstractModifierReviewable
Modifier and Type | Field and Description |
---|---|
static String |
NAME_PREFIX
The prefix for names of an unnamed parameter.
|
EMPTY_NAME
EMPTY_MASK
Modifier and Type | Method and Description |
---|---|
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.
|
getDeclaredAnnotations
getInternalName, getName, getSourceCodeName
getModifiers, isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
static final String NAME_PREFIX
TypeDescription getTypeDescription()
MethodDescription getDeclaringMethod()
int getIndex()
boolean isNamed()
argX
with X
denoting the zero-based index.true
if the parameter has an explicit name.boolean hasModifiers()
true
if this parameter defines explicit modifiers.int getOffset()
Copyright © 2014–2015. All rights reserved.