public interface ParameterDescription extends AnnotationSource, NamedElement.WithRuntimeName, NamedElement.WithOptionalName, ModifierReviewable.ForParameterDescription, 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.
|
AnnotationSource.Empty, AnnotationSource.Explicit
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration
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.
|
getDeclaredAnnotations
getInternalName, getName
isNamed
getActualName
getParameterManifestation, getProvisioningState, isMandated
getModifiers, getSyntheticState, isFinal, isSynthetic
asDefined, asToken
static final String NAME_PREFIX
TypeDescription.Generic getType()
MethodDescription getDeclaringMethod()
int getIndex()
boolean hasModifiers()
true
if this parameter defines explicit modifiers.int getOffset()
Copyright © 2014–2024. All rights reserved.