Example usage for org.aspectj.org.eclipse.jdt.core.dom DeclareParentsDeclaration getChildTypePattern

List of usage examples for org.aspectj.org.eclipse.jdt.core.dom DeclareParentsDeclaration getChildTypePattern

Introduction

In this page you can find the example usage for org.aspectj.org.eclipse.jdt.core.dom DeclareParentsDeclaration getChildTypePattern.

Prototype

public TypePattern getChildTypePattern() 

Source Link

Usage

From source file:ajdtplugin.AjNaiveASTFlattener.java

License:Open Source License

public boolean visit(DeclareParentsDeclaration node) {
    printIndent();//  ww  w  .j  a  v  a 2  s  . co m
    this.buffer.append("declare parents: ");
    node.getChildTypePattern().accept(this);

    if (node.isExtends()) {
        this.buffer.append(" extends ");
    } else {
        this.buffer.append(" implements ");
    }

    for (Iterator<?> it = node.parentTypePatterns().iterator(); it.hasNext();) {
        TypePattern typePat = (TypePattern) it.next();
        typePat.accept(this);
        if (it.hasNext()) {
            this.buffer.append(", ");
        }
    }

    this.buffer.append(";\n");

    return false;
}