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 final class TrueLiteral extends MagicLiteral {
- public char[] source() {
- return source;
+ public TrueLiteral(final Token token) {
+ super(token.sourceStart, token.sourceEnd);
}
/**
public String toStringExpression() {
return "true";//$NON-NLS-1$
}
+
+ public String toString() {
+ return "true";//$NON-NLS-1$
+ }
}