Package org.jboss.aop.pointcut.ast

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


   private int matches(ASTMethod method, StackTraceElement[] stack, int index)
   {
      for (int i = index; i >= 0; i--)
      {
         ClassExpression expr = method.getClazz();
         if (!matchesClass(expr, stack[i])) continue;
        
         if (method.getMethodIdentifier().matches(stack[i].getMethodName()))
         {
            return i - 1;
View Full Code Here


  
   private int matches(ASTConstructor con, StackTraceElement[] stack, int index)
   {
      for (int i = index; i >= 0; i--)
      {
         ClassExpression expr = con.getClazz();
         if (!matchesClass(expr, stack[i])) continue;

         if (stack[i].getMethodName().equals("<init>"))
         {
            return i - 1; // match
View Full Code Here

      this.ignore.addAll(ignore);
      ignoreExpressions = new ClassExpression[ignore.size()];
      for (int i = 0 ; i < ignore.size() ; i++)
      {
        String ex = ignore.get(i);
        ignoreExpressions[i] = new ClassExpression(ex);
      }
   }
View Full Code Here

      this.ignore.addAll(ignore);
      ignoreExpressions = new ClassExpression[ignore.size()];
      for (int i = 0 ; i < ignore.size() ; i++)
      {
        String ex = ignore.get(i);
        ignoreExpressions[i] = new ClassExpression(ex);
      }
   }
View Full Code Here

/*     */
/*     */   public InterfaceIntroduction(String name, String exp, String[] interfaces)
/*     */   {
/* 119 */     this.name = name;
/* 120 */     this.interfaces = interfaces;
/* 121 */     this.classExpr = new ClassExpression(exp);
/*     */   }
View Full Code Here

/* 148 */     this.constructorMethod = constructorMethod;
/*     */   }
/*     */
/*     */   public void setClassExpression(String exp)
/*     */   {
/* 153 */     this.classExpr = new ClassExpression(exp);
/*     */   }
View Full Code Here

/*  769 */     this.ignore.addAll(ignore);
/*  770 */     this.ignoreExpressions = new ClassExpression[ignore.size()];
/*  771 */     for (int i = 0; i < ignore.size(); i++)
/*      */     {
/*  773 */       String ex = (String)ignore.get(i);
/*  774 */       this.ignoreExpressions[i] = new ClassExpression(ex);
/*      */     }
/*      */   }
View Full Code Here

/*  79 */       throw new RuntimeException("Should not use both classString and typeExpression");
/*     */     }
/*     */
/*  82 */     if (classString != null)
/*     */     {
/*  84 */       this.classes = new ClassExpression(classString);
/*     */     }
/*  86 */     else if (typeExpression != null)
/*     */     {
/*  88 */       this.ast = new TypeExpressionParser(new StringReader(typeExpression)).Start();
/*     */     }
View Full Code Here

/*     */
/*     */   private int matches(ASTMethod method, StackTraceElement[] stack, int index)
/*     */   {
/*  85 */     for (int i = index; i >= 0; i--)
/*     */     {
/*  87 */       ClassExpression expr = method.getClazz();
/*  88 */       if (!matchesClass(expr, stack[i]))
/*     */         continue;
/*  90 */       if (method.getMethodIdentifier().matches(stack[i].getMethodName()))
/*     */       {
/*  92 */         return i - 1;
View Full Code Here

/*     */
/*     */   private int matches(ASTConstructor con, StackTraceElement[] stack, int index)
/*     */   {
/* 100 */     for (int i = index; i >= 0; i--)
/*     */     {
/* 102 */       ClassExpression expr = con.getClazz();
/* 103 */       if (!matchesClass(expr, stack[i]))
/*     */         continue;
/* 105 */       if (stack[i].getMethodName().equals("<init>"))
/*     */       {
/* 107 */         return i - 1;
View Full Code Here

TOP

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

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.