Home » freemarker-2.3.13 » freemarker.template » [javadoc | source]
freemarker.template
public interface: TransformControl [javadoc | source]

All Known Implementing Classes:
    TagWriter

An interface that can be implemented by writers returned from TemplateTransformModel#getWriter(java.io.Writer, java.util.Map) . The methods on this interfaces are callbacks that will be called by the template engine and that give the writer a chance to better control the evaluation of the transform body. The writer can instruct the engine to skip or to repeat body evaluation, and gets notified about exceptions that are thrown during the body evaluation.
Field Summary
public static final  int REPEAT_EVALUATION    Constant returned from #afterBody() that tells the template engine to repeat transform body evaluation and feed it again to the transform. 
public static final  int END_EVALUATION    Constant returned from #afterBody() that tells the template engine to end the transform and close the writer. 
public static final  int SKIP_BODY    Constant returned from #onStart() that tells the template engine to skip evaluation of the body. 
public static final  int EVALUATE_BODY    Constant returned from #onStart() that tells the template engine to evaluate the body. 
Method from freemarker.template.TransformControl Summary:
afterBody,   onError,   onStart
Method from freemarker.template.TransformControl Detail:
 public int afterBody() throws IOException, TemplateModelException
    Called after the body has been evaluated.
 public  void onError(Throwable t) throws Throwable
 public int onStart() throws IOException, TemplateModelException
    Called before the body is evaluated for the first time.