1 11 package org.eclipse.jdt.internal.codeassist.complete; 12 13 import org.eclipse.jdt.internal.compiler.CompilationResult; 14 import org.eclipse.jdt.internal.compiler.ast.MethodDeclaration; 15 import org.eclipse.jdt.internal.compiler.lookup.ClassScope; 16 17 public class CompletionOnMethodName extends MethodDeclaration { 18 public int selectorEnd; 19 20 public CompletionOnMethodName(CompilationResult compilationResult){ 21 super(compilationResult); 22 } 23 24 public StringBuffer print(int indent, StringBuffer output) { 25 26 printIndent(indent, output); 27 output.append("<CompletionOnMethodName:"); printModifiers(this.modifiers, output); 29 printReturnType(0, output); 30 output.append(selector).append('('); 31 if (arguments != null) { 32 for (int i = 0; i < arguments.length; i++) { 33 if (i > 0) output.append(", "); arguments[i].print(0, output); 35 } 36 } 37 output.append(')'); 38 if (thrownExceptions != null) { 39 output.append(" throws "); for (int i = 0; i < thrownExceptions.length; i++) { 41 if (i > 0) output.append(", "); thrownExceptions[i].print(0, output); 43 } 44 } 45 return output.append('>'); 46 } 47 48 public void resolve(ClassScope upperScope) { 49 50 super.resolve(upperScope); 51 throw new CompletionNodeFound(this, upperScope); 52 } 53 } 54 | Popular Tags |