Class AccessorNamingUtils


  • public final class AccessorNamingUtils
    extends java.lang.Object
    Utils for working with the AccessorNamingStrategy.
    • Method Detail

      • isGetterMethod

        public boolean isGetterMethod​(javax.lang.model.element.ExecutableElement executable)
      • isPresenceCheckMethod

        public boolean isPresenceCheckMethod​(javax.lang.model.element.ExecutableElement executable)
      • isSetterMethod

        public boolean isSetterMethod​(javax.lang.model.element.ExecutableElement executable)
      • isAdderMethod

        public boolean isAdderMethod​(javax.lang.model.element.ExecutableElement executable)
      • getPropertyName

        public java.lang.String getPropertyName​(javax.lang.model.element.ExecutableElement executable)
      • getElementNameForAdder

        public java.lang.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'.
      • getQualifiedName

        private static java.lang.String getQualifiedName​(javax.lang.model.type.TypeMirror type)