protected static class ParameterDescription.ForLoadedParameter.OfLegacyVmConstructor extends ParameterDescription.InDefinedShape.AbstractBase
java.lang.reflect.Parameter
is not available.ParameterDescription.InDefinedShape.AbstractBase
ParameterDescription.ForLoadedParameter<T>, 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 |
OfLegacyVmConstructor(Constructor<?> constructor,
int index,
Class<?>[] parameterType,
Annotation[][] parameterAnnotation)
Creates a legacy representation of a method's parameter.
|
Modifier and Type | Method and Description |
---|---|
AnnotationList |
getDeclaredAnnotations()
Returns a list of annotations that are declared by this instance.
|
MethodDescription.InDefinedShape |
getDeclaringMethod()
Returns the method that declares this parameter.
|
int |
getIndex()
Returns this parameter's index.
|
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.
|
asDefined
asToken, equals, getInternalName, getModifiers, getName, 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
getOffset
getInternalName, getName
getSourceCodeName
getModifiers, isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
asToken
protected OfLegacyVmConstructor(Constructor<?> constructor, int index, Class<?>[] parameterType, Annotation[][] parameterAnnotation)
constructor
- The constructor that declares this parameter.index
- The index of this parameter.parameterType
- The type erasures of the represented method.parameterAnnotation
- An array of all parameter annotations of the represented method.public TypeDescription.Generic getType()
ParameterDescription
public MethodDescription.InDefinedShape 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
Copyright © 2014–2016. All rights reserved.