Beispiel #1
0
 public void visit(NormalAnnotationExpr n, Object arg) {
   n.getName().accept(this, arg);
   for (Iterator<MemberValuePair> i = n.getPairs().iterator(); i.hasNext(); ) {
     MemberValuePair m = i.next();
     m.accept(this, arg);
     if (i.hasNext()) {}
   }
 }
 /*
  * @see ASTVisitor#visit(NormalAnnotation)
  * @since 3.0
  */
 @Override
 public boolean visit(NormalAnnotation node) {
   this.fBuffer.append("@"); // $NON-NLS-1$
   node.getTypeName().accept(this);
   this.fBuffer.append("("); // $NON-NLS-1$
   for (Iterator<MemberValuePair> it = node.values().iterator(); it.hasNext(); ) {
     MemberValuePair p = it.next();
     p.accept(this);
     if (it.hasNext()) {
       this.fBuffer.append(","); // $NON-NLS-1$
     }
   }
   this.fBuffer.append(")"); // $NON-NLS-1$
   return false;
 }