Class ProtobufAccessorNamingStrategy

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

    public class ProtobufAccessorNamingStrategy
    extends org.mapstruct.ap.spi.DefaultAccessorNamingStrategy
    Author:
    Arne Seime
    • Field Detail

      • INTERNAL_METHODS

        protected static final Set<String> INTERNAL_METHODS
      • INTERNAL_SPECIAL_METHOD_ENDINGS

        protected static final List<String> INTERNAL_SPECIAL_METHOD_ENDINGS
      • INTERNAL_SPECIAL_METHOD_BEGINNINGS

        protected static final List<String> INTERNAL_SPECIAL_METHOD_BEGINNINGS
      • protobufMesageOrBuilderType

        protected TypeMirror protobufMesageOrBuilderType
    • Constructor Detail

      • ProtobufAccessorNamingStrategy

        public ProtobufAccessorNamingStrategy()
    • Method Detail

      • init

        public void init​(org.mapstruct.ap.spi.MapStructProcessingEnvironment processingEnvironment)
        Specified by:
        init in interface org.mapstruct.ap.spi.AccessorNamingStrategy
        Overrides:
        init in class org.mapstruct.ap.spi.DefaultAccessorNamingStrategy
      • isGetterMethod

        public boolean isGetterMethod​(ExecutableElement method)
        Overrides:
        isGetterMethod in class org.mapstruct.ap.spi.DefaultAccessorNamingStrategy
      • isSetterMethod

        public boolean isSetterMethod​(ExecutableElement method)
        Overrides:
        isSetterMethod in class org.mapstruct.ap.spi.DefaultAccessorNamingStrategy
      • isFluentSetter

        protected boolean isFluentSetter​(ExecutableElement method)
        Overrides:
        isFluentSetter in class org.mapstruct.ap.spi.DefaultAccessorNamingStrategy
      • isAdderMethod

        public boolean isAdderMethod​(ExecutableElement method)
        Overrides:
        isAdderMethod in class org.mapstruct.ap.spi.DefaultAccessorNamingStrategy
      • isPresenceCheckMethod

        public boolean isPresenceCheckMethod​(ExecutableElement method)
        Overrides:
        isPresenceCheckMethod in class org.mapstruct.ap.spi.DefaultAccessorNamingStrategy
      • getElementName

        public String getElementName​(ExecutableElement adderMethod)
        Specified by:
        getElementName in interface org.mapstruct.ap.spi.AccessorNamingStrategy
        Overrides:
        getElementName in class org.mapstruct.ap.spi.DefaultAccessorNamingStrategy
      • getPropertyName

        public String getPropertyName​(ExecutableElement getterOrSetterMethod)
        Specified by:
        getPropertyName in interface org.mapstruct.ap.spi.AccessorNamingStrategy
        Overrides:
        getPropertyName in class org.mapstruct.ap.spi.DefaultAccessorNamingStrategy