Interface ParameterDescription

All Superinterfaces:
AnnotationSource, ByteCodeElement.TypeDependant<ParameterDescription.InDefinedShape,ParameterDescription.Token>, ModifierReviewable, ModifierReviewable.ForParameterDescription, 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

Description of the parameter of a Java method or constructor.
  • Field Details

  • Method Details

    • 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:
      true if 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.