freemarker.template.expression
Interface Unary

All Superinterfaces:
Expression, ExpressionElement, Operator
All Known Implementing Classes:
Dot, DynamicKeyName, MethodCall, Not

public interface Unary
extends Operator

An interface for unary operators.

Version:
$Id: Unary.java,v 1.11 2003/11/12 12:11:24 run2000 Exp $

Field Summary
static int POSTFIX
          Indicates a postfix operator
static int PREFIX
          Indicates a prefix operator
 
Method Summary
 int getAssociationType()
          Determines the operator association of the unary operation.
 void setTarget(Expression target)
          Sets the target for this unary operation.
 
Methods inherited from interface freemarker.template.expression.Operator
getOperatorClass
 
Methods inherited from interface freemarker.template.expression.Expression
getAsTemplateModel, getType, isComplete
 

Field Detail

PREFIX

public static final int PREFIX
Indicates a prefix operator

POSTFIX

public static final int POSTFIX
Indicates a postfix operator
Method Detail

setTarget

public void setTarget(Expression target)
Sets the target for this unary operation.
Throws:
java.lang.IllegalArgumentException - the target is of the wrong type for this operator
NullPointerException - the argument is null

getAssociationType

public int getAssociationType()
Determines the operator association of the unary operation.
Returns:
PREFIX or POSTFIX.