Package org.aspectj.weaver.patterns

Examples of org.aspectj.weaver.patterns.ReferencePointcut


  private void addAllNamed(Pointcut pointcut, List pointcuts) {
    if (pointcut == null) {
      return;
    }
    if (pointcut instanceof ReferencePointcut) {
      ReferencePointcut rp = (ReferencePointcut) pointcut;
      pointcuts.add(rp);
    } else if (pointcut instanceof AndPointcut) {
      AndPointcut ap = (AndPointcut) pointcut;
      addAllNamed(ap.getLeft(), pointcuts);
      addAllNamed(ap.getRight(), pointcuts);
View Full Code Here


   * and a named pointcut called p() will return 'p()..'
   */
  public static String genPointcutDetails(Pointcut pcd) {
    StringBuffer details = new StringBuffer();
    if (pcd instanceof ReferencePointcut) {
      ReferencePointcut rp = (ReferencePointcut) pcd;
      details.append(rp.name).append(DOUBLE_DOTS);
    } else if (pcd instanceof AndPointcut) {
      AndPointcut ap = (AndPointcut) pcd;
      if (ap.getLeft() instanceof ReferencePointcut) {
        details.append(ap.getLeft().toString()).append(DOUBLE_DOTS);
View Full Code Here

      }
 
      String details = "";
      if (ad.pointcutDesignator != null) { 
        if (ad.pointcutDesignator.getPointcut() instanceof ReferencePointcut) {
          ReferencePointcut rp = (ReferencePointcut)ad.pointcutDesignator.getPointcut();
          details += rp.name + "..";
        } else if (ad.pointcutDesignator.getPointcut() instanceof AndPointcut) {
          AndPointcut ap = (AndPointcut)ad.pointcutDesignator.getPointcut();
          if (ap.getLeft() instanceof ReferencePointcut) {
            details += ap.getLeft().toString() + ".."
View Full Code Here

TOP

Related Classes of org.aspectj.weaver.patterns.ReferencePointcut

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.