5e50628845ac50447b27119594924a21511379d9
[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    * @return the variables from outside
21    */
22   public List getOutsideVariable() {
23     return new ArrayList();
24   }
25
26   /**
27    * get the modified variables.
28    * @return the variables from we change value
29    */
30   public List getModifiedVariable() {
31     return expression.getModifiedVariable();
32   }
33
34   /**
35    * Get the variables used.
36    * @return the variables used
37    */
38   public List getUsedVariable() {
39     return expression.getUsedVariable();
40   }
41 }