Some minor 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 final Expression expression;
11
12   protected 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    * @param list the list where we will put variables
21    */
22   public final void getOutsideVariable(final List list) {}
23
24   /**
25    * get the modified variables.
26    *
27    * @param list the list where we will put variables
28    */
29   public final void getModifiedVariable(final List list) {
30     expression.getModifiedVariable(list);
31   }
32
33   /**
34    * Get the variables used.
35    *
36    * @param list the list where we will put variables
37    */
38   public final void getUsedVariable(final List list) {
39     expression.getUsedVariable(list);
40   }
41 }