@Override public boolean visit(CompilationUnit node) { if (node.getAST().apiLevel() >= JLS9) { if (node.getModule() != null) { node.getModule().accept(this); } } 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; }
public boolean visit(CompilationUnit node) { if (node.getAST().apiLevel() >= JLS9) { if (node.getModule() != null) { node.getModule().accept(this); } } 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; }
@Override public boolean visit(CompilationUnit node) { if (node.getAST().apiLevel() >= JLS9) { if (node.getModule() != null) { node.getModule().accept(this); } } if (node.getPackage() != null) { node.getPackage().accept(this); } for (Iterator<ImportDeclaration> it= node.imports().iterator(); it.hasNext();) { ImportDeclaration d= it.next(); d.accept(this); } for (Iterator<AbstractTypeDeclaration> it= node.types().iterator(); it.hasNext();) { AbstractTypeDeclaration d= it.next(); d.accept(this); } return false; }