1 package spoon.support.reflect.code; 2 3 import spoon.reflect.code.BinaryOperatorKind; 4 import spoon.reflect.code.CtBinaryOperator; 5 import spoon.reflect.code.CtExpression; 6 import spoon.reflect.visitor.CtVisitor; 7 8 public class CtBinaryOperatorImpl<T> extends CtExpressionImpl<T> implements 9 CtBinaryOperator<T> { 10 private static final long serialVersionUID = 1L; 11 CtExpression<?> leftHandOperand; 12 13 CtExpression<?> rightHandOperand; 14 15 public CtExpression<?> getLeftHandOperand() { 16 return leftHandOperand; 17 } 18 19 public CtExpression<?> getRightHandOperand() { 20 return rightHandOperand; 21 } 22 23 public void setLeftHandOperand(CtExpression<?> expression) { 24 this.leftHandOperand = expression; 25 26 } 27 28 public void setRightHandOperand(CtExpression<?> expression) { 29 rightHandOperand = expression; 30 } 31 32 BinaryOperatorKind kind; 33 34 public void setKind(BinaryOperatorKind kind) { 35 this.kind = kind; 36 } 37 38 public BinaryOperatorKind getKind() { 39 return kind; 40 } 41 42 public void accept(CtVisitor visitor) { 43 visitor.visitCtBinaryOperator(this); 44 } 45 46 } 47 | Popular Tags |