Example usage for org.aspectj.org.eclipse.jdt.core.dom AjTypeDeclaration getPointcuts

List of usage examples for org.aspectj.org.eclipse.jdt.core.dom AjTypeDeclaration getPointcuts

Introduction

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

Prototype

public PointcutDeclaration[] getPointcuts() 

Source Link

Usage

From source file:org.eclipse.ajdt.core.tests.dom.rewrite.ASTRewritingPointcutDeclTest.java

License:Open Source License

public static PointcutDeclaration findPointcutDeclaration(AjTypeDeclaration typeDecl, String pointcutName) {
    PointcutDeclaration[] pointcuts = typeDecl.getPointcuts();
    for (int i = 0; i < pointcuts.length; i++) {
        if (pointcutName.equals(pointcuts[i].getName().getIdentifier())) {
            return pointcuts[i];
        }/*ww  w .  j a va  2 s.  c o  m*/
    }
    return null;
}