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 |
PREFIX
public static final int PREFIX
- Indicates a prefix operator
POSTFIX
public static final int POSTFIX
- Indicates a postfix operator
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 operatorNullPointerException
- the argument is null
getAssociationType
public int getAssociationType()
- Determines the operator association of the unary operation.
- Returns:
PREFIX
or POSTFIX
.