KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > reflect > code > CtUnaryOperator


1 package spoon.reflect.code;
2
3 /**
4  * This code element represents a unary operator. For example :
5  * <code>!(true)</code>, <code>-4</code>
6  *
7  * @param <T> "Return" type of this expression
8  */

9 public interface CtUnaryOperator<T> extends CtExpression<T>, CtStatement {
10
11     /**
12      * Gets the expression to which the operator is applied.
13      */

14     CtExpression<T> getOperand();
15
16     /**
17      * Sets the expression to which the operator is applied.
18      */

19     void setOperand(CtExpression<T> expression);
20
21     /**
22      * Sets the kind of this operator.
23      */

24     void setKind(UnaryOperatorKind kind);
25
26     /**
27      * Gets the kind of this operator.
28      */

29     UnaryOperatorKind getKind();
30
31 }
32
Popular Tags