/*
  * @see ASTVisitor#visit(JavaScriptUnit)
  */
 public boolean visit(JavaScriptUnit node) {
   if (node.getPackage() != null) {
     node.getPackage().accept(this);
   }
   for (Iterator it = node.imports().iterator(); it.hasNext(); ) {
     ImportDeclaration d = (ImportDeclaration) it.next();
     d.accept(this);
   }
   for (Iterator it = node.types().iterator(); it.hasNext(); ) {
     AbstractTypeDeclaration d = (AbstractTypeDeclaration) it.next();
     d.accept(this);
   }
   return false;
 }
 /*
  * @see ASTVisitor#visit(ImportDeclaration)
  */
 public boolean visit(ImportDeclaration node) {
   if (node.isFileImport()) return false;
   this.fBuffer.append("import "); // $NON-NLS-1$
   if (node.getAST().apiLevel() >= AST.JLS3) {
     if (node.isStatic()) {
       this.fBuffer.append("static "); // $NON-NLS-1$
     }
   }
   node.getName().accept(this);
   if (node.isOnDemand()) {
     this.fBuffer.append(".*"); // $NON-NLS-1$
   }
   this.fBuffer.append(";"); // $NON-NLS-1$
   return false;
 }