1 package net.sourceforge.phpdt.internal.compiler.ast;
4 import java.util.ArrayList;
7 * @author Matthieu Casanova
9 public class BinaryExpression extends OperatorExpression {
11 /** The two expressions. */
12 public Expression left,right;
14 public BinaryExpression(final Expression left,
15 final Expression right,
17 super(operator, left.sourceStart, right.sourceEnd);
22 public String toStringExpression() {
23 final StringBuffer buff = new StringBuffer(left.toStringExpression());
24 buff.append(operatorToString());
25 buff.append(right.toStringExpression());
26 return buff.toString();
30 * Get the variables from outside (parameters, globals ...)
32 public void getOutsideVariable(final List list) {
36 * get the modified variables.
38 public void getModifiedVariable(final List list) {
39 left.getModifiedVariable(list);
40 right.getModifiedVariable(list);
44 * Get the variables used.
46 public void getUsedVariable(final List list) {
47 left.getUsedVariable(list);
48 right.getUsedVariable(list);