KickJava   Java API By Example, From Geeks To Geeks.

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


1 package spoon.reflect.code;
2
3 /**
4  * This interface defines a binary operator.
5  *
6  * @param <T> Type of this expression
7  */

8 public interface CtBinaryOperator<T> extends CtExpression<T> {
9
10     /**
11      * Returns the left-hand operand.
12      */

13     CtExpression<?> getLeftHandOperand();
14
15     /**
16      * Returns the right-hand operand.
17      */

18     CtExpression<?> getRightHandOperand();
19
20     /**
21      * Sets the left-hand operand.
22      */

23     void setLeftHandOperand(CtExpression<?> expression);
24
25     /**
26      * Sets the right-hand operand.
27      */

28     void setRightHandOperand(CtExpression<?> expression);
29
30     /**
31      * Sets the kind of this binary operator.
32      */

33     void setKind(BinaryOperatorKind kind);
34
35     /**
36      * Gets the kind of this binary operator.
37      */

38     BinaryOperatorKind getKind();
39
40 }
41
Popular Tags