示例#1
0
 public function matches(Sabel_Aspect_Pointcut $pointcut, $method, $class)
 {
     $class = new Sabel_Reflection_Class($class);
     if ($pointcut === null) {
         throw new Sabel_Exception_Runtime("pointcut can't be null");
     }
     if ($pointcut->getClassMatcher()->matches($class)) {
         return $pointcut->getMethodMatcher()->matches($method, $class);
     }
     return false;
 }
示例#2
0
 public function setMethodMatchPattern($pattern)
 {
     $this->pointcut->getMethodMatcher()->setPattern($pattern);
 }