|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.webmacro.engine.MacroAdapter
Looks like a Macro, but really it's not. Wrap any object as a Macro via the createMacro method. You can use this when you have to return a Macro, but what you have is something else.
| Method Summary | |
void |
accept(TemplateVisitor v)
|
static Macro |
createMacro(java.lang.Object wrapMe)
If wrapMe is not a Macro, wrap it and return it. |
java.lang.Object |
evaluate(Context context)
Returns the wrapped object, context is ignored. |
java.lang.String |
toString()
|
void |
write(FastWriter out,
Context context)
Just calls toString() and writes that, context is ignored. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public final java.lang.String toString()
public final java.lang.Object evaluate(Context context)
evaluate in interface Macro
public final void write(FastWriter out,
Context context)
throws java.io.IOException
write in interface Macrojava.io.IOException - if we could not successfully write to outpublic void accept(TemplateVisitor v)
accept in interface Visitable
public static final Macro createMacro(java.lang.Object wrapMe)
throws BuildException
BuildException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||