X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/UnaryExpression.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/UnaryExpression.java index fff7021..5e50628 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/UnaryExpression.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/UnaryExpression.java @@ -1,5 +1,8 @@ package net.sourceforge.phpdt.internal.compiler.ast; +import java.util.List; +import java.util.ArrayList; + /** * @author Matthieu Casanova */ @@ -7,8 +10,32 @@ public abstract class UnaryExpression extends OperatorExpression { public Expression expression; - public UnaryExpression(Expression expression, int operator, int sourceStart, int sourceEnd) { + public UnaryExpression(final Expression expression, final int operator, final int sourceStart, final int sourceEnd) { super(operator, sourceStart, sourceEnd); this.expression = expression; } + + /** + * Get the variables from outside (parameters, globals ...) + * @return the variables from outside + */ + public List getOutsideVariable() { + return new ArrayList(); + } + + /** + * get the modified variables. + * @return the variables from we change value + */ + public List getModifiedVariable() { + return expression.getModifiedVariable(); + } + + /** + * Get the variables used. + * @return the variables used + */ + public List getUsedVariable() { + return expression.getUsedVariable(); + } }