Some minor changes
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / UnaryExpression.java
index 2a1a3c2..09f1cf1 100644 (file)
@@ -7,30 +7,35 @@ import java.util.List;
  */
 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 ...)
+   *
+   * @param list the list where we will put variables
    */
-  public void getOutsideVariable(final List list) {
-  }
+  public final void getOutsideVariable(final List list) {}
 
   /**
    * get the modified variables.
+   *
+   * @param list the list where we will put variables
    */
-  public void getModifiedVariable(final List list) {
+  public final void getModifiedVariable(final List list) {
     expression.getModifiedVariable(list);
   }
 
   /**
    * Get the variables used.
+   *
+   * @param list the list where we will put variables
    */
-  public void getUsedVariable(final List list) {
+  public final void getUsedVariable(final List list) {
     expression.getUsedVariable(list);
   }
 }