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