List of usage examples for org.aspectj.org.eclipse.jdt.core.dom DeclareParentsDeclaration parentTypePatterns
ASTNode.NodeList parentTypePatterns
To view the source code for org.aspectj.org.eclipse.jdt.core.dom DeclareParentsDeclaration parentTypePatterns.
Click Source Link
From source file:ajdtplugin.AjNaiveASTFlattener.java
License:Open Source License
public boolean visit(DeclareParentsDeclaration node) { printIndent();//from ww w .j av a2s. c om 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; }