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