*** empty log message ***
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / CastExpression.java
index ec518ac..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;
@@ -33,10 +36,34 @@ public class CastExpression extends Expression {
    * @return the expression
    */
   public String toStringExpression() {
-    final StringBuffer buff = new StringBuffer('(');
+    final StringBuffer buff = new StringBuffer("(");
     buff.append(type.toStringExpression());
     buff.append(") ");
     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();
+  }
 }