new icons
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / TrueLiteral.java
index adb4b09..1509737 100644 (file)
@@ -1,18 +1,18 @@
 package net.sourceforge.phpdt.internal.compiler.ast;
 
+import test.Token;
+
+import java.util.List;
+import java.util.ArrayList;
+
 /**
+ * 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 +22,8 @@ public class TrueLiteral extends MagicLiteral {
   public String toStringExpression() {
     return "true";//$NON-NLS-1$
   }
+
+  public String toString() {
+    return "true";//$NON-NLS-1$
+  }
 }