Some minor changes
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / CastExpression.java
index 8291f62..8b52822 100644 (file)
@@ -1,19 +1,18 @@
 package net.sourceforge.phpdt.internal.compiler.ast;
 
 import java.util.List;
-import java.util.ArrayList;
 
 /**
  * This is a cast expression.
  * @author Matthieu Casanova
  */
-public class CastExpression extends Expression {
+public final class CastExpression extends Expression {
 
   /** The type in which we cast the expression. */
-  public ConstantIdentifier type;
+  private final ConstantIdentifier type;
 
   /** The expression to be casted. */
-  public Expression expression;
+  private final Expression expression;
 
   /**
    * Create a cast expression.
@@ -43,27 +42,28 @@ public class CastExpression extends Expression {
     return buff.toString();
   }
 
-      /**
+  /**
    * 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 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 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 void getUsedVariable(final List list) {
+    expression.getUsedVariable(list);
   }
 }