protected static class ParameterDescription.ForLoadedParameter.OfLegacyVmMethod extends ParameterDescription.InDefinedShape.AbstractBase
java.lang.reflect.Parameter
is not available.ParameterDescription.InDefinedShape.AbstractBaseParameterDescription.ForLoadedParameter<T extends java.lang.reflect.AccessibleObject>, ParameterDescription.InDefinedShape, ParameterDescription.InGenericShape, ParameterDescription.Latent, ParameterDescription.Token, ParameterDescription.TypeSubstitutingAnnotationSource.Empty, AnnotationSource.ExplicitNamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeNameModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration| Modifier and Type | Field and Description |
|---|---|
private int |
index
The index of this parameter.
|
private java.lang.reflect.Method |
method
The method that declares this parameter.
|
private ParameterDescription.ForLoadedParameter.ParameterAnnotationSource |
parameterAnnotationSource
The parameter annotation source to query.
|
private java.lang.Class<?>[] |
parameterType
The type erasures of the represented method.
|
NAME_PREFIXEMPTY_NAME, NO_NAMEEMPTY_MASK| Modifier | Constructor and Description |
|---|---|
protected |
OfLegacyVmMethod(java.lang.reflect.Method method,
int index,
java.lang.Class<?>[] parameterType,
ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)
Creates a legacy representation of a method's parameter.
|
| Modifier and Type | Method and Description |
|---|---|
AnnotationList |
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
MethodDescription.InDefinedShape |
getDeclaringMethod()
Returns the method that declares this parameter.
|
int |
getIndex()
Returns this parameter's index.
|
TypeDescription.Generic |
getType()
Returns the type of this parameter.
|
boolean |
hasModifiers()
Checks if this parameter has an explicit modifier.
|
boolean |
isNamed()
Returns
true if this element has an explicit name. |
asDefinedasToken, equals, getActualName, getInternalName, getModifiers, getName, getOffset, hashCode, toStringgetEnumerationState, getFieldManifestation, getFieldPersistence, getMethodManifestation, getMethodStrictness, getOwnership, getParameterManifestation, getProvisioningState, getSynchronizationState, getSyntheticState, getTypeManifestation, getVisibility, isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatileclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetOffsetgetInternalName, getNamegetActualNamegetParameterManifestation, getProvisioningState, isMandatedgetModifiers, getSyntheticState, isFinal, isSyntheticasTokenprivate final java.lang.reflect.Method method
private final int index
private final java.lang.Class<?>[] parameterType
private final ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource
protected OfLegacyVmMethod(java.lang.reflect.Method method,
int index,
java.lang.Class<?>[] parameterType,
ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)
method - The method that declares this parameter.index - The index of this parameter.parameterType - The type erasures of the represented method.parameterAnnotationSource - The parameter annotation source to query.public TypeDescription.Generic getType()
public MethodDescription.InDefinedShape getDeclaringMethod()
public int getIndex()
public boolean isNamed()
true if this element has an explicit name.true if this element has an explicit name.public boolean hasModifiers()
true if this parameter defines explicit modifiers.public AnnotationList getDeclaredAnnotations()