Package org.jvnet.jaxb.plugin.fluent_api
Class FluentMethodInfo
java.lang.Object
org.jvnet.jaxb.plugin.fluent_api.FluentMethodInfo
Information used to generate a fluent API method.
- Author:
- Hanson Char
-
Constructor Summary
ConstructorsConstructorDescriptionFluentMethodInfo(com.sun.codemodel.JMethod jmethod, FluentMethodType fluentMethodType, boolean isOverride) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateFluentMethod(com.sun.codemodel.JDefinedClass implClass) Creates a fluent API method in the given class.com.sun.codemodel.JMethodReturns the original method for which a fluent API method will be generated.booleanReturns true if the fluent API method is one overriding a parent method.
-
Constructor Details
-
FluentMethodInfo
public FluentMethodInfo(com.sun.codemodel.JMethod jmethod, FluentMethodType fluentMethodType, boolean isOverride)
-
-
Method Details
-
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
-