Changes:
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / ConstantIdentifier.java
index dec383e..2ba5bb3 100644 (file)
@@ -1,24 +1,51 @@
 package net.sourceforge.phpdt.internal.compiler.ast;
 
+import java.util.List;
+
+import test.Token;
+
 /**
  * @author Matthieu Casanova
  */
 public class ConstantIdentifier extends Expression {
 
-  public char[] name;
+  public String name;
 
-  public ConstantIdentifier(char[] name,
-                            int sourceStart,
-                            int sourceEnd) {
+  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 ...)
+   */
+  public void getOutsideVariable(final List list) {
+  }
+
+  /**
+   * get the modified variables.
+   */
+  public void getModifiedVariable(final List list) {
+  }
+
+  /**
+   * Get the variables used.
+   */
+  public void getUsedVariable(final List list) {
   }
 }