Interface ParameterDescription
- All Superinterfaces:
AnnotationSource, ByteCodeElement.TypeDependant<ParameterDescription.InDefinedShape, ParameterDescription.Token>, ModifierReviewable, ModifierReviewable.ForParameterDescription, ModifierReviewable.OfMandatable, NamedElement, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
- All Known Subinterfaces:
ParameterDescription.InDefinedShape, ParameterDescription.InGenericShape
- All Known Implementing Classes:
ParameterDescription.AbstractBase, ParameterDescription.ForLoadedParameter, ParameterDescription.ForLoadedParameter.OfConstructor, ParameterDescription.ForLoadedParameter.OfLegacyVmConstructor, ParameterDescription.ForLoadedParameter.OfLegacyVmMethod, ParameterDescription.ForLoadedParameter.OfMethod, ParameterDescription.InDefinedShape.AbstractBase, ParameterDescription.Latent, ParameterDescription.TypeSubstituting, Transformer.ForMethod.TransformedMethod.TransformedParameter, TypePool.Default.LazyTypeDescription.LazyMethodDescription.LazyParameterDescription
public interface ParameterDescription
extends AnnotationSource, NamedElement.WithRuntimeName, NamedElement.WithOptionalName, ModifierReviewable.ForParameterDescription, ByteCodeElement.TypeDependant<ParameterDescription.InDefinedShape, ParameterDescription.Token>
Description of the parameter of a Java method or constructor.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classA base implementation of a method parameter description.static classDescription of a loaded parameter with support for the information exposed byjava.lang.reflect.Parameter.static interfaceRepresents a parameter in its defined shape, i.e.static interfaceRepresents a parameter description in its generic shape, i.e.static classA latent description of a parameter that is not attached to a method or constructor.static classA token representing a parameter's properties detached from a type.static classA parameter description that represents a given parameter but with a substituted parameter type.Nested classes/interfaces inherited from interface AnnotationSource
AnnotationSource.Empty, AnnotationSource.ExplicitNested classes/interfaces inherited from interface ModifierReviewable
ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForModuleDescription, ModifierReviewable.ForModuleRequirement, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, ModifierReviewable.OfMandatableNested classes/interfaces inherited from interface NamedElement
NamedElement.WithDescriptor, NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeName -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe prefix for names of an unnamed parameter.Fields inherited from interface ModifierReviewable
EMPTY_MASKFields inherited from interface NamedElement
EMPTY_NAME, NO_NAME -
Method Summary
Modifier and TypeMethodDescriptionReturns the method that declares this parameter.intgetIndex()Returns this parameter's index.intReturns the offset to the parameter value within the local method variable.getType()Returns the type of this parameter.booleanChecks if this parameter has an explicit modifier.Methods inherited from interface AnnotationSource
getDeclaredAnnotationsMethods inherited from interface ByteCodeElement.TypeDependant
asDefined, asTokenMethods inherited from interface ModifierReviewable
getModifiers, getSyntheticState, isFinal, isSyntheticMethods inherited from interface ModifierReviewable.ForParameterDescription
getParameterManifestation, getProvisioningStateMethods inherited from interface ModifierReviewable.OfMandatable
getMandate, isMandatedMethods inherited from interface NamedElement
getActualNameMethods inherited from interface NamedElement.WithOptionalName
isNamedMethods inherited from interface NamedElement.WithRuntimeName
getInternalName, getName
-
Field Details
-
NAME_PREFIX
-
-
Method Details
-
getType
TypeDescription.Generic getType()Returns the type of this parameter.- Returns:
- The type of this parameter.
-
getDeclaringMethod
MethodDescription getDeclaringMethod()Returns the method that declares this parameter.- Returns:
- The method that declares this parameter.
-
getIndex
int getIndex()Returns this parameter's index.- Returns:
- The index of this parameter.
-
hasModifiers
boolean hasModifiers()Checks if this parameter has an explicit modifier. A parameter without a modifier is simply treated as if it had a modifier of zero.- Returns:
trueif this parameter defines explicit modifiers.
-
getOffset
int getOffset()Returns the offset to the parameter value within the local method variable.- Returns:
- The offset of this parameter's value.
-