Changes:
[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
5 /**
6  * @author Matthieu Casanova
7  */
8 public abstract class UnaryExpression extends OperatorExpression {
9
10   public Expression expression;
11
12   public UnaryExpression(final Expression expression, final int operator, final int sourceStart, final int sourceEnd) {
13     super(operator, sourceStart, sourceEnd);
14     this.expression = expression;
15   }
16
17     /**
18    * Get the variables from outside (parameters, globals ...)
19    */
20   public void getOutsideVariable(final List list) {
21   }
22
23   /**
24    * get the modified variables.
25    */
26   public void getModifiedVariable(final List list) {
27     expression.getModifiedVariable(list);
28   }
29
30   /**
31    * Get the variables used.
32    */
33   public void getUsedVariable(final List list) {
34     expression.getUsedVariable(list);
35   }
36 }