protected class InstrumentedType.AbstractBase.MethodToken.ParameterToken extends ParameterDescription.AbstractParameterDescription
ParameterDescription.AbstractParameterDescription, ParameterDescription.ForLoadedParameter, ParameterDescription.Latent
ModifierReviewable.AbstractModifierReviewable
NAME_PREFIX
EMPTY_NAME
EMPTY_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, 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 ParameterToken(String typeName, ParameterDescription parameterDescription)
typeName
- The name of the type.parameterDescription
- The parameter description to copy.public TypeDescription getTypeDescription()
ParameterDescription
public MethodDescription getDeclaringMethod()
ParameterDescription
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 boolean hasModifiers()
ParameterDescription
true
if this parameter defines explicit modifiers.public AnnotationList getDeclaredAnnotations()
AnnotatedCodeElement
public int getModifiers()
ModifierReviewable
getModifiers
in interface ModifierReviewable
getModifiers
in class ParameterDescription.AbstractParameterDescription
public String getName()
NamedElement
getName
in interface NamedElement
getName
in class ParameterDescription.AbstractParameterDescription
Copyright © 2014–2015. All rights reserved.