List of usage examples for org.eclipse.jdt.core.dom PackageDeclaration accept
public final void accept(ASTVisitor visitor)
From source file:org.eclipse.xtend.core.javaconverter.JavaASTFlattener.java
License:Open Source License
@Override public boolean visit(final CompilationUnit it) { boolean _isDummyType = this._aSTFlattenerUtils .isDummyType(IterableExtensions.<AbstractTypeDeclaration>head(it.types())); boolean _not = (!_isDummyType); if (_not) {/*from w ww .jav a 2 s .co m*/ PackageDeclaration _package = it.getPackage(); if (_package != null) { _package.accept(this); } this.visitAll(it.imports()); } this.visitAll(it.types()); return false; }