com.lyncode.jtwig.tree.expressions
Class OperationUnary

java.lang.Object
  extended by com.lyncode.jtwig.tree.expressions.OperationUnary
All Implemented Interfaces:
Expression

public class OperationUnary
extends Object
implements Expression


Constructor Summary
OperationUnary(Operator operator)
           
 
Method Summary
 Object calculate(JtwigContext context)
           
 Object getOperand()
           
 Operator getOperator()
           
 boolean setOperand(Expression operand)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OperationUnary

public OperationUnary(Operator operator)
Method Detail

getOperator

public Operator getOperator()

getOperand

public Object getOperand()

setOperand

public boolean setOperand(Expression operand)

toString

public String toString()
Overrides:
toString in class Object

calculate

public Object calculate(JtwigContext context)
                 throws CalculateException
Specified by:
calculate in interface Expression
Throws:
CalculateException


Copyright © 2014. All Rights Reserved.