public interface AccessorNamingStrategy
Modifier and Type | Method and Description |
---|---|
String |
getCollectionGetterName(String property)
Deprecated.
MapStuct will not call this method anymore. Use
getMethodType(ExecutableElement) to
determine the MethodType . When collections somehow need to be treated special, it should be done in
getMethodType(ExecutableElement) as well. In the future, this method will be removed. |
String |
getElementName(ExecutableElement adderMethod)
Returns the element name of the given adder method.
|
MethodType |
getMethodType(ExecutableElement method)
Returns the type of the given method.
|
String |
getPropertyName(ExecutableElement getterOrSetterMethod)
Returns the name of the property represented by the given getter or setter method.
|
MethodType getMethodType(ExecutableElement method)
method
- to be analyzed.String getPropertyName(ExecutableElement getterOrSetterMethod)
The default implementation will e.g. return "name" for public String getName()
or public void
setName(String name)
.
getterOrSetterMethod
- to be analyzed.String getElementName(ExecutableElement adderMethod)
The default implementation will e.g. return "item" for public void addItem(String item)
.
adderMethod
- to be getterOrSetterMethod.@Deprecated String getCollectionGetterName(String property)
getMethodType(ExecutableElement)
to
determine the MethodType
. When collections somehow need to be treated special, it should be done in
getMethodType(ExecutableElement)
as well. In the future, this method will be removed.The default implementation will e.g. return "getItems" for "items".
property
- to be getterOrSetterMethod.Copyright © 2012-2016 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.