Package org.jboss.aop.pointcut.ast

Examples of org.jboss.aop.pointcut.ast.ASTMethod


   public Object visit(ASTCall node, Object data)
   {
      try
      {
         if (!(node.getBehavior() instanceof ASTMethod)) return Boolean.FALSE;
         ASTMethod astMethod = (ASTMethod) node.getBehavior();
         Advisor calledAdvisor = AspectManager.instance().getTempClassAdvisorIfNotExist(calledClass);
         MethodMatcher methodMatcher = new MethodMatcher(calledAdvisor, calledMethod, null);
         if (!(methodMatcher.matches(astMethod)).booleanValue()) return Boolean.FALSE;
         return Boolean.TRUE;
      }
View Full Code Here


   {
      try
      {
         if (!(node.getBehavior() instanceof ASTMethod)) return Boolean.FALSE;

         ASTMethod astMethod = (ASTMethod) node.getBehavior();

         // do simple checks to avoid loading CtClasses
         if (astMethod.getClazz().isSimple())
         {
            if (!astMethod.getClazz().matches(call.getClassName())) return Boolean.FALSE;
            if (!astMethod.getMethodIdentifier().isAnnotation())
            {
               if (!astMethod.getMethodIdentifier().matches(call.getMethodName())) return Boolean.FALSE;
            }
         }
         CtMethod calledMethod = call.getMethod();
         Advisor calledAdvisor = AspectManager.instance().getTempClassAdvisor(calledMethod.getDeclaringClass());
         MethodMatcher methodMatcher = new MethodMatcher(calledAdvisor, calledMethod, null);
View Full Code Here

/*     */   public Object visit(ASTCall node, Object data)
/*     */   {
/*     */     try
/*     */     {
/*  66 */       if (!(node.getBehavior() instanceof ASTMethod)) return Boolean.FALSE;
/*  67 */       ASTMethod astMethod = (ASTMethod)node.getBehavior();
/*  68 */       Advisor calledAdvisor = AspectManager.instance().getTempClassAdvisorIfNotExist(this.calledClass);
/*  69 */       MethodMatcher methodMatcher = new MethodMatcher(calledAdvisor, this.calledMethod, null);
/*  70 */       if (!methodMatcher.matches(astMethod).booleanValue()) return Boolean.FALSE;
/*  71 */       return Boolean.TRUE;
/*     */     }
View Full Code Here

/*     */   {
/*     */     try
/*     */     {
/*  62 */       if (!(node.getBehavior() instanceof ASTMethod)) return Boolean.FALSE;
/*     */
/*  64 */       ASTMethod astMethod = (ASTMethod)node.getBehavior();
/*     */
/*  67 */       if (astMethod.getClazz().isSimple())
/*     */       {
/*  69 */         if (!astMethod.getClazz().matches(this.call.getClassName())) return Boolean.FALSE;
/*  70 */         if (!astMethod.getMethodIdentifier().isAnnotation())
/*     */         {
/*  72 */           if (!astMethod.getMethodIdentifier().matches(this.call.getMethodName())) return Boolean.FALSE;
/*     */         }
/*     */       }
/*  75 */       CtMethod calledMethod = this.call.getMethod();
/*  76 */       Advisor calledAdvisor = AspectManager.instance().getTempClassAdvisor(calledMethod.getDeclaringClass());
/*  77 */       MethodMatcher methodMatcher = new MethodMatcher(calledAdvisor, calledMethod, null);
View Full Code Here

   public Object visit(ASTCall node, Object data)
   {
      try
      {
         if (!(node.getBehavior() instanceof ASTMethod)) return Boolean.FALSE;
         ASTMethod astMethod = (ASTMethod) node.getBehavior();
         Advisor calledAdvisor = AspectManager.instance().getTempClassAdvisorIfNotExist(calledClass);
         MethodMatcher methodMatcher = new MethodMatcher(calledAdvisor, calledMethod, null);
         if (!(methodMatcher.matches(astMethod)).booleanValue()) return Boolean.FALSE;
         return Boolean.TRUE;
      }
View Full Code Here

TOP

Related Classes of org.jboss.aop.pointcut.ast.ASTMethod

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.