1 11 package org.eclipse.jdt.internal.codeassist.select; 12 13 import org.eclipse.jdt.internal.compiler.ast.Argument; 14 import org.eclipse.jdt.internal.compiler.ast.TypeReference; 15 import org.eclipse.jdt.internal.compiler.lookup.BlockScope; 16 import org.eclipse.jdt.internal.compiler.lookup.MethodScope; 17 import org.eclipse.jdt.internal.compiler.lookup.TypeBinding; 18 19 public class SelectionOnArgumentName extends Argument { 20 21 public SelectionOnArgumentName(char[] name , long posNom , TypeReference tr , int modifiers){ 22 23 super(name, posNom, tr, modifiers); 24 } 25 26 public void bind(MethodScope scope, TypeBinding typeBinding, boolean used) { 27 28 super.bind(scope, typeBinding, used); 29 throw new SelectionNodeFound(binding); 30 } 31 32 public StringBuffer print(int indent, StringBuffer output) { 33 34 printIndent(indent, output); 35 output.append("<SelectionOnArgumentName:"); if (type != null) type.print(0, output).append(' '); 37 output.append(name); 38 if (initialization != null) { 39 output.append(" = "); initialization.printExpression(0, output); 41 } 42 return output.append('>'); 43 } 44 45 public void resolve(BlockScope scope) { 46 47 super.resolve(scope); 48 throw new SelectionNodeFound(binding); 49 } 50 } 51 | Popular Tags |