Interface ElementVisitor
-
public interface ElementVisitor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TemplateContextgetTemplateContext()Gets the template contextWritergetWriter()Gets the writer.Stringout()Gets the content of template after generates.ElementVisitorvisit(Element element)To visit the element and generateElementVisitorwith(TemplateContext ctx)Attaches the Template Context for Template generate.
-
-
-
Method Detail
-
visit
ElementVisitor visit(Element element)
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
ElementVisitor with(TemplateContext ctx)
Attaches the Template Context for Template generate.- Parameters:
ctx- The Template Context for generating- Returns:
-
-