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

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

Introduction

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

Prototype

public PointcutExpression parsePointcutExpression(String expression, Class<?> inScope,
        PointcutParameter[] formalParameters)
        throws UnsupportedPointcutPrimitiveException, IllegalArgumentException 

Source Link

Document

Parse the given pointcut expression.

Usage

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

License:Apache License

/**
 * Build the underlying AspectJ pointcut expression.
 *///from  ww  w  .  j  a  v  a  2s  .  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);
}