Package org.jvnet.jaxb.plugin.fluent_api
Class FluentMethodInfo
- java.lang.Object
-
- org.jvnet.jaxb.plugin.fluent_api.FluentMethodInfo
-
public class FluentMethodInfo extends Object
Information used to generate a fluent API method.- Author:
- Hanson Char
-
-
Constructor Summary
Constructors Constructor Description FluentMethodInfo(com.sun.codemodel.JMethod jmethod, FluentMethodType fluentMethodType, boolean isOverride)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateFluentMethod(com.sun.codemodel.JDefinedClass implClass)Creates a fluent API method in the given class.com.sun.codemodel.JMethodgetJmethod()Returns the original method for which a fluent API method will be generated.booleanisOverride()Returns true if the fluent API method is one overriding a parent method.
-
-
-
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:
trueif 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
-
-