1 package net.sourceforge.phpdt.internal.compiler.ast;
6 * @author Matthieu Casanova
8 public class BinaryExpression extends OperatorExpression {
10 /** The two expressions. */
11 public Expression left,right;
13 public BinaryExpression(final Expression left,
14 final Expression right,
16 super(operator, left.sourceStart, right.sourceEnd);
21 public String toStringExpression() {
22 final StringBuffer buff = new StringBuffer(left.toStringExpression());
23 buff.append(operatorToString());
24 buff.append(right.toStringExpression());
25 return buff.toString();
29 * Get the variables from outside (parameters, globals ...)
31 public void getOutsideVariable(final List list) {
35 * get the modified variables.
37 public void getModifiedVariable(final List list) {
38 left.getModifiedVariable(list);
39 right.getModifiedVariable(list);
43 * Get the variables used.
45 public void getUsedVariable(final List list) {
46 left.getUsedVariable(list);
47 right.getUsedVariable(list);