Class BeanMethod

    • Constructor Detail

      • BeanMethod

        public BeanMethod​(Method method,
                          String propertyName)
        The constructor.
        Parameters:
        method - the method.
        propertyName - the property name.
    • Method Detail

      • writeParameters

        protected void writeParameters​(Writer writer)
                                throws IOException
        Writes the method parameters.
        Parameters:
        writer - the Writer.
        Throws:
        IOException - on error.
      • writeBody

        protected abstract void writeBody​(Writer writer)
                                   throws IOException
        Writes the method body (implementation).
        Parameters:
        writer - the Writer.
        Throws:
        IOException - on error.
      • getPropertyName

        public String getPropertyName()
        Returns:
        property the name of the property handled by this method.
      • getParameterName

        public String getParameterName()
        Returns:
        property the name of the property handled by this method.
      • isSpecialized

        public boolean isSpecialized​(BeanMethod other)
        Parameters:
        other - the BeanMethod to compare.
        Returns:
        true if this BeanMethod is more specialized than the given one (e.g. it overrides the given method), false otherwise.