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 ...)
21 public void getOutsideVariable(final List list) {
25 * get the modified variables.
27 public void getModifiedVariable(final List list) {
28 expression.getModifiedVariable(list);
32 * Get the variables used.
34 public void getUsedVariable(final List list) {
35 expression.getUsedVariable(list);