freemarker.template.expression
Interface Binary

All Superinterfaces:
Expression, Operator
All Known Implementing Classes:
AbstractBinary, And, Divide, Equals, GreaterThan, GreaterThanOrEquals, LessThan, LessThanOrEquals, Minus, Modulo, Multiply, NotEquals, Or, Plus

public interface Binary
extends Operator

An interface for binary operators.

Version:
$Id: Binary.java 1101 2013-04-01 04:17:32Z run2000 $

Method Summary
 void setLeft(Expression left)
          Sets the left-hand side of the expression to be evaluated.
 void setRight(Expression right)
          Sets the right-hand side of the expression to be evaluated.
 
Methods inherited from interface freemarker.template.expression.Operator
getPrecedence
 
Methods inherited from interface freemarker.template.expression.Expression
getAsTemplateModel, getType, isComplete, isConstant, resolveExpression
 

Method Detail

setLeft

void setLeft(Expression left)
Sets the left-hand side of the expression to be evaluated.

Parameters:
left - the Expression to be evaluated on the left-hand side
Throws:
java.lang.NullPointerException - the expression is null
java.lang.IllegalArgumentException - the expression doesn't match the expected type or other criteria

setRight

void setRight(Expression right)
Sets the right-hand side of the expression to be evaluated.

Parameters:
right - the Expression to be evaluated on the right-hand side
Throws:
java.lang.NullPointerException - the expression is null
java.lang.IllegalArgumentException - the expression doesn't match the expected type or other criteria