X-Git-Url: http://secure.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/CastExpression.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/CastExpression.java index ec518ac..65e8268 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/CastExpression.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/CastExpression.java @@ -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; @@ -33,10 +35,30 @@ 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 ...) + */ + 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); + } }