T - The type of the java.lang.reflect.Executable that this list represents.public abstract static class ParameterDescription.ForLoadedParameter<T extends java.lang.reflect.AccessibleObject> extends ParameterDescription.InDefinedShape.AbstractBase
java.lang.reflect.Parameter.| Modifier and Type | Class and Description |
|---|---|
protected static interface |
ParameterDescription.ForLoadedParameter.Dispatcher
A dispatcher creating parameter descriptions based on the API that is available for the current JVM.
|
protected static class |
ParameterDescription.ForLoadedParameter.OfConstructor
A description of a loaded
Constructor parameter for a modern VM. |
protected static class |
ParameterDescription.ForLoadedParameter.OfLegacyVmConstructor
Description of a loaded constructor's parameter on a virtual machine where
java.lang.reflect.Parameter
is not available. |
protected static class |
ParameterDescription.ForLoadedParameter.OfLegacyVmMethod
Description of a loaded method's parameter on a virtual machine where
java.lang.reflect.Parameter
is not available. |
protected static class |
ParameterDescription.ForLoadedParameter.OfMethod
A description of a loaded
Method parameter for a modern VM. |
static interface |
ParameterDescription.ForLoadedParameter.ParameterAnnotationSource
A source for querying parameter annotations.
|
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 static ParameterDescription.ForLoadedParameter.Dispatcher |
DISPATCHER
A dispatcher for reading properties from
java.lang.reflect.Executable instances. |
protected T |
executable
The
java.lang.reflect.Executable for which the parameter types are described. |
protected int |
index
The parameter's index.
|
protected ParameterDescription.ForLoadedParameter.ParameterAnnotationSource |
parameterAnnotationSource
The parameter annotation source to query.
|
NAME_PREFIXEMPTY_NAME, NO_NAMEEMPTY_MASK| Modifier | Constructor and Description |
|---|---|
protected |
ForLoadedParameter(T executable,
int index,
ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)
Creates a new description for a loaded parameter.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex()
Returns this parameter's index.
|
int |
getModifiers()
Returns the modifier that is described by this object.
|
java.lang.String |
getName()
Returns the internalName of this byte code element.
|
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, 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, waitgetDeclaringMethodgetOffset, getTypegetDeclaredAnnotationsgetInternalNamegetActualNamegetParameterManifestation, getProvisioningState, isMandatedgetSyntheticState, isFinal, isSyntheticasTokenprivate static final ParameterDescription.ForLoadedParameter.Dispatcher DISPATCHER
java.lang.reflect.Executable instances.protected final T extends java.lang.reflect.AccessibleObject executable
java.lang.reflect.Executable for which the parameter types are described.protected final int index
protected final ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource
protected ForLoadedParameter(T executable, int index, ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)
executable - The java.lang.reflect.Executable for which the parameter types are described.index - The parameter's index.parameterAnnotationSource - The parameter annotation source to query.public java.lang.String getName()
getName in interface NamedElement.WithRuntimeNamegetName in class ParameterDescription.AbstractBasepublic int getIndex()
public boolean isNamed()
true if this element has an explicit name.true if this element has an explicit name.public int getModifiers()
getModifiers in interface ModifierReviewablegetModifiers in class ParameterDescription.AbstractBasepublic boolean hasModifiers()
true if this parameter defines explicit modifiers.