com.google.clearsilver.jsilver.template
Interface Macro

All Superinterfaces:
Template
All Known Implementing Classes:
BaseCompiledTemplate.CompiledMacro, InterpretedMacro

public interface Macro
extends Template

An executable macro. This exhibits all the same characteristics of a Template.


Method Summary
 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 getMacroName()
          Name of macro (e.g.
 
Methods inherited from interface com.google.clearsilver.jsilver.template.Template
createRenderingContext, getDisplayName, getEscapeMode, getTemplateName, render, render
 

Method Detail

getMacroName

String getMacroName()
Name of macro (e.g. showTable). Used to generate error messages.


getArgumentName

String getArgumentName(int index)
                       throws JSilverInterpreterException
Get the name of the nth argument defined in the macro. Throws exception if the argument is not found.

Throws:
JSilverInterpreterException

getArgumentCount

int getArgumentCount()
Return the number of arguments this macro expects. Must be equal to the number of arguments supplied.



Copyright © 2010-2012 Google. All Rights Reserved.