freemarker.template.expression
Interface Unary

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

public interface Unary
extends Operator

An interface for unary operators.

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

Nested Class Summary
static class Unary.Association
          Indicates the operator association for this unary expression.
 
Method Summary
 Unary.Association 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
 

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

Unary.Association getAssociationType()
Determines the operator association of the unary operation.

Returns:
Association of PREFIX or POSTFIX.