Class FluentMethodInfo


  • public class FluentMethodInfo
    extends Object
    Information used to generate a fluent API method.
    Author:
    Hanson Char
    • Constructor Detail

      • FluentMethodInfo

        public FluentMethodInfo​(com.sun.codemodel.JMethod jmethod,
                                FluentMethodType fluentMethodType,
                                boolean isOverride)
    • Method Detail

      • createFluentMethod

        public void createFluentMethod​(com.sun.codemodel.JDefinedClass implClass)
        Creates a fluent API method in the given class.
        Parameters:
        implClass - the class to create fluent-api
      • isOverride

        public boolean isOverride()
        Returns true if the fluent API method is one overriding a parent method.
        Returns:
        true if fluent api method is one overriding a parent method
      • getJmethod

        public com.sun.codemodel.JMethod getJmethod()
        Returns the original method for which a fluent API method will be generated.
        Returns:
        original JMethod for which a fluent-api method will be generated