/** * Add the given value to the internal template. */ public ParameterTemplate append(InputStream in) throws IOException { return append(new InputStreamReader(in)); }
/** * Return the generated code, or null if {@link #generateCode} has not * been called. */ public String getCode() { return (_code == null) ? null : _code.toString(); }
/** * Write the code to the specified {@link Writer}. */ public void writeCode(Writer out) throws IOException { if (_code == null) return; _code.write(out); }
ParameterTemplate templ; if (custom != null) { templ = new ParameterTemplate(); templ.append(custom); templ.setParameter("fieldName", fieldName); templ.setParameter("capFieldName", capFieldName); templ.setParameter("propertyName", propertyName); templ.setParameter("fieldType", fieldType); templ.setParameter("keyType", keyType); templ.setParameter("elementType", elementType); templ.setParameter("fieldValue", fieldValue); decs.append(templ.toString()); } else { if (fieldAccess) code.afterSection(); if (custom != null) { templ = new ParameterTemplate(); templ.append(custom); templ.setParameter("fieldName", fieldName); templ.setParameter("capFieldName", capFieldName); templ.setParameter("propertyName", propertyName); templ.setParameter("fieldType", fieldType); templ.setParameter("keyType", keyType); templ.setParameter("elementType", elementType); templ.setParameter("fieldValue", fieldValue); code.append(templ.toString()); } else {
_code = new ParameterTemplate(); String codeStr = getClassCode(); if (codeStr != null) { _code.append(codeStr); _code.setParameter("packageDec", packageDec); _code.setParameter("imports", imports); _code.setParameter("className", className); _code.setParameter("extendsDec", extendsDec); _code.setParameter("constructor", constructor); _code.setParameter("fieldDecs", fieldCode[0]); _code.setParameter("fieldCode", fieldCode[1]); } else _code.append(getClassCode(packageDec, imports, className, extendsName, constructor, fieldCode[0], fieldCode[1]));
ParameterTemplate templ; if (custom != null) { templ = new ParameterTemplate(); templ.append(custom); templ.setParameter("fieldName", fieldName); templ.setParameter("capFieldName", capFieldName); templ.setParameter("propertyName", propertyName); templ.setParameter("fieldType", fieldType); templ.setParameter("keyType", keyType); templ.setParameter("elementType", elementType); templ.setParameter("fieldValue", fieldValue); decs.append(templ.toString()); } else { if (fieldAccess) code.afterSection(); if (custom != null) { templ = new ParameterTemplate(); templ.append(custom); templ.setParameter("fieldName", fieldName); templ.setParameter("capFieldName", capFieldName); templ.setParameter("propertyName", propertyName); templ.setParameter("fieldType", fieldType); templ.setParameter("keyType", keyType); templ.setParameter("elementType", elementType); templ.setParameter("fieldValue", fieldValue); code.append(templ.toString()); } else {
_code = new ParameterTemplate(); String codeStr = getClassCode(); if (codeStr != null) { _code.append(codeStr); _code.setParameter("packageDec", packageDec); _code.setParameter("imports", imports); _code.setParameter("className", className); _code.setParameter("extendsDec", extendsDec); _code.setParameter("constructor", constructor); _code.setParameter("fieldDecs", fieldCode[0]); _code.setParameter("fieldCode", fieldCode[1]); } else _code.append(getClassCode(packageDec, imports, className, extendsName, constructor, fieldCode[0], fieldCode[1]));
ParameterTemplate templ; if (custom != null) { templ = new ParameterTemplate(); templ.append(custom); templ.setParameter("fieldName", fieldName); templ.setParameter("capFieldName", capFieldName); templ.setParameter("propertyName", propertyName); templ.setParameter("fieldType", fieldType); templ.setParameter("keyType", keyType); templ.setParameter("elementType", elementType); templ.setParameter("fieldValue", fieldValue); decs.append(templ.toString()); } else { if (fieldAccess) code.afterSection(); if (custom != null) { templ = new ParameterTemplate(); templ.append(custom); templ.setParameter("fieldName", fieldName); templ.setParameter("capFieldName", capFieldName); templ.setParameter("propertyName", propertyName); templ.setParameter("fieldType", fieldType); templ.setParameter("keyType", keyType); templ.setParameter("elementType", elementType); templ.setParameter("fieldValue", fieldValue); code.append(templ.toString()); } else {
_code = new ParameterTemplate(); String codeStr = getClassCode(); if (codeStr != null) { _code.append(codeStr); _code.setParameter("packageDec", packageDec); _code.setParameter("imports", imports); _code.setParameter("className", className); _code.setParameter("extendsDec", extendsDec); _code.setParameter("constructor", constructor); _code.setParameter("fieldDecs", fieldCode[0]); _code.setParameter("fieldCode", fieldCode[1]); } else _code.append(getClassCode(packageDec, imports, className, extendsName, constructor, fieldCode[0], fieldCode[1]));
/** * Write the code to the specified {@link Writer}. */ public void writeCode(Writer out) throws IOException { if (_code == null) return; _code.write(out); }
/** * Return the generated code, or null if {@link #generateCode} has not * been called. */ public String getCode() { return (_code == null) ? null : _code.toString(); }
/** * Add the given value to the internal template. */ public ParameterTemplate append(InputStream in) throws IOException { return append(new InputStreamReader(in)); }
ParameterTemplate templ; if (custom != null) { templ = new ParameterTemplate(); templ.append(custom); templ.setParameter("fieldName", fieldName); templ.setParameter("capFieldName", capFieldName); templ.setParameter("propertyName", propertyName); templ.setParameter("fieldType", fieldType); templ.setParameter("keyType", keyType); templ.setParameter("elementType", elementType); templ.setParameter("fieldValue", fieldValue); decs.append(templ.toString()); } else { if (fieldAccess) code.afterSection(); if (custom != null) { templ = new ParameterTemplate(); templ.append(custom); templ.setParameter("fieldName", fieldName); templ.setParameter("capFieldName", capFieldName); templ.setParameter("propertyName", propertyName); templ.setParameter("fieldType", fieldType); templ.setParameter("keyType", keyType); templ.setParameter("elementType", elementType); templ.setParameter("fieldValue", fieldValue); code.append(templ.toString()); } else {
_code = new ParameterTemplate(); String codeStr = getClassCode(); if (codeStr != null) { _code.append(codeStr); _code.setParameter("packageDec", packageDec); _code.setParameter("imports", imports); _code.setParameter("className", className); _code.setParameter("extendsDec", extendsDec); _code.setParameter("constructor", constructor); _code.setParameter("fieldDecs", fieldCode[0]); _code.setParameter("fieldCode", fieldCode[1]); } else _code.append(getClassCode(packageDec, imports, className, extendsName, constructor, fieldCode[0], fieldCode[1]));
/** * Write the code to the specified {@link Writer}. */ public void writeCode(Writer out) throws IOException { if (_code == null) return; _code.write(out); }
/** * Return the generated code, or null if {@link #generateCode} has not * been called. */ public String getCode() { return (_code == null) ? null : _code.toString(); }
/** * Add the given value to the internal template. */ public ParameterTemplate append(InputStream in) throws IOException { return append(new InputStreamReader(in)); }
ParameterTemplate templ; if (custom != null) { templ = new ParameterTemplate(); templ.append(custom); templ.setParameter("fieldName", fieldName); templ.setParameter("capFieldName", capFieldName); templ.setParameter("propertyName", propertyName); templ.setParameter("fieldType", fieldType); templ.setParameter("keyType", keyType); templ.setParameter("elementType", elementType); templ.setParameter("fieldValue", fieldValue); decs.append(templ.toString()); } else { if (fieldAccess) code.afterSection(); if (custom != null) { templ = new ParameterTemplate(); templ.append(custom); templ.setParameter("fieldName", fieldName); templ.setParameter("capFieldName", capFieldName); templ.setParameter("propertyName", propertyName); templ.setParameter("fieldType", fieldType); templ.setParameter("keyType", keyType); templ.setParameter("elementType", elementType); templ.setParameter("fieldValue", fieldValue); code.append(templ.toString()); } else {
_code = new ParameterTemplate(); String codeStr = getClassCode(); if (codeStr != null) { _code.append(codeStr); _code.setParameter("packageDec", packageDec); _code.setParameter("imports", imports); _code.setParameter("className", className); _code.setParameter("extendsDec", extendsDec); _code.setParameter("constructor", constructor); _code.setParameter("fieldDecs", fieldCode[0]); _code.setParameter("fieldCode", fieldCode[1]); } else _code.append(getClassCode(packageDec, imports, className, extendsName, constructor, fieldCode[0], fieldCode[1]));
/** * Write the code to the specified {@link Writer}. */ public void writeCode(Writer out) throws IOException { if (_code == null) return; _code.write(out); }