Package org.jboss.aop.pointcut.ast

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


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


      this.constructorMethod = constructorMethod;
   }

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

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

   protected ASTStart ast;

   public ArrayReplacement(String name, String exp)
   {
      this.name = name;
      this.classExpr = new ClassExpression(exp);
   }
View Full Code Here

      }
     
      boolean doMatch(int astIndex, int actualIndex)
      {
         ASTParameter ast = (ASTParameter) astParameters.get(astIndex);
         ClassExpression exp = ast.getType();

         if (exp.isSimple())
         {
            String asString = ClassExpression.simpleType(params[actualIndex]);
            if (!exp.matches(asString)) return false;
         }
         else
         {
            if (!Util.matchesClassExpr(exp, params[actualIndex], advisor)) return false;
         }
View Full Code Here

      }
     
      boolean doMatch(int astIndex, int actualIndex)
      {
         ASTParameter ast = (ASTParameter) astParameters.get(astIndex);
         ClassExpression exp = ast.getType();
         if (!matchesClassExpr(exp, params[actualIndex], advisor)) return false;
         return true;
      }
View Full Code Here

   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

      return node.jjtGetChild(0).jjtAccept(this, null);
   }

   public Object visit(ASTMethod node, Object data)
   {
      ClassExpression classExpression = node.getClazz();
      return matchClass(classExpression);
   }
View Full Code Here

      return Boolean.FALSE;
   }

   public Object visit(ASTConstructor node, Object data)
   {
      ClassExpression classExpression = node.getClazz();
      return matchClass(classExpression);
   }
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.