All Downloads are FREE. Search and download functionalities are using the official Maven repository.

macros.common.ConstructorDefinitionMacro.ftl Maven / Gradle / Ivy

<#macro content shape>

/**
 * Default constructor for ${shape.shapeName} object. Callers should use the setter or fluent setter (with...) methods to
 * initialize the object after creating it.
 */
public ${shape.shapeName}() { }

<#list shape.additionalConstructors as constructor>

    ${constructor.documentation}
    public ${shape.shapeName}(${constructor.argumentsDeclaration}) {
    <#list constructor.arguments as argument>
        <#local member = shape.getMemberByVariableName(argument.name) />
        ${member.setterMethodName}(${argument.name}<#if argument.isEnumArg>.toString());
    
    }







© 2015 - 2025 Weber Informatics LLC | Privacy Policy