public static class ParameterDescription.TypeSubstituting extends ParameterDescription.AbstractBase implements ParameterDescription.InGenericShape
A parameter description that represents a given parameter but with a substituted parameter type.
Note: The supplied visitor must assure to not substitute
ParameterDescription.AbstractBase, ParameterDescription.ForLoadedParameter<T extends AccessibleObject>, ParameterDescription.InDefinedShape, ParameterDescription.InGenericShape, ParameterDescription.Latent, ParameterDescription.Token, ParameterDescription.TypeSubstituting
AnnotationSource.Empty, AnnotationSource.Explicit
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration
NAME_PREFIX
EMPTY_NAME, NO_NAME
EMPTY_MASK
Constructor and Description |
---|
TypeSubstituting(MethodDescription.InGenericShape declaringMethod,
ParameterDescription parameterDescription,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a new type substituting parameter.
|
Modifier and Type | Method and Description |
---|---|
ParameterDescription.InDefinedShape |
asDefined()
Returns this type dependant in its defined shape, i.e.
|
AnnotationList |
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
MethodDescription.InGenericShape |
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 binary name of this byte code element.
|
int |
getOffset()
Returns the offset to the parameter value within the local method variable.
|
TypeDescription.Generic |
getType()
Returns the type of this parameter.
|
boolean |
hasModifiers()
Checks if this parameter has an explicit modifier.
|
boolean |
isNamed()
Returns
true if this element has an explicit name. |
asToken, equals, getActualName, getInternalName, hashCode, toString
getEnumerationState, getFieldManifestation, getFieldPersistence, getMethodManifestation, getMethodStrictness, getOwnership, getParameterManifestation, getProvisioningState, getSynchronizationState, getSyntheticState, getTypeManifestation, getVisibility, isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getInternalName
getActualName
getParameterManifestation, getProvisioningState, isMandated
getSyntheticState, isFinal, isSynthetic
asToken
public TypeSubstituting(MethodDescription.InGenericShape declaringMethod, ParameterDescription parameterDescription, TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
declaringMethod
- The method that declares this type-substituted parameter.parameterDescription
- The represented parameter.visitor
- A visitor that is applied to the parameter type.public TypeDescription.Generic getType()
getType
in interface ParameterDescription
public MethodDescription.InGenericShape getDeclaringMethod()
getDeclaringMethod
in interface ParameterDescription
getDeclaringMethod
in interface ParameterDescription.InGenericShape
public int getIndex()
getIndex
in interface ParameterDescription
public boolean isNamed()
true
if this element has an explicit name.isNamed
in interface NamedElement.WithOptionalName
true
if this element has an explicit name.public boolean hasModifiers()
hasModifiers
in interface ParameterDescription
true
if this parameter defines explicit modifiers.public int getOffset()
getOffset
in interface ParameterDescription
getOffset
in class ParameterDescription.AbstractBase
public String getName()
getName
in interface NamedElement.WithRuntimeName
getName
in class ParameterDescription.AbstractBase
public int getModifiers()
getModifiers
in interface ModifierReviewable
getModifiers
in class ParameterDescription.AbstractBase
public AnnotationList getDeclaredAnnotations()
getDeclaredAnnotations
in interface AnnotationSource
public ParameterDescription.InDefinedShape asDefined()
asDefined
in interface ByteCodeElement.TypeDependant<ParameterDescription.InDefinedShape,ParameterDescription.Token>
Copyright © 2014–2023. All rights reserved.