1 11 package org.eclipse.jdt.internal.codeassist.select; 12 13 35 36 import org.eclipse.jdt.internal.compiler.ast.QualifiedSuperReference; 37 import org.eclipse.jdt.internal.compiler.ast.TypeReference; 38 import org.eclipse.jdt.internal.compiler.lookup.BlockScope; 39 import org.eclipse.jdt.internal.compiler.lookup.TypeBinding; 40 41 public class SelectionOnQualifiedSuperReference extends QualifiedSuperReference { 42 public SelectionOnQualifiedSuperReference(TypeReference name, int pos, int sourceEnd) { 43 super(name, pos, sourceEnd); 44 } 45 public StringBuffer printExpression(int indent, StringBuffer output) { 46 47 output.append("<SelectOnQualifiedSuper:"); return super.printExpression(0, output).append('>'); 49 } 50 51 public TypeBinding resolveType(BlockScope scope) { 52 TypeBinding binding = super.resolveType(scope); 53 54 if (binding == null || !binding.isValidBinding()) 55 throw new SelectionNodeFound(); 56 else 57 throw new SelectionNodeFound(binding); 58 } 59 } 60 | Popular Tags |