All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface org.webmacro.engine.Macro

public abstract interface Macro
extends PropertyReference
Directives, variables, macro calls, blocks, conditions, text, etc., all have this as their supertype.


Method Index

 o evaluate(Object)
same as out but returns a String

 o write(Writer, Object)
Interpret the directive and write it out, using the values in the supplied context as appropriate.

Methods

 o write
 public abstract void write(Writer out,
                            Object context) throws InvalidContextException, IOException
Interpret the directive and write it out, using the values in the supplied context as appropriate.

Throws: InvalidContextException
if required data was missing from context
Throws: IOException
if we could not successfully write to out
 o evaluate
 public abstract Object evaluate(Object context) throws InvalidContextException
same as out but returns a String

Throws: InvalidContextException
if required data was missing from context

All Packages  Class Hierarchy  This Package  Previous  Next  Index