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.Latent
ModifierReviewable.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_PREFIX
EMPTY_NAME
EMPTY_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, toString
isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
protected 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()
ParameterDescription
public MethodDescription getDeclaringMethod()
ParameterDescription
public AnnotationList getDeclaredAnnotations()
AnnotatedCodeElement
public String getName()
NamedElement
getName
in interface NamedElement
getName
in class ParameterDescription.AbstractParameterDescription
public int getIndex()
ParameterDescription
public boolean isNamed()
ParameterDescription
argX
with X
denoting the zero-based index.true
if the parameter has an explicit name.public int getModifiers()
ModifierReviewable
getModifiers
in interface ModifierReviewable
getModifiers
in class ParameterDescription.AbstractParameterDescription
public boolean hasModifiers()
ParameterDescription
true
if this parameter defines explicit modifiers.Copyright © 2014–2015. All rights reserved.