Interface DynamicType.Builder.RecordComponentDefinition<S>

    • Method Detail

      • annotateRecordComponent

        DynamicType.Builder.RecordComponentDefinition.Optional<S> annotateRecordComponent​(java.lang.annotation.Annotation... annotation)
        Annotates the record component with the supplied annotations.
        Parameters:
        annotation - The annotations to declare.
        Returns:
        A new builder that is equal to this builder but where the defined component declares the supplied annotations.
      • annotateRecordComponent

        DynamicType.Builder.RecordComponentDefinition.Optional<S> annotateRecordComponent​(java.util.List<? extends java.lang.annotation.Annotation> annotations)
        Annotates the record component with the supplied annotations.
        Parameters:
        annotations - The annotations to declare.
        Returns:
        A new builder that is equal to this builder but where the defined component declares the supplied annotations.
      • annotateRecordComponent

        DynamicType.Builder.RecordComponentDefinition.Optional<S> annotateRecordComponent​(AnnotationDescription... annotation)
        Annotates the record component with the supplied annotations.
        Parameters:
        annotation - The annotations to declare.
        Returns:
        A new builder that is equal to this builder but where the defined component declares the supplied annotations.
      • annotateRecordComponent

        DynamicType.Builder.RecordComponentDefinition.Optional<S> annotateRecordComponent​(java.util.Collection<? extends AnnotationDescription> annotations)
        Annotates the record component with the supplied annotations.
        Parameters:
        annotations - The annotations to declare.
        Returns:
        A new builder that is equal to this builder but where the defined component declares the supplied annotations.
      • attribute

        DynamicType.Builder.RecordComponentDefinition.Optional<S> attribute​(RecordComponentAttributeAppender.Factory recordComponentAttributeAppenderFactory)
        Applies the supplied record component attribute appender factory onto the previously defined record component.
        Parameters:
        recordComponentAttributeAppenderFactory - The record component attribute appender factory that should be applied on the previously defined or matched method.
        Returns:
        A new builder that is equal to this builder but with the supplied record component attribute appender factory applied to the previously defined record component.