/** * Writes the body to the output. * * @param block The block. * @param output The output. * @param model The model. * @return false. */ public boolean processBody(B block, TemplateOutput<B> output, TemplateModel model) throws IOException, TemplateException { output.write(block); return false; }
@Override public void postProcess(B block, TemplateOutput<B> output, TemplateModel model) throws IOException, TemplateException { super.postProcess(block, output, model); if (type instanceof PrimitiveType) { output.write(")"); } }
/** * Writes the {@link #getValue() value} to the output. * * @param block The block. * @param output The output. * @param model The model. * @return false, as no body should be processed. */ public boolean preProcess(B block, TemplateOutput<B> output, TemplateModel model) throws IOException, TemplateException { String value = getValue(); if (value != null) { output.write(value); } return false; }
output.write(post);
output.write(pre);