b2b434a52ff0f6b1d690c5f932574eb76e43e87c
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / UnaryExpression.java
1 package net.sourceforge.phpdt.internal.compiler.ast;
2
3 import java.util.List;
4 import java.util.ArrayList;
5
6 /**
7  * @author Matthieu Casanova
8  */
9 public abstract class UnaryExpression extends OperatorExpression {
10
11   public Expression expression;
12
13   public UnaryExpression(final Expression expression, final int operator, final int sourceStart, final int sourceEnd) {
14     super(operator, sourceStart, sourceEnd);
15     this.expression = expression;
16   }
17
18     /**
19    * Get the variables from outside (parameters, globals ...)
20    */
21   public void getOutsideVariable(final List list) {
22   }
23
24   /**
25    * get the modified variables.
26    */
27   public void getModifiedVariable(final List list) {
28     expression.getModifiedVariable(list);
29   }
30
31   /**
32    * Get the variables used.
33    */
34   public void getUsedVariable(final List list) {
35     expression.getUsedVariable(list);
36   }
37 }