org.webmacro.engine
Class Expression.UnaryOperation

java.lang.Object
  extended byorg.webmacro.engine.Expression.ExpressionBase
      extended byorg.webmacro.engine.Expression.UnaryOperation
All Implemented Interfaces:
Macro, Visitable
Direct Known Subclasses:
Expression.NotOperation
Enclosing class:
Expression

public abstract static class Expression.UnaryOperation
extends Expression.ExpressionBase


Method Summary
 void accept(TemplateVisitor v)
           
 java.lang.Object evaluate(Context context)
          same as out but returns a String
abstract  java.lang.String getName()
           
abstract  java.lang.Object operate(java.lang.Object o)
           
 
Methods inherited from class org.webmacro.engine.Expression.ExpressionBase
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

operate

public abstract java.lang.Object operate(java.lang.Object o)

evaluate

public java.lang.Object evaluate(Context context)
                          throws PropertyException
Description copied from interface: Macro
same as out but returns a String

Throws:
PropertyException - if required data was missing from context

getName

public abstract java.lang.String getName()

accept

public void accept(TemplateVisitor v)


Copyright © 1999-2006 WebMacro. All Rights Reserved.