Class AccessorNamingUtils

java.lang.Object
org.mapstruct.ap.internal.util.AccessorNamingUtils

public final class AccessorNamingUtils extends Object
Utils for working with the AccessorNamingStrategy.
Author:
Filip Hrisafov
  • Constructor Details

  • Method Details

    • isGetterMethod

      public boolean isGetterMethod(ExecutableElement executable)
    • isPresenceCheckMethod

      public boolean isPresenceCheckMethod(ExecutableElement executable)
    • isSetterMethod

      public boolean isSetterMethod(ExecutableElement executable)
    • isAdderMethod

      public boolean isAdderMethod(ExecutableElement executable)
    • getPropertyName

      public String getPropertyName(ExecutableElement executable)
    • getElementNameForAdder

      public String getElementNameForAdder(Accessor adderMethod)
      Parameters:
      adderMethod - the adder method
      Returns:
      the 'element name' to which an adder method applies. If. e.g. an adder method is named addChild(Child v), the element name would be 'Child'.