freemarker.template.expression
Interface Unary

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

public interface Unary
extends Operator

An interface for unary operators.


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
getPrecedence
 
Methods inherited from interface freemarker.template.expression.Expression
getAsTemplateModel, getType, isComplete, isConstant, resolveExpression
 

Field Detail

PREFIX

static final int PREFIX
Indicates a prefix operator

See Also:
Constant Field Values

POSTFIX

static final int POSTFIX
Indicates a postfix operator

See Also:
Constant Field Values
Method Detail

setTarget

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
java.lang.NullPointerException - the argument is null

getAssociationType

int getAssociationType()
Determines the operator association of the unary operation.

Returns:
PREFIX or POSTFIX.