1 11 package org.eclipse.jdt.internal.codeassist.complete; 12 13 import org.eclipse.jdt.internal.compiler.ast.StringLiteral; 14 import org.eclipse.jdt.internal.compiler.lookup.BlockScope; 15 import org.eclipse.jdt.internal.compiler.lookup.ClassScope; 16 import org.eclipse.jdt.internal.compiler.lookup.TypeBinding; 17 18 35 36 public class CompletionOnStringLiteral extends StringLiteral { 37 public int contentStart; 38 public int contentEnd; 39 public CompletionOnStringLiteral(char[] token, int s, int e, int cs, int ce, int lineNumber) { 40 super(token, s, e, lineNumber); 41 this.contentStart = cs; 42 this.contentEnd = ce; 43 } 44 45 public CompletionOnStringLiteral(int s, int e, int cs, int ce) { 46 super(s,e); 47 this.contentStart = cs; 48 this.contentEnd = ce; 49 } 50 public TypeBinding resolveType(ClassScope scope) { 51 throw new CompletionNodeFound(this, null, scope); 52 } 53 public TypeBinding resolveType(BlockScope scope) { 54 throw new CompletionNodeFound(this, null, scope); 55 } 56 57 public StringBuffer printExpression(int indent, StringBuffer output) { 58 output.append("<CompletionOnString:"); output = super.printExpression(indent, output); 60 return output.append('>'); 61 } 62 } 63 | Popular Tags |