com.lyncode.jtwig.tree.expressions
Class OperationBinary

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

public class OperationBinary
extends Object
implements Expression


Constructor Summary
OperationBinary(Expression operand)
           
 
Method Summary
 boolean add(Expression operand)
           
 boolean addOperator(Operator operator)
           
 Object calculate(JtwigContext context)
           
 ValueList getOperands()
           
 List<Operator> getOperators()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OperationBinary

public OperationBinary(Expression operand)
Method Detail

getOperands

public ValueList getOperands()

getOperators

public List<Operator> getOperators()

addOperator

public boolean addOperator(Operator operator)

add

public boolean add(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.