Class ProtobufLiteBuilderProvider

  • All Implemented Interfaces:
    org.mapstruct.ap.spi.BuilderProvider

    public class ProtobufLiteBuilderProvider
    extends org.mapstruct.ap.spi.DefaultBuilderProvider
    Detect builder methods for protobuf lite generated classes.

    Protobuf lite builders are not detected as such by the DefaultBuilderProvider because the return type is not an explicit match for the desired TypeElement. Relying instead on known name of builder method and superclass of return type.

    • Constructor Detail

      • ProtobufLiteBuilderProvider

        public ProtobufLiteBuilderProvider()
    • Method Detail

      • isBuildMethod

        protected boolean isBuildMethod​(ExecutableElement buildMethod,
                                        TypeElement typeElement)
        Overrides:
        isBuildMethod in class org.mapstruct.ap.spi.DefaultBuilderProvider