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<T extends AccessibleObject>
Description of a loaded parameter with support for the information exposed by
java.lang.reflect.Parameter . |
static interface |
ParameterDescription.InDefinedShape
Represents a parameter in its defined shape, i.e.
|
static interface |
ParameterDescription.InGenericShape
Represents a parameter description in its generic 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 representing a parameter's properties detached from a type.
|
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, NO_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.Generic |
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
static final String NAME_PREFIX
TypeDescription.Generic 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–2016. All rights reserved.