Class DynamicType.Builder.MethodDefinition.AbstractBase<U>

    • Constructor Detail

      • AbstractBase

        public AbstractBase()
    • Method Detail

      • annotateMethod

        public DynamicType.Builder.MethodDefinition<U> annotateMethod​(java.lang.annotation.Annotation... annotation)
        Annotates the previously defined or matched method with the supplied annotations.
        Specified by:
        annotateMethod in interface DynamicType.Builder.MethodDefinition<U>
        Parameters:
        annotation - The annotations to declare on the previously defined or matched method.
        Returns:
        A new builder that is equal to this builder but with the given annotations declared on the previously defined or matched method.
      • annotateMethod

        public DynamicType.Builder.MethodDefinition<U> annotateMethod​(java.util.List<? extends java.lang.annotation.Annotation> annotations)
        Annotates the previously defined or matched method with the supplied annotations.
        Specified by:
        annotateMethod in interface DynamicType.Builder.MethodDefinition<U>
        Parameters:
        annotations - The annotations to declare on the previously defined or matched method.
        Returns:
        A new builder that is equal to this builder but with the given annotations declared on the previously defined or matched method.
      • annotateParameter

        public DynamicType.Builder.MethodDefinition<U> annotateParameter​(int index,
                                                                         java.lang.annotation.Annotation... annotation)
        Annotates the parameter of the given index of the previously defined or matched method with the supplied annotations.
        Specified by:
        annotateParameter in interface DynamicType.Builder.MethodDefinition<U>
        Parameters:
        index - The parameter's index.
        annotation - The annotations to declare on the previously defined or matched method.
        Returns:
        A new builder that is equal to this builder but with the given annotations declared on the previously defined or matched method's parameter of the given index.
      • annotateParameter

        public DynamicType.Builder.MethodDefinition<U> annotateParameter​(int index,
                                                                         java.util.List<? extends java.lang.annotation.Annotation> annotations)
        Annotates the parameter of the given index of the previously defined or matched method with the supplied annotations.
        Specified by:
        annotateParameter in interface DynamicType.Builder.MethodDefinition<U>
        Parameters:
        index - The parameter's index.
        annotations - The annotations to declare on the previously defined or matched method.
        Returns:
        A new builder that is equal to this builder but with the given annotations declared on the previously defined or matched method's parameter of the given index.
      • annotateParameter

        public DynamicType.Builder.MethodDefinition<U> annotateParameter​(int index,
                                                                         AnnotationDescription... annotation)
        Annotates the parameter of the given index of the previously defined or matched method with the supplied annotations.
        Specified by:
        annotateParameter in interface DynamicType.Builder.MethodDefinition<U>
        Parameters:
        index - The parameter's index.
        annotation - The annotations to declare on the previously defined or matched method.
        Returns:
        A new builder that is equal to this builder but with the given annotations declared on the previously defined or matched method's parameter of the given index.