Example usage for org.eclipse.jdt.core.dom PackageDeclaration accept

List of usage examples for org.eclipse.jdt.core.dom PackageDeclaration accept

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.dom PackageDeclaration accept.

Prototype

public final void accept(ASTVisitor visitor) 

Source Link

Document

Accepts the given visitor on a visit of the current node.

Usage

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;
}