X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/StringLiteral.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/StringLiteral.java index f20decb..ec39d6e 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/StringLiteral.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/StringLiteral.java @@ -16,18 +16,16 @@ package net.sourceforge.phpdt.internal.compiler.ast; //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); } /** @@ -36,8 +34,12 @@ public class StringLiteral { 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++) {