1 11 package org.eclipse.jdt.internal.codeassist.complete; 12 13 33 34 import org.eclipse.jdt.internal.compiler.ast.*; 35 import org.eclipse.jdt.internal.compiler.lookup.*; 36 37 public class CompletionOnClassLiteralAccess extends ClassLiteralAccess { 38 39 public char[] completionIdentifier; 40 public int classStart; 41 42 public CompletionOnClassLiteralAccess(long pos, TypeReference t) { 43 44 super((int)pos, t); 45 this.classStart = (int) (pos >>> 32); 46 } 47 48 public StringBuffer printExpression(int indent, StringBuffer output) { 49 50 output.append("<CompleteOnClassLiteralAccess:"); return this.type.print(0, output).append('.').append(this.completionIdentifier).append('>'); 52 } 53 54 public TypeBinding resolveType(BlockScope scope) { 55 56 if (super.resolveType(scope) == null) 57 throw new CompletionNodeFound(); 58 else 59 throw new CompletionNodeFound(this, this.targetType, scope); 60 } 61 } 62 | Popular Tags |