1 11 package org.eclipse.jdt.internal.codeassist.complete; 12 13 import org.eclipse.jdt.internal.compiler.ast.JavadocSingleNameReference; 14 import org.eclipse.jdt.internal.compiler.lookup.BlockScope; 15 import org.eclipse.jdt.internal.compiler.lookup.TypeBinding; 16 17 public class CompletionOnJavadocParamNameReference extends JavadocSingleNameReference implements CompletionOnJavadoc { 18 public int completionFlags = JAVADOC; 19 public char[][] missingParams; 20 public char[][] missingTypeParams; 21 22 public CompletionOnJavadocParamNameReference(char[] name, long pos, int start, int end) { 23 super(name, pos, start, end); 24 } 25 26 public CompletionOnJavadocParamNameReference(JavadocSingleNameReference nameRef) { 27 super(nameRef.token, (((long)nameRef.sourceStart)<<32)+nameRef.sourceEnd, nameRef.tagSourceStart, nameRef.tagSourceStart); 28 } 29 30 33 public void addCompletionFlags(int flags) { 34 this.completionFlags |= flags; 35 } 36 37 42 public int getCompletionFlags() { 43 return this.completionFlags; 44 } 45 46 49 public StringBuffer printExpression(int indent, StringBuffer output) { 50 output.append("<CompletionOnJavadocParamNameReference:"); if (this.token != null) super.printExpression(indent, output); 52 return output.append('>'); 53 } 54 55 58 public TypeBinding reportError(BlockScope scope) { 59 return null; 60 } 61 } 62 | Popular Tags |