List of usage examples for org.aspectj.weaver.patterns IfPointcut makeIfFalsePointcut
public static IfPointcut makeIfFalsePointcut(State state)
From source file:org.caesarj.compiler.aspectj.CaesarWrapperPatternParser.java
License:Open Source License
/** * //from ww w. j a v a2 s. c o 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; }