X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/ConstantIdentifier.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/ConstantIdentifier.java index a157522..0978c7d 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/ConstantIdentifier.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/ConstantIdentifier.java @@ -1,51 +1,54 @@ package net.sourceforge.phpdt.internal.compiler.ast; import java.util.List; -import java.util.ArrayList; + +import test.Token; /** * @author Matthieu Casanova */ -public class ConstantIdentifier extends Expression { +public final class ConstantIdentifier extends Expression { - public char[] name; + private final String name; - public ConstantIdentifier(final char[] name, + public ConstantIdentifier(final String name, final int sourceStart, final int sourceEnd) { super(sourceStart, sourceEnd); this.name = name; } + public ConstantIdentifier(final Token token) { + super(token.sourceStart,token.sourceEnd); + name = token.image; + } + /** * Return the expression as String. * @return the expression */ public String toStringExpression() { - return new String(name); + return name; } - /** + /** * 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 new ArrayList(); - } + public void getModifiedVariable(final List list) {} /** * Get the variables used. - * @return the variables used + * + * @param list the list where we will put variables */ - public List getUsedVariable() { - return new ArrayList(); - } + public void getUsedVariable(final List list) {} }