Changes:
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / CastExpression.java
index 9c7da62..65e8268 100644 (file)
@@ -1,5 +1,7 @@
 package net.sourceforge.phpdt.internal.compiler.ast;
 
+import java.util.List;
+
 /**
  * This is a cast expression.
  * @author Matthieu Casanova
@@ -19,10 +21,10 @@ public class CastExpression extends Expression {
    * @param sourceStart starting offset
    * @param sourceEnd ending offset
    */
-  public CastExpression(ConstantIdentifier type,
-                        Expression expression,
-                        int sourceStart,
-                        int sourceEnd) {
+  public CastExpression(final ConstantIdentifier type,
+                        final Expression expression,
+                        final int sourceStart,
+                        final int sourceEnd) {
     super(sourceStart, sourceEnd);
     this.type = type;
     this.expression = expression;
@@ -39,4 +41,24 @@ public class CastExpression extends Expression {
     buff.append(expression.toStringExpression());
     return buff.toString();
   }
+
+  /**
+   * Get the variables from outside (parameters, globals ...)
+   */
+  public void getOutsideVariable(final List list) {
+  }
+
+  /**
+   * get the modified variables.
+   */
+  public void getModifiedVariable(final List list) {
+    expression.getModifiedVariable(list);
+  }
+
+  /**
+   * Get the variables used.
+   */
+  public void getUsedVariable(final List list) {
+    expression.getUsedVariable(list);
+  }
 }