Class Transformer.ForMethod.TransformedMethod.TransformedParameter

All Implemented Interfaces:
AnnotationSource, ByteCodeElement.TypeDependant<ParameterDescription.InDefinedShape,ParameterDescription.Token>, ParameterDescription, ModifierReviewable, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, NamedElement, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
Enclosing class:
Transformer.ForMethod.TransformedMethod

protected class Transformer.ForMethod.TransformedMethod.TransformedParameter extends ParameterDescription.AbstractBase
A transformed method's parameter.
  • Field Details

    • index

      private final int index
      The index of the transformed method.
    • parameterToken

      private final ParameterDescription.Token parameterToken
      The token representing the transformed method parameter's properties.
  • Constructor Details

    • TransformedParameter

      protected TransformedParameter(int index, ParameterDescription.Token parameterToken)
      Creates a transformed parameter.
      Parameters:
      index - The index of the transformed method.
      parameterToken - The token representing the transformed method parameter's properties.
  • Method Details

    • getType

      public TypeDescription.Generic getType()
      Returns the type of this parameter.
      Returns:
      The type of this parameter.
    • getDeclaringMethod

      public MethodDescription getDeclaringMethod()
      Returns the method that declares this parameter.
      Returns:
      The method that declares this parameter.
    • getIndex

      public int getIndex()
      Returns this parameter's index.
      Returns:
      The index of this parameter.
    • isNamed

      public boolean isNamed()
      Returns true if this element has an explicit name.
      Returns:
      true if this element has an explicit name.
    • hasModifiers

      public 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.
    • getName

      public String getName()
      Returns the binary name of this byte code element. If no well-defined internal name is known for this element, the actual name is returned.
      Specified by:
      getName in interface NamedElement.WithRuntimeName
      Overrides:
      getName in class ParameterDescription.AbstractBase
      Returns:
      The binary ame of this byte code element as visible from within a running Java application.
    • getModifiers

      public int getModifiers()
      Returns the modifier that is described by this object.
      Specified by:
      getModifiers in interface ModifierReviewable
      Overrides:
      getModifiers in class ParameterDescription.AbstractBase
      Returns:
      The modifier that is described by this object.
    • getDeclaredAnnotations

      public AnnotationList getDeclaredAnnotations()
      Returns a list of annotations that are declared by this instance.
      Returns:
      A list of declared annotations.
    • asDefined

      Returns this type dependant in its defined shape, i.e. the form it is declared in and without its type variable's resolved.
      Returns:
      This type dependant in its defined shape.