freemarker.template.expression
Interface Operator

All Superinterfaces:
Expression
All Known Subinterfaces:
Binary, Unary
All Known Implementing Classes:
AbstractBinary, And, Divide, Dot, DynamicKeyName, Equals, GreaterThan, GreaterThanOrEquals, Lambda, LessThan, LessThanOrEquals, MethodCall, Minus, Modulo, Multiply, Not, NotEquals, Or, Plus, Ternary

public interface Operator
extends Expression

Interface that represents an operator expression. An operator is associated with operands. For FM-Classic, an operator can be either a unary operator (takes one operand), or a binary operator (takes two operands).

Operators have precedence. Precedence between operators is determined by the getPrecedence() method. This provides a way for ExpressionBuilder to determine what precedence each operator has.

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

Method Summary
 ExpressionBuilder.Precedence getPrecedence()
          Return the precedence for this operator to the caller.
 
Methods inherited from interface freemarker.template.expression.Expression
getAsTemplateModel, getType, isComplete, isConstant, resolveExpression
 

Method Detail

getPrecedence

ExpressionBuilder.Precedence getPrecedence()
Return the precedence for this operator to the caller. Used for associating operators according to precedence.

Returns:
an enumeration indicating the precedence of this operator