public static class ParameterDescription.ForLoadedParameter extends ParameterDescription.InDefinedShape.AbstractBase
java.lang.reflect.Parameter.| Modifier and Type | Class and Description |
|---|---|
protected static interface |
ParameterDescription.ForLoadedParameter.Dispatcher
A dispatcher for
java.lang.reflect.Parameter instances. |
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. |
ParameterDescription.InDefinedShape.AbstractBaseParameterDescription.ForLoadedParameter, ParameterDescription.InDefinedShape, ParameterDescription.Latent, ParameterDescription.Token, ParameterDescription.TypeSubstitutingNamedElement.WithGenericName, NamedElement.WithRuntimeNameNAME_PREFIXEMPTY_NAMEEMPTY_MASK| Modifier | Constructor and Description |
|---|---|
protected |
ForLoadedParameter(Object parameter,
int index)
Creates a representation of a loaded 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.
|
int |
getModifiers()
Returns the modifier that is described by this object.
|
String |
getName()
Returns the internalName of this byte code element.
|
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.
|
asDefinedasToken, asToken, equals, getInternalName, getOffset, getSourceCodeName, hashCode, toStringisAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatileclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetOffsetgetInternalNamegetSourceCodeNameisAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatileasToken, asTokenprotected ForLoadedParameter(Object parameter, int index)
parameter - An instance of java.lang.reflect.Parameter.index - The parameter's index.public GenericTypeDescription getType()
ParameterDescriptionpublic MethodDescription.InDefinedShape getDeclaringMethod()
ParameterDescriptionpublic AnnotationList getDeclaredAnnotations()
AnnotatedCodeElementpublic String getName()
NamedElement.WithRuntimeNamegetName in interface NamedElement.WithRuntimeNamegetName in class ParameterDescription.AbstractBasepublic int getIndex()
ParameterDescriptionpublic boolean isNamed()
ParameterDescriptionargX with X denoting the zero-based index.true if the parameter has an explicit name.public int getModifiers()
ModifierReviewablegetModifiers in interface ModifierReviewablegetModifiers in class ParameterDescription.AbstractBasepublic boolean hasModifiers()
ParameterDescriptiontrue if this parameter defines explicit modifiers.Copyright © 2014–2015. All rights reserved.