//import net.sourceforge.phpdt.internal.compiler.lookup.BlockScope;
//import net.sourceforge.phpdt.internal.compiler.lookup.TypeBinding;
-public class StringLiteral {
+public class StringLiteral extends Literal {
char[] source;
- public int sourceStart, sourceEnd;
-
+
public StringLiteral(char[] token, int s, int e) {
+ super(s,e);
source = token;
- sourceStart = s;
- sourceEnd = e;
}
+
public StringLiteral(int s, int e) {
- sourceStart = s;
- sourceEnd = e;
+ super(s,e);
}
/**
public char[] source() {
return source;
}
- public String toStringExpression() {
+ /**
+ * Return the expression as String.
+ * @return the expression
+ */
+ public String toStringExpression() {
// handle some special char.....
StringBuffer result = new StringBuffer("\""); //$NON-NLS-1$
for (int i = 0; i < source.length; i++) {