Interface ElementVisitor
public interface ElementVisitor
-
Method Summary
Modifier and TypeMethodDescriptionGets the template contextGets the writer.out()Gets the content of template after generates.To visit the element and generatewith(TemplateContext ctx) Attaches the Template Context for Template generate.
-
Method Details
-
visit
To visit the element and generate- Parameters:
element-- Returns:
-
out
String out()Gets the content of template after generates.- Returns:
-
getWriter
Writer getWriter()Gets the writer.- Returns:
-
getTemplateContext
TemplateContext getTemplateContext()Gets the template context- Returns:
-
with
Attaches the Template Context for Template generate.- Parameters:
ctx- The Template Context for generating- Returns:
-