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.TypeSubstitutingNamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeNameModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumerationNAME_PREFIXEMPTY_NAME, NO_NAMEEMPTY_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. 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.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 internalName 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, toStringisAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatileclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetInternalNamegetActualNameisMandatedisFinal, isSyntheticasTokenpublic 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()
ParameterDescriptiongetType in interface ParameterDescriptionpublic MethodDescription.InGenericShape getDeclaringMethod()
ParameterDescriptiongetDeclaringMethod in interface ParameterDescriptiongetDeclaringMethod in interface ParameterDescription.InGenericShapepublic int getIndex()
ParameterDescriptiongetIndex in interface ParameterDescriptionpublic boolean isNamed()
NamedElement.WithOptionalNametrue if this element has an explicit name.isNamed in interface NamedElement.WithOptionalNametrue if this element has an explicit name.public boolean hasModifiers()
ParameterDescriptionhasModifiers in interface ParameterDescriptiontrue if this parameter defines explicit modifiers.public int getOffset()
ParameterDescriptiongetOffset in interface ParameterDescriptiongetOffset in class ParameterDescription.AbstractBasepublic String getName()
NamedElement.WithRuntimeNamegetName in interface NamedElement.WithRuntimeNamegetName in class ParameterDescription.AbstractBasepublic int getModifiers()
ModifierReviewablegetModifiers in interface ModifierReviewablegetModifiers in class ParameterDescription.AbstractBasepublic AnnotationList getDeclaredAnnotations()
AnnotatedCodeElementgetDeclaredAnnotations in interface AnnotatedCodeElementpublic ParameterDescription.InDefinedShape asDefined()
ByteCodeElement.TypeDependantasDefined in interface ByteCodeElement.TypeDependant<ParameterDescription.InDefinedShape,ParameterDescription.Token>Copyright © 2014–2016. All rights reserved.