Example usage for org.aspectj.weaver.patterns Pointcut SYMBOLIC

List of usage examples for org.aspectj.weaver.patterns Pointcut SYMBOLIC

Introduction

In this page you can find the example usage for org.aspectj.weaver.patterns Pointcut SYMBOLIC.

Prototype

State SYMBOLIC

To view the source code for org.aspectj.weaver.patterns Pointcut SYMBOLIC.

Click Source Link

Usage

From source file:org.caesarj.compiler.aspectj.CaesarPointcut.java

License:Open Source License

static public CaesarPointcut makeMatchesNothing() {
    return new CaesarPointcut(Pointcut.makeMatchesNothing(Pointcut.SYMBOLIC));
}

From source file:org.caesarj.compiler.aspectj.CaesarWrapperPatternParser.java

License:Open Source License

/**
 * /*from  ww w  .  j  av  a2s . co  m*/
 * @return
 */
private CaesarPointcutWrapper parseIfPointcut() {
    String kind = parseIdentifier();
    eat("(");
    CaesarPointcutWrapper w = null;
    if (maybeEatIdentifier("true")) {
        w = new CaesarPointcutWrapper(IfPointcut.makeIfTruePointcut(Pointcut.SYMBOLIC));
    }
    if (maybeEatIdentifier("false")) {
        w = new CaesarPointcutWrapper(IfPointcut.makeIfFalsePointcut(Pointcut.SYMBOLIC));
    }
    eat(")");
    if (w == null)
        throw new ParserException("If pointcuts currently accept only 'true' or 'false' as values",
                tokenSource.peek());

    return w;
}