protected class MethodTransformer.Simple.TransformedMethod.TransformedParameter extends ParameterDescription.AbstractBase
ParameterDescription.AbstractBase, ParameterDescription.ForLoadedParameter<T extends AccessibleObject>, ParameterDescription.InDefinedShape, ParameterDescription.InGenericShape, ParameterDescription.Latent, ParameterDescription.Token, ParameterDescription.TypeSubstituting
NamedElement.WithGenericName, NamedElement.WithRuntimeName
NAME_PREFIX
EMPTY_NAME, NO_NAME
EMPTY_MASK
Modifier | Constructor and Description |
---|---|
protected |
TransformedParameter(int index,
ParameterDescription.Token parameterToken)
Creates a transformed parameter.
|
Modifier and Type | Method and Description |
---|---|
ParameterDescription.InDefinedShape |
asDefined()
Returns this type dependant in its defined shape, i.e. the form it is declared in and without its type variable's resolved.
|
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.Generic |
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.
|
asToken, 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 TransformedParameter(int index, ParameterDescription.Token parameterToken)
index
- The index of the transformed method.parameterToken
- The token representing the transformed method parameter's properties.public TypeDescription.Generic getType()
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 String getName()
NamedElement.WithRuntimeName
getName
in interface NamedElement.WithRuntimeName
getName
in class ParameterDescription.AbstractBase
public int getModifiers()
ModifierReviewable
getModifiers
in interface ModifierReviewable
getModifiers
in class ParameterDescription.AbstractBase
public AnnotationList getDeclaredAnnotations()
AnnotatedCodeElement
public ParameterDescription.InDefinedShape asDefined()
ByteCodeElement.TypeDependant
Copyright © 2014–2016. All rights reserved.