Class Transformer.ForMethod.TransformedMethod.TransformedParameter

    • Constructor Detail

      • 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 Detail

      • getDeclaringMethod

        public MethodDescription getDeclaringMethod()
        Description copied from interface: ParameterDescription
        Returns the method that declares this parameter.
        Returns:
        The method that declares this parameter.
      • getIndex

        public int getIndex()
        Description copied from interface: ParameterDescription
        Returns this parameter's index.
        Returns:
        The index of this parameter.
      • isNamed

        public boolean isNamed()
        Description copied from interface: NamedElement.WithOptionalName
        Returns true if this element has an explicit name.
        Returns:
        true if this element has an explicit name.
      • hasModifiers

        public boolean hasModifiers()
        Description copied from interface: ParameterDescription
        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.
      • getDeclaredAnnotations

        public AnnotationList getDeclaredAnnotations()
        Description copied from interface: AnnotationSource
        Returns a list of annotations that are declared by this instance.
        Returns:
        A list of declared annotations.