protected class InstrumentedType.AbstractBase.MethodToken.ParameterToken extends ParameterDescription.AbstractParameterDescription
ParameterDescription.AbstractParameterDescription, ParameterDescription.ForLoadedParameter, ParameterDescription.LatentModifierReviewable.AbstractModifierReviewableNAME_PREFIXEMPTY_NAMEEMPTY_MASK| Modifier | Constructor and Description |
|---|---|
protected |
ParameterToken(String typeName,
ParameterDescription parameterDescription)
Creates a new parameter token based on an existing description of a 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 ParameterToken(String typeName, ParameterDescription parameterDescription)
typeName - The name of the type.parameterDescription - The parameter description to copy.public TypeDescription getTypeDescription()
ParameterDescriptionpublic MethodDescription getDeclaringMethod()
ParameterDescriptionpublic int getIndex()
ParameterDescriptionpublic boolean isNamed()
ParameterDescriptionargX with X denoting the zero-based index.true if the parameter has an explicit name.public boolean hasModifiers()
ParameterDescriptiontrue if this parameter defines explicit modifiers.public AnnotationList getDeclaredAnnotations()
AnnotatedCodeElementpublic int getModifiers()
ModifierReviewablegetModifiers in interface ModifierReviewablegetModifiers in class ParameterDescription.AbstractParameterDescriptionpublic String getName()
NamedElementgetName in interface NamedElementgetName in class ParameterDescription.AbstractParameterDescriptionCopyright © 2014–2015. All rights reserved.