First try for AST structure. A lot of things to change
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / FalseLiteral.java
diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/FalseLiteral.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/FalseLiteral.java
new file mode 100644 (file)
index 0000000..8d63fb8
--- /dev/null
@@ -0,0 +1,29 @@
+package net.sourceforge.phpdt.internal.compiler.ast;
+
+/**
+ * @author Matthieu Casanova
+ */
+public class FalseLiteral extends MagicLiteral {
+
+  public static final char[] source = {'f', 'a', 'l', 's', 'e'};
+
+  public FalseLiteral(int sourceStart, int sourceEnd) {
+    super(sourceStart, sourceEnd);
+  }
+
+  /**
+   * Return the expression as String.
+   * @return the expression
+   */
+  public String toStringExpression() {
+    return "false";
+  }
+
+  public char[] source() {
+    return source;
+  }
+
+  public String toString() {
+    return "false";//$NON-NLS-1$
+  }
+}
\ No newline at end of file