Class MethodAttributeAppender.Explicit.Target.OnMethodParameter

    • Field Detail

      • parameterIndex

        private final int parameterIndex
        The index of the parameter to write the annotation to.
    • Constructor Detail

      • OnMethodParameter

        protected OnMethodParameter​(int parameterIndex)
        Creates a target for a method attribute appender for a method parameter of the given index.
        Parameters:
        parameterIndex - The index of the target parameter.
    • Method Detail

      • make

        public AnnotationAppender.Target make​(org.objectweb.asm.MethodVisitor methodVisitor,
                                              MethodDescription methodDescription)
        Materializes the target for a given creation process.
        Specified by:
        make in interface MethodAttributeAppender.Explicit.Target
        Parameters:
        methodVisitor - The method visitor to which the attributes that are represented by this attribute appender are written to.
        methodDescription - The description of the method for which the given method visitor creates an instrumentation for.
        Returns:
        The target of the annotation appender this target represents.