/* (non-Javadoc)
  * @see org.aspectj.org.eclipse.jdt.internal.compiler.ast.Javadoc#print(int, java.lang.StringBuffer)
  */
 public StringBuffer print(int indent, StringBuffer output) {
   super.print(indent, output);
   if (this.selectedNode != null) {
     String selectedString = null;
     if (this.selectedNode instanceof JavadocFieldReference) {
       JavadocFieldReference fieldRef = (JavadocFieldReference) this.selectedNode;
       if (fieldRef.methodBinding != null) {
         selectedString = "<SelectOnMethod:"; // $NON-NLS-1$
       } else {
         selectedString = "<SelectOnField:"; // $NON-NLS-1$
       }
     } else if (this.selectedNode instanceof JavadocMessageSend) {
       selectedString = "<SelectOnMethod:"; // $NON-NLS-1$
     } else if (this.selectedNode instanceof JavadocAllocationExpression) {
       selectedString = "<SelectOnConstructor:"; // $NON-NLS-1$
     } else if (this.selectedNode instanceof JavadocSingleNameReference) {
       selectedString = "<SelectOnLocalVariable:"; // $NON-NLS-1$
     } else if (this.selectedNode instanceof JavadocSingleTypeReference) {
       JavadocSingleTypeReference typeRef = (JavadocSingleTypeReference) this.selectedNode;
       if (typeRef.packageBinding == null) {
         selectedString = "<SelectOnType:"; // $NON-NLS-1$
       }
     } else if (this.selectedNode instanceof JavadocQualifiedTypeReference) {
       JavadocQualifiedTypeReference typeRef = (JavadocQualifiedTypeReference) this.selectedNode;
       if (typeRef.packageBinding == null) {
         selectedString = "<SelectOnType:"; // $NON-NLS-1$
       }
     } else {
       selectedString = "<SelectOnType:"; // $NON-NLS-1$
     }
     int pos = output.length() - 3;
     output.replace(pos - 2, pos, selectedString + this.selectedNode + '>');
   }
   return output;
 }
 public StringBuffer printExpression(int indent, StringBuffer output) {
   switch (this.kind) {
     case K_CLASS:
       output.append("<CompleteOnClass:"); // $NON-NLS-1$
       break;
     case K_INTERFACE:
       output.append("<CompleteOnInterface:"); // $NON-NLS-1$
       break;
     case K_EXCEPTION:
       output.append("<CompleteOnException:"); // $NON-NLS-1$
       break;
     default:
       output.append("<CompleteOnType:"); // $NON-NLS-1$
       break;
   }
   for (int i = 0; i < this.tokens.length; i++) {
     output.append(this.tokens[i]);
     output.append('.');
   }
   output.append(this.completionIdentifier).append('>');
   return output;
 }
  public StringBuffer printExpression(int indent, StringBuffer output) {

    output.append("<CompleteOnMessageSend:"); // $NON-NLS-1$
    if (!this.receiver.isImplicitThis()) this.receiver.printExpression(0, output).append('.');
    if (this.typeArguments != null) {
      output.append('<');
      int max = this.typeArguments.length - 1;
      for (int j = 0; j < max; j++) {
        this.typeArguments[j].print(0, output);
        output.append(", "); // $NON-NLS-1$
      }
      this.typeArguments[max].print(0, output);
      output.append('>');
    }
    output.append(this.selector).append('(');
    if (this.arguments != null) {
      for (int i = 0; i < this.arguments.length; i++) {
        if (i > 0) output.append(", "); // $NON-NLS-1$
        this.arguments[i].printExpression(0, output);
      }
    }
    return output.append(")>"); // $NON-NLS-1$
  }