Package freemarker.core
Interface TemplateProcessingTracer
public interface TemplateProcessingTracer
Hooks to monitor as templates run. This may be used to implement profiling, coverage analysis, execution tracing,
and other on-the-fly debugging mechanisms.
Use Environment.setTemplateProcessingTracer(TemplateProcessingTracer) to set a tracer for the current
environment.
- Since:
- 2.3.33
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInformation about the template element that we enter of exit; do NOT implement this (outside FreeMarker), as new methods can be added to this anytime! -
Method Summary
Modifier and TypeMethodDescriptionvoidenterElement(Environment env, TemplateProcessingTracer.TracedElement tracedElement)Invoked byEnvironmentwhenever it starts processing a new template element.voidexitElement(Environment env, TemplateProcessingTracer.TracedElement tracedElement)Invoked byEnvironmentwhenever it completes processing a new template element.
-
Method Details
-
enterElement
Invoked byEnvironmentwhenever it starts processing a new template element. A template element is a directive call, an interpolation (like${...}), a comment block, or static text. Expressions are not template elements. -
exitElement
Invoked byEnvironmentwhenever it completes processing a new template element.- See Also:
enterElement(Environment, TracedElement)
-