Пример #1
0
 @Override
 public Void visitDoStatement(DoStatement node) {
   writer.print("do ");
   visit(node.getBody());
   writer.print(" while (");
   visit(node.getCondition());
   writer.print(");");
   return null;
 }
 /*
  * @see ASTVisitor#visit(DoStatement)
  */
 @Override
 public boolean visit(DoStatement node) {
   this.fBuffer.append("do "); // $NON-NLS-1$
   node.getBody().accept(this);
   this.fBuffer.append(" while ("); // $NON-NLS-1$
   node.getExpression().accept(this);
   this.fBuffer.append(");"); // $NON-NLS-1$
   return false;
 }