org.webmacro
Interface Macro
- All Known Subinterfaces:
- Template
- All Known Implementing Classes:
- Directive, Expression.ExpressionBase, StringMacroAdapter, Variable, VoidMacro, MacroAdapter, Block
- public interface Macro
Directives, variables, macro calls, blocks, conditions, text, etc., all
have this as their supertype.
Method Summary |
java.lang.Object |
evaluate(Context context)
same as out but returns a String
|
void |
write(FastWriter out,
Context context)
Interpret the directive and write it out, using the values in
the supplied context as appropriate. |
write
public void write(FastWriter out,
Context context)
throws PropertyException,
java.io.IOException
- Interpret the directive and write it out, using the values in
the supplied context as appropriate.
- Throws:
PropertyException
- if required data was missing from contextjava.io.IOException
- if we could not successfully write to out
evaluate
public java.lang.Object evaluate(Context context)
throws PropertyException
- same as out but returns a String
- Throws:
PropertyException
- if required data was missing from context