Class SetterFactory
- java.lang.Object
-
- net.anwiba.tools.generator.java.bean.factory.AbstractSourceFactory
-
- net.anwiba.tools.generator.java.bean.factory.SetterFactory
-
public class SetterFactory extends AbstractSourceFactory
-
-
Constructor Summary
Constructors Constructor Description SetterFactory(com.sun.codemodel.JCodeModel codeModel, EnsurePredicateFactory ensurePredicateFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.sun.codemodel.JVarcreate(com.sun.codemodel.JDefinedClass instance, boolean returnInstance, com.sun.codemodel.JFieldVar field, java.lang.String name, boolean isImutable, boolean isNullable, boolean isArrayNullable, boolean isCollectionNullable, java.util.List<Annotation> annotations, IOptional<java.lang.String,java.lang.RuntimeException> comment)voidcreate(com.sun.codemodel.JDefinedClass instance, com.sun.codemodel.JFieldVar field, java.lang.String name, boolean isImutable, boolean isNullable, java.util.List<Annotation> annotations, IOptional<java.lang.String,java.lang.RuntimeException> comment, com.sun.codemodel.JType nameType, java.lang.String nameVar, com.sun.codemodel.JType valueType, java.lang.String value)-
Methods inherited from class net.anwiba.tools.generator.java.bean.factory.AbstractSourceFactory
_boolean, _class, _class, _class, _Class, _classByNames, _String, _type, _void, addTo, annotate, annotate, format, getCodeModel
-
-
-
-
Constructor Detail
-
SetterFactory
public SetterFactory(com.sun.codemodel.JCodeModel codeModel, EnsurePredicateFactory ensurePredicateFactory)
-
-
Method Detail
-
create
public void create(com.sun.codemodel.JDefinedClass instance, com.sun.codemodel.JFieldVar field, java.lang.String name, boolean isImutable, boolean isNullable, java.util.List<Annotation> annotations, IOptional<java.lang.String,java.lang.RuntimeException> comment, com.sun.codemodel.JType nameType, java.lang.String nameVar, com.sun.codemodel.JType valueType, java.lang.String value) throws CreationException- Throws:
CreationException
-
create
public com.sun.codemodel.JVar create(com.sun.codemodel.JDefinedClass instance, boolean returnInstance, com.sun.codemodel.JFieldVar field, java.lang.String name, boolean isImutable, boolean isNullable, boolean isArrayNullable, boolean isCollectionNullable, java.util.List<Annotation> annotations, IOptional<java.lang.String,java.lang.RuntimeException> comment) throws CreationException- Throws:
CreationException
-
-