1 11 package org.eclipse.jdt.internal.codeassist.select; 12 13 import org.eclipse.jdt.internal.compiler.ast.Expression; 14 import org.eclipse.jdt.internal.compiler.ast.MemberValuePair; 15 import org.eclipse.jdt.internal.compiler.lookup.BlockScope; 16 import org.eclipse.jdt.internal.compiler.lookup.TypeBinding; 17 18 19 public class SelectionOnNameOfMemberValuePair extends MemberValuePair { 20 21 public SelectionOnNameOfMemberValuePair(char[] token, int sourceStart, int sourceEnd, Expression value) { 22 super(token, sourceStart, sourceEnd, value); 23 } 24 25 public StringBuffer print(int indent, StringBuffer output) { 26 output.append("<SelectOnName:"); output.append(name); 28 output.append(">"); return output; 30 } 31 32 public void resolveTypeExpecting(BlockScope scope, TypeBinding requiredType) { 33 super.resolveTypeExpecting(scope, requiredType); 34 35 if(this.binding != null) { 36 throw new SelectionNodeFound(this.binding); 37 } 38 throw new SelectionNodeFound(); 39 } 40 } 41 | Popular Tags |