Example usage for org.aspectj.org.eclipse.jdt.core.dom PointcutDeclaration MODIFIERS_PROPERTY

List of usage examples for org.aspectj.org.eclipse.jdt.core.dom PointcutDeclaration MODIFIERS_PROPERTY

Introduction

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

Prototype

SimplePropertyDescriptor MODIFIERS_PROPERTY

To view the source code for org.aspectj.org.eclipse.jdt.core.dom PointcutDeclaration MODIFIERS_PROPERTY.

Click Source Link

Document

The "modifiers" structural property of this node type (JLS2 API only).

Usage

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

License:Open Source License

public boolean visit(PointcutDeclaration node) {
    // ajh02: method added
    if (!hasChildrenChanges(node)) {
        return doVisitUnchangedChildren(node);
    }/* w  w w .  j  av a  2 s. co  m*/
    int pos = rewriteJavadoc(node, PointcutDeclaration.JAVADOC_PROPERTY);
    if (node.getAST().apiLevel() == JLS2_INTERNAL) {
        rewriteModifiers(node, PointcutDeclaration.MODIFIERS_PROPERTY, pos);
    } else {
        pos = rewriteModifiers2(node, PointcutDeclaration.MODIFIERS2_PROPERTY, pos);
    }
    // pointcut name
    pos = rewriteRequiredNode(node, PointcutDeclaration.NAME_PROPERTY);
    return false;
}