public static class ParameterDescription.Latent extends ParameterDescription.InDefinedShape.AbstractBase
ParameterDescription.InDefinedShape.AbstractBase
ParameterDescription.ForLoadedParameter<T extends AccessibleObject>, ParameterDescription.InDefinedShape, ParameterDescription.InGenericShape, ParameterDescription.Latent, ParameterDescription.Token, ParameterDescription.TypeSubstituting
AnnotationSource.Empty, AnnotationSource.Explicit
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 |
---|
Latent(MethodDescription.InDefinedShape declaringMethod,
ParameterDescription.Token token,
int index,
int offset)
Creates a latent parameter description.
|
Latent(MethodDescription.InDefinedShape declaringMethod,
TypeDescription.Generic parameterType,
int index,
int offset)
Creates a new latent parameter descriptions for a parameter without explicit meta data or annotations.
|
Latent(MethodDescription.InDefinedShape declaringMethod,
TypeDescription.Generic parameterType,
List<? extends AnnotationDescription> declaredAnnotations,
String name,
Integer modifiers,
int index,
int offset)
Creates a latent parameter description.
|
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.
|
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. |
asDefined
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 Latent(MethodDescription.InDefinedShape declaringMethod, ParameterDescription.Token token, int index, int offset)
declaringMethod
- The method that is declaring the parameter.token
- The token describing the shape of the parameter.index
- The index of the parameter.offset
- The parameter's offset in the local method variables array.public Latent(MethodDescription.InDefinedShape declaringMethod, TypeDescription.Generic parameterType, int index, int offset)
declaringMethod
- The method declaring this parameter.parameterType
- The type of the parameter.index
- The index of the parameter.offset
- The offset of the parameter.public Latent(MethodDescription.InDefinedShape declaringMethod, TypeDescription.Generic parameterType, List<? extends AnnotationDescription> declaredAnnotations, String name, Integer modifiers, int index, int offset)
declaringMethod
- The method that is declaring the parameter.parameterType
- The parameter's type.declaredAnnotations
- The annotations of the parameter.name
- The name of the parameter or null
if no name is explicitly defined.modifiers
- The modifiers of the parameter or null
if no modifiers are explicitly defined.index
- The index of the parameter.offset
- The parameter's offset in the local method variables array.public TypeDescription.Generic getType()
public MethodDescription.InDefinedShape getDeclaringMethod()
public int getIndex()
public int getOffset()
getOffset
in interface ParameterDescription
getOffset
in class ParameterDescription.AbstractBase
public boolean isNamed()
true
if this element has an explicit name.true
if this element has an explicit name.public boolean hasModifiers()
true
if this parameter defines explicit modifiers.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()
Copyright © 2014–2019. All rights reserved.