Changes:
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / TrueLiteral.java
index adb4b09..d3f13bc 100644 (file)
@@ -1,18 +1,15 @@
 package net.sourceforge.phpdt.internal.compiler.ast;
 
+import test.Token;
+
 /**
+ * the true literal.
  * @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;
+  public TrueLiteral(Token token) {
+    super(token.sourceStart, token.sourceEnd);
   }
 
   /**
@@ -22,4 +19,8 @@ public class TrueLiteral extends MagicLiteral {
   public String toStringExpression() {
     return "true";//$NON-NLS-1$
   }
+
+  public String toString() {
+    return "true";//$NON-NLS-1$
+  }
 }