org.webmacro.engine
Class UndefinedMacro
java.lang.Object
|
+--org.webmacro.engine.UndefinedMacro
- All Implemented Interfaces:
- Macro, Visitable
- public final class UndefinedMacro
- extends java.lang.Object
- implements Macro, Visitable
Looks like a Macro, but really it's an undefined variable.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
getInstance
public static UndefinedMacro getInstance()
toString
public final java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
accept
public void accept(TemplateVisitor v)
- Specified by:
accept
in interface Visitable
evaluate
public final java.lang.Object evaluate(Context context)
- Returns the wrapped object, context is ignored.
- Specified by:
evaluate
in interface Macro
- Following copied from interface:
org.webmacro.Macro
- Throws:
PropertyException
- if required data was missing from context
get
public java.lang.Object get(java.lang.Object key)
write
public final void write(FastWriter out,
Context context)
throws PropertyException
- Throws an exception -- cannot write an undefined
- Specified by:
write
in interface Macro
- Following copied from interface:
org.webmacro.Macro
- Throws:
PropertyException
- if required data was missing from contextjava.io.IOException
- if we could not successfully write to out