Package no.entur.mapstruct.spi.protobuf
Class ProtobufAccessorNamingStrategy
- java.lang.Object
-
- org.mapstruct.ap.spi.DefaultAccessorNamingStrategy
-
- no.entur.mapstruct.spi.protobuf.ProtobufAccessorNamingStrategy
-
- All Implemented Interfaces:
org.mapstruct.ap.spi.AccessorNamingStrategy
public class ProtobufAccessorNamingStrategy extends org.mapstruct.ap.spi.DefaultAccessorNamingStrategy- Author:
- Arne Seime
-
-
Field Summary
Fields Modifier and Type Field Description static StringBUILDER_LIST_SUFFIXprotected static Set<String>INTERNAL_METHODSprotected static List<String>INTERNAL_SPECIAL_METHOD_BEGINNINGSprotected static List<String>INTERNAL_SPECIAL_METHOD_ENDINGSstatic StringPROTOBUF_GENERATED_MESSAGEstatic StringPROTOBUF_MESSAGE_OR_BUILDERstatic StringPROTOBUF_STRING_LIST_TYPEprotected TypeMirrorprotobufMesageOrBuilderType
-
Constructor Summary
Constructors Constructor Description ProtobufAccessorNamingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetElementName(ExecutableElement adderMethod)StringgetPropertyName(ExecutableElement getterOrSetterMethod)voidinit(org.mapstruct.ap.spi.MapStructProcessingEnvironment processingEnvironment)booleanisAdderMethod(ExecutableElement method)protected booleanisFluentSetter(ExecutableElement method)booleanisGetterMethod(ExecutableElement method)booleanisPresenceCheckMethod(ExecutableElement method)booleanisSetterMethod(ExecutableElement method)
-
-
-
Field Detail
-
PROTOBUF_STRING_LIST_TYPE
public static final String PROTOBUF_STRING_LIST_TYPE
- See Also:
- Constant Field Values
-
PROTOBUF_MESSAGE_OR_BUILDER
public static final String PROTOBUF_MESSAGE_OR_BUILDER
- See Also:
- Constant Field Values
-
PROTOBUF_GENERATED_MESSAGE
public static final String PROTOBUF_GENERATED_MESSAGE
- See Also:
- Constant Field Values
-
BUILDER_LIST_SUFFIX
public static final String BUILDER_LIST_SUFFIX
- See Also:
- Constant Field Values
-
INTERNAL_SPECIAL_METHOD_BEGINNINGS
protected static final List<String> INTERNAL_SPECIAL_METHOD_BEGINNINGS
-
protobufMesageOrBuilderType
protected TypeMirror protobufMesageOrBuilderType
-
-
Method Detail
-
init
public void init(org.mapstruct.ap.spi.MapStructProcessingEnvironment processingEnvironment)
- Specified by:
initin interfaceorg.mapstruct.ap.spi.AccessorNamingStrategy- Overrides:
initin classorg.mapstruct.ap.spi.DefaultAccessorNamingStrategy
-
isGetterMethod
public boolean isGetterMethod(ExecutableElement method)
- Overrides:
isGetterMethodin classorg.mapstruct.ap.spi.DefaultAccessorNamingStrategy
-
isSetterMethod
public boolean isSetterMethod(ExecutableElement method)
- Overrides:
isSetterMethodin classorg.mapstruct.ap.spi.DefaultAccessorNamingStrategy
-
isFluentSetter
protected boolean isFluentSetter(ExecutableElement method)
- Overrides:
isFluentSetterin classorg.mapstruct.ap.spi.DefaultAccessorNamingStrategy
-
isAdderMethod
public boolean isAdderMethod(ExecutableElement method)
- Overrides:
isAdderMethodin classorg.mapstruct.ap.spi.DefaultAccessorNamingStrategy
-
isPresenceCheckMethod
public boolean isPresenceCheckMethod(ExecutableElement method)
- Overrides:
isPresenceCheckMethodin classorg.mapstruct.ap.spi.DefaultAccessorNamingStrategy
-
getElementName
public String getElementName(ExecutableElement adderMethod)
- Specified by:
getElementNamein interfaceorg.mapstruct.ap.spi.AccessorNamingStrategy- Overrides:
getElementNamein classorg.mapstruct.ap.spi.DefaultAccessorNamingStrategy
-
getPropertyName
public String getPropertyName(ExecutableElement getterOrSetterMethod)
- Specified by:
getPropertyNamein interfaceorg.mapstruct.ap.spi.AccessorNamingStrategy- Overrides:
getPropertyNamein classorg.mapstruct.ap.spi.DefaultAccessorNamingStrategy
-
-