public static class ParameterDescription.ForLoadedParameter extends ParameterDescription.AbstractParameterDescription
java.lang.reflect.Parameter.| Modifier and Type | Class and Description |
|---|---|
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.AbstractParameterDescription, ParameterDescription.ForLoadedParameter, ParameterDescription.LatentModifierReviewable.AbstractModifierReviewable| Modifier and Type | Field and Description |
|---|---|
protected static JavaMethod |
GET_TYPE
Java method representation for the
java.lang.reflect.Parameter's getType method. |
NAME_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 |
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.
|
TypeDescription |
getTypeDescription()
Returns the parameter's type.
|
boolean |
hasModifiers()
Checks if this parameter has an explicit modifier.
|
boolean |
isNamed()
Checks if this parameter has an explicit name.
|
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, waitisAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatileprotected static final JavaMethod GET_TYPE
java.lang.reflect.Parameter's getType method.protected ForLoadedParameter(Object parameter, int index)
parameter - An instance of java.lang.reflect.Parameter.index - The parameter's index.public TypeDescription getTypeDescription()
ParameterDescriptionpublic MethodDescription getDeclaringMethod()
ParameterDescriptionpublic AnnotationList getDeclaredAnnotations()
AnnotatedCodeElementpublic String getName()
NamedElementgetName in interface NamedElementgetName in class ParameterDescription.AbstractParameterDescriptionpublic 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.AbstractParameterDescriptionpublic boolean hasModifiers()
ParameterDescriptiontrue if this parameter defines explicit modifiers.Copyright © 2014–2015. All rights reserved.