/** * Creates a class constructor. * * @param clazz the class to create the constructor for * @param fields fields to be initialized by the constructor * @param constructor inherited constructor to be called * @return the constructor * @since 0.20 */ public MethodTree createConstructor(TypeElement clazz, Iterable<? extends VariableElement> fields, ExecutableElement constructor) { return createConstructor(clazz, fields, constructor, false); }
/** * Creates a class default constructor. Fields and the inherited constructor * are initialized/called with default values. * * @param clazz the class to create the constructor for * @param fields fields to be initialized by the constructor * @param constructor inherited constructor to be called * @return the constructor * @since 0.126 */ public MethodTree createDefaultConstructor(TypeElement clazz, Iterable<? extends VariableElement> fields, ExecutableElement constructor) { return createConstructor(clazz, fields, constructor, true); }