1 package net.sourceforge.phpdt.internal.compiler.ast;
4 import java.util.ArrayList;
7 * @author Matthieu Casanova
9 public abstract class UnaryExpression extends OperatorExpression {
11 public Expression expression;
13 public UnaryExpression(final Expression expression, final int operator, final int sourceStart, final int sourceEnd) {
14 super(operator, sourceStart, sourceEnd);
15 this.expression = expression;
19 * Get the variables from outside (parameters, globals ...)
20 * @return the variables from outside
22 public List getOutsideVariable() {
23 return new ArrayList();
27 * get the modified variables.
28 * @return the variables from we change value
30 public List getModifiedVariable() {
31 return expression.getModifiedVariable();
35 * Get the variables used.
36 * @return the variables used
38 public List getUsedVariable() {
39 return expression.getUsedVariable();