freemarker.template.expression
Interface Operator

All Superinterfaces:
Expression, ExpressionElement
All Known Subinterfaces:
Binary, Unary

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 ExpressionBuilder class. The getOperatorClass() method provides a way for ExpressionBuilder to determine which operator it is looking at, and in turn figure out what precedence it has.

Version:
$Id: Operator.java,v 1.1 2003/11/12 12:11:24 run2000 Exp $

Method Summary
 int getOperatorClass()
          Return the type of operator this is to the caller.
 
Methods inherited from interface freemarker.template.expression.Expression
getAsTemplateModel, getType, isComplete
 

Method Detail

getOperatorClass

public int getOperatorClass()
Return the type of operator this is to the caller. Used for associating operators according to precedence.
Returns:
an integer indicating the type of operator this is