Package org.jboss.aop.pointcut.ast

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


      this.constructorMethod = constructorMethod;
   }

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


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

   }

   public Object visit(ASTAll node, Object data)
   {
      Boolean matches = Boolean.FALSE;
      ClassExpression expr = node.getClazz();
     
      if (ctMethod != null)
      {
         return classMatchesAll(expr);
      }
View Full Code Here

      else if (node.getMethodIdentifier().isImplements() || node.getMethodIdentifier().isImplementing())
      {
         try
         {
            boolean exactSuper = node.getMethodIdentifier().isImplements(); //Implementing will check all super classes
            ClassExpression implemented = node.getMethodIdentifier().getImplementsExpression();
            if (ctMethod != null)
            {
               if (Util.methodExistsInSuperClassOrInterface(ctMethod, implemented, exactSuper))
               {
                  return true;
View Full Code Here

      }
     
      boolean doMatch(int astIndex, int actualIndex)
      {
         ASTParameter ast = 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 = astParameters.get(astIndex);
         ClassExpression exp = ast.getType();
         if (!matchesClassExpr(exp, params[actualIndex], advisor)) return false;
         return true;
      }
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

   protected ASTStart ast;

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

         }
      }
     
      try
      {
         ClassExpression type = node.getType();
         if (ctField != null)
         {
            if (!Util.matchesClassExpr(type, ctField.getType(), advisor)) return Boolean.FALSE;
            if (!Util.matchesClassExpr(node.getClazz(), ctField.getDeclaringClass(), advisor)) return Boolean.FALSE;
         }
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

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.