Package org.jboss.aop.pointcut.ast

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


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


/* 319 */       if ((node.getMethodIdentifier().isImplements()) || (node.getMethodIdentifier().isImplementing()))
/*     */       {
/*     */         try
/*     */         {
/* 323 */           boolean exactSuper = node.getMethodIdentifier().isImplements();
/* 324 */           ClassExpression implemented = node.getMethodIdentifier().getImplementsExpression();
/* 325 */           if (this.ctMethod != null)
/*     */           {
/* 327 */             if (Util.methodExistsInSuperClassOrInterface(this.ctMethod, implemented, exactSuper))
/*     */             {
/* 329 */               return true;
View Full Code Here

/*     */     }
/*     */
/*     */     boolean doMatch(int astIndex, int actualIndex)
/*     */     {
/* 851 */       ASTParameter ast = (ASTParameter)this.astParameters.get(astIndex);
/* 852 */       ClassExpression exp = ast.getType();
/* 853 */       return Util.matchesClassExpr(exp, this.params[actualIndex], this.advisor);
/*     */     }
View Full Code Here

/*     */     }
/*     */
/*     */     boolean doMatch(int astIndex, int actualIndex)
/*     */     {
/* 823 */       ASTParameter ast = (ASTParameter)this.astParameters.get(astIndex);
/* 824 */       ClassExpression exp = ast.getType();
/*     */
/* 826 */       if (exp.isSimple())
/*     */       {
/* 828 */         String asString = ClassExpression.simpleType(this.params[actualIndex]);
/* 829 */         if (!exp.matches(asString)) return false;
/*     */
/*     */       }
/* 833 */       else if (!Util.matchesClassExpr(exp, this.params[actualIndex], this.advisor)) { return false;
/*     */       }
/*     */
View Full Code Here

/*     */       }
/*     */     }
/*     */
/*     */     try
/*     */     {
/*  99 */       ClassExpression type = node.getType();
/* 100 */       if (this.ctField != null)
/*     */       {
/* 102 */         if (!Util.matchesClassExpr(type, this.ctField.getType(), this.advisor)) return Boolean.FALSE;
/* 103 */         if (!Util.matchesClassExpr(node.getClazz(), this.ctField.getDeclaringClass(), this.advisor)) return Boolean.FALSE;
/*     */       }
View Full Code Here

/* 163 */     return node.jjtGetChild(0).jjtAccept(this, null);
/*     */   }
/*     */
/*     */   public Object visit(ASTMethod node, Object data)
/*     */   {
/* 168 */     ClassExpression classExpression = node.getClazz();
/* 169 */     return matchClass(classExpression);
/*     */   }
View Full Code Here

/* 193 */     return Boolean.FALSE;
/*     */   }
/*     */
/*     */   public Object visit(ASTConstructor node, Object data)
/*     */   {
/* 198 */     ClassExpression classExpression = node.getClazz();
/* 199 */     return matchClass(classExpression);
/*     */   }
View Full Code Here

/* 199 */     return matchClass(classExpression);
/*     */   }
/*     */
/*     */   public Object visit(ASTField node, Object data)
/*     */   {
/* 205 */     ClassExpression classExpression = node.getClazz();
/* 206 */     return matchClass(classExpression);
/*     */   }
View Full Code Here

/*     */   {
/*  49 */     this.name = name;
/*  50 */     this.tag = tag;
/*  51 */     this.loader = loader;
/*  52 */     this.expr = exp;
/*  53 */     this.classExpr = new ClassExpression(this.expr);
/*     */   }
View Full Code Here

/*     */   protected ASTStart ast;
/*     */
/*     */   public ArrayReplacement(String name, String exp)
/*     */   {
/*  45 */     this.name = name;
/*  46 */     this.classExpr = new ClassExpression(exp);
/*     */   }
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.