First try for AST structure. A lot of things to change
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / NullLiteral.java
diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/NullLiteral.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/NullLiteral.java
new file mode 100644 (file)
index 0000000..1d97940
--- /dev/null
@@ -0,0 +1,25 @@
+package net.sourceforge.phpdt.internal.compiler.ast;
+
+/**
+ * @author Matthieu Casanova
+ */
+public class NullLiteral extends MagicLiteral {
+
+  public static final char[] source = {'n' , 'u' , 'l' , 'l'};
+
+  public NullLiteral(int sourceStart, int sourceEnd) {
+    super(sourceStart, sourceEnd);
+  }
+
+  /**
+   * Return the expression as String.
+   * @return the expression
+   */
+  public String toStringExpression() {
+    return "null";
+  }
+
+  public char[] source() {
+    return source;
+  }
+}