public interface ParameterDescription extends AnnotatedCodeElement, NamedElement.WithRuntimeName, ModifierReviewable, ByteCodeElement.TypeDependant<ParameterDescription.InDefinedShape,ParameterDescription.Token>
Modifier and Type | Interface and Description |
---|---|
static class |
ParameterDescription.AbstractBase
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 interface |
ParameterDescription.InDefinedShape
Represents a parameter in its defined shape, i.e.
|
static class |
ParameterDescription.Latent
A latent description of a parameter that is not attached to a method or constructor.
|
static class |
ParameterDescription.Token
A token that describes the shape of a method parameter.
|
static class |
ParameterDescription.TypeSubstituting
A parameter description that represents a given parameter but with a substituted parameter type.
|
NamedElement.WithGenericName, NamedElement.WithRuntimeName
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.
|
GenericTypeDescription |
getType()
Returns the type of this parameter.
|
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
asDefined, asToken, asToken
static final String NAME_PREFIX
GenericTypeDescription getType()
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.