*** empty log message ***
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / CastExpression.java
index 9c7da62..8291f62 100644 (file)
@@ -1,5 +1,8 @@
 package net.sourceforge.phpdt.internal.compiler.ast;
 
+import java.util.List;
+import java.util.ArrayList;
+
 /**
  * This is a cast expression.
  * @author Matthieu Casanova
@@ -19,10 +22,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 +42,28 @@ public class CastExpression extends Expression {
     buff.append(expression.toStringExpression());
     return buff.toString();
   }
+
+      /**
+   * 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();
+  }
 }