Example usage for org.aspectj.weaver.tools PointcutParser createPointcutParameter

List of usage examples for org.aspectj.weaver.tools PointcutParser createPointcutParameter

Introduction

In this page you can find the example usage for org.aspectj.weaver.tools PointcutParser createPointcutParameter.

Prototype

public PointcutParameter createPointcutParameter(String name, Class<?> type) 

Source Link

Document

Create a pointcut parameter of the given name and type.

Usage

From source file:org.springframework.aop.aspectj.AspectJExpressionPointcut.java

License:Apache License

/**
 * Build the underlying AspectJ pointcut expression.
 *///from  w ww . jav a 2  s. c  o  m
private PointcutExpression buildPointcutExpression(ClassLoader classLoader) {
    PointcutParser parser = initializePointcutParser(classLoader);
    PointcutParameter[] pointcutParameters = new PointcutParameter[this.pointcutParameterNames.length];
    for (int i = 0; i < pointcutParameters.length; i++) {
        pointcutParameters[i] = parser.createPointcutParameter(this.pointcutParameterNames[i],
                this.pointcutParameterTypes[i]);
    }
    return parser.parsePointcutExpression(replaceBooleanOperators(getExpression()),
            this.pointcutDeclarationScope, pointcutParameters);
}