1 /*******************************************************************************
2 * Copyright (c) 2000, 2001, 2002 International Business Machines Corp. and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v0.5
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v05.html
9 * IBM Corporation - initial API and implementation
10 ******************************************************************************/
11 package net.sourceforge.phpdt.internal.compiler.ast;
15 public class StringLiteral extends Literal {
18 public StringLiteral(final Token token) {
19 super(token.sourceStart,token.sourceEnd);
24 * Create a new StringLiteral
25 * @param token the token
26 * @param s sourcestart
30 public StringLiteral(final String token, final int s, final int e) {
36 * Create a new StringLiteral
37 * @param token the token
38 * @param s sourcestart
42 public StringLiteral(final char[] token, final int s, final int e) {
43 this(new String(token),s, e);
46 public StringLiteral(final int s, final int e) {
50 * Return the expression as String.
51 * @return the expression
53 public String toStringExpression() {
58 * @deprecated - use field instead
60 public int sourceEnd() {
65 * @deprecated - use field instead
67 public int sourceStart() {