|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.clearsilver.jsilver.compiler.BaseCompiledTemplate.CompiledMacro
public abstract class BaseCompiledTemplate.CompiledMacro
Constructor Summary | |
---|---|
protected |
BaseCompiledTemplate.CompiledMacro(String macroName,
String... argumentsNames)
|
Method Summary | |
---|---|
RenderingContext |
createRenderingContext(Data data,
Appendable out,
ResourceLoader resourceLoader)
Create a new RenderingContext. |
int |
getArgumentCount()
Return the number of arguments this macro expects. |
String |
getArgumentName(int index)
Get the name of the nth argument defined in the macro. |
String |
getDisplayName()
Name to use when displaying error or log messages. |
EscapeMode |
getEscapeMode()
Return the EscapeMode in which this template was generated. |
String |
getMacroName()
Name of macro (e.g. |
protected TemplateLoader |
getTemplateLoader()
|
String |
getTemplateName()
Name of template (e.g. |
void |
render(Data data,
Appendable out,
ResourceLoader resourceLoader)
Render the template. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.clearsilver.jsilver.template.Template |
---|
render |
Constructor Detail |
---|
protected BaseCompiledTemplate.CompiledMacro(String macroName, String... argumentsNames)
Method Detail |
---|
public void render(Data data, Appendable out, ResourceLoader resourceLoader) throws IOException
Template
render
in interface Template
data
- Data to merge with template.out
- Target to write to.resourceLoader
- ResourceLoader to use instead of the default template one when loading
files.
IOException
public RenderingContext createRenderingContext(Data data, Appendable out, ResourceLoader resourceLoader)
Template
createRenderingContext
in interface Template
data
- Data to merge with template.out
- Target to write to.resourceLoader
- ResourceLoader to load files.public String getTemplateName()
Template
getTemplateName
in interface Template
public String getMacroName()
Macro
getMacroName
in interface Macro
public String getArgumentName(int index)
Macro
getArgumentName
in interface Macro
public int getArgumentCount()
Macro
getArgumentCount
in interface Macro
protected TemplateLoader getTemplateLoader()
public EscapeMode getEscapeMode()
Template
getEscapeMode
in interface Template
public String getDisplayName()
Template
getDisplayName
in interface Template
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |