+++ /dev/null
-package net.sourceforge.phpdt.internal.compiler.ast;
-
-import java.util.List;
-import java.util.ArrayList;
-
-/**
- * @author Matthieu Casanova
- */
-public class BinaryExpression extends OperatorExpression {
-
- /** The two expressions. */
- public Expression left,right;
-
- public BinaryExpression(final Expression left,
- final Expression right,
- final int operator) {
- super(operator, left.getSourceStart(), right.getSourceEnd());
- this.left = left;
- this.right = right;
- }
-
- public String toStringExpression() {
- final StringBuffer buff = new StringBuffer(left.toStringExpression());
- buff.append(operatorToString());
- buff.append(right.toStringExpression());
- return buff.toString();
- }
-
- /**
- * Get the variables from outside (parameters, globals ...)
- * @return the variables from outside
- */
- public List getOutsideVariable() {
- return new ArrayList();
- }
-
- /**
- * get the modified variables.
- * @return the variables from we change value
- */
- public List getModifiedVariable() {
- final ArrayList list = new ArrayList();
- list.addAll(left.getModifiedVariable());
- list.addAll(right.getModifiedVariable());
- return list;
- }
-
- /**
- * Get the variables used.
- * @return the variables used
- */
- public List getUsedVariable() {
- final ArrayList list = new ArrayList();
- list.addAll(left.getUsedVariable());
- list.addAll(right.getUsedVariable());
- return list;
- }
-
-}