View Javadoc

1   /*************************************************
2    * Copyright (c) Shen Li. All rights reserved.  *
3    * http://joyaop.sourceforge.net                *
4    * -------------------------------------------- *
5    * Distributable under LGPL license.            *
6    * See terms of license at gnu.org.             *
7    ************************************************/
8   package net.sf.joyaop.config;
9   
10  import net.sf.joyaop.AspectRuntimeException;
11  import net.sf.joyaop.framework.Pointcut;
12  import net.sf.joyaop.impl.Pointcuts;
13  import org.apache.commons.logging.Log;
14  import org.apache.commons.logging.LogFactory;
15  
16  import java.util.HashMap;
17  import java.util.Map;
18  
19  /***
20   * A primitive parser.
21   *
22   * @author Shen Li
23   */
24  public final class PointcutExpressionParser {
25      public static final String TARGET = "target";
26      public static final String EXECUTION = "execution";
27      public static final String INTERFACE = "interface";
28      public static final String ANNOTATION = "annotation";
29      public static final String NOT = "!";
30      public static final String AND = "AND";
31      public static final String OR = "OR";
32  
33      private static final Log log = LogFactory.getLog(PointcutExpressionParser.class);
34  
35      private final Map pointcutDefinitions = new