First try for AST structure. A lot of things to change
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / ConstantIdentifier.java
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
new file mode 100644 (file)
index 0000000..dec383e
--- /dev/null
@@ -0,0 +1,24 @@
+package net.sourceforge.phpdt.internal.compiler.ast;
+
+/**
+ * @author Matthieu Casanova
+ */
+public class ConstantIdentifier extends Expression {
+
+  public char[] name;
+
+  public ConstantIdentifier(char[] name,
+                            int sourceStart,
+                            int sourceEnd) {
+    super(sourceStart, sourceEnd);
+    this.name = name;
+  }
+
+  /**
+   * Return the expression as String.
+   * @return the expression
+   */
+  public String toStringExpression() {
+    return new String(name);
+  }
+}