package net.sourceforge.phpdt.internal.compiler.ast;
import java.util.List;
-import java.util.ArrayList;
/**
* @author Matthieu Casanova
*/
public abstract class UnaryExpression extends OperatorExpression {
- public Expression expression;
+ public final Expression expression;
- public UnaryExpression(final Expression expression, final int operator, final int sourceStart, final int sourceEnd) {
+ protected 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
+ *
+ * @param list the list where we will put variables
*/
- public List getOutsideVariable() {
- return new ArrayList();
- }
+ public final void getOutsideVariable(final List list) {}
/**
* get the modified variables.
- * @return the variables from we change value
+ *
+ * @param list the list where we will put variables
*/
- public List getModifiedVariable() {
- return expression.getModifiedVariable();
+ public final void getModifiedVariable(final List list) {
+ expression.getModifiedVariable(list);
}
/**
* Get the variables used.
- * @return the variables used
+ *
+ * @param list the list where we will put variables
*/
- public List getUsedVariable() {
- return expression.getUsedVariable();
+ public final void getUsedVariable(final List list) {
+ expression.getUsedVariable(list);
}
}