org.jboss.aop.pointcut
Class MethodMatcher

java.lang.Object
  extended by org.jboss.aop.pointcut.MatcherHelper
      extended by org.jboss.aop.pointcut.MethodMatcher
All Implemented Interfaces:
PointcutExpressionParserVisitor
Direct Known Subclasses:
ExecutionMethodMatcher

public class MethodMatcher
extends MatcherHelper

Comment

Version:
$Revision: 70842 $
Author:
Bill Burke

Field Summary
protected  Advisor advisor
           
protected  String classname
           
protected  javassist.CtMethod ctMethod
           
protected  boolean isInstanceof
           
protected  Class<?> matchedClass
           
protected  int matchLevel
           
protected  int methodModifiers
           
protected  String methodName
           
protected  Method refMethod
           
 
Fields inherited from class org.jboss.aop.pointcut.MatcherHelper
manager, start
 
Constructor Summary
MethodMatcher(Advisor advisor, javassist.CtMethod method, ASTStart start)
           
MethodMatcher(Advisor advisor, Method method, ASTStart start)
           
 
Method Summary
 Boolean classMatchesAll(ClassExpression expr)
           
 Class<?> getMatchedClass()
           
 int getMatchLevel()
           
 boolean isInstanceOf()
           
 Boolean matches(ASTMethod node)
           
protected  boolean matchesClass(ASTMethod node)
           
protected  boolean matchesExceptions(ASTMethod node)
           
protected  boolean matchesIdentifier(ASTMethod node)
           
protected  boolean matchesModifiers(ASTMethod node)
           
protected  boolean matchesParameters(ASTMethod node)
           
protected  boolean matchesReturnType(ASTMethod node)
           
protected  Boolean resolvePointcut(Pointcut p)
           
 Object visit(ASTAll node, Object data)
           
 Object visit(ASTMethod node, Object data)
           
 
Methods inherited from class org.jboss.aop.pointcut.MatcherHelper
matches, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

advisor

protected Advisor advisor

ctMethod

protected javassist.CtMethod ctMethod

refMethod

protected Method refMethod

methodModifiers

protected int methodModifiers

classname

protected String classname

methodName

protected String methodName

matchedClass

protected Class<?> matchedClass

matchLevel

protected int matchLevel

isInstanceof

protected boolean isInstanceof
Constructor Detail

MethodMatcher

public MethodMatcher(Advisor advisor,
                     javassist.CtMethod method,
                     ASTStart start)

MethodMatcher

public MethodMatcher(Advisor advisor,
                     Method method,
                     ASTStart start)
Method Detail

getMatchedClass

public Class<?> getMatchedClass()

getMatchLevel

public int getMatchLevel()

isInstanceOf

public boolean isInstanceOf()

resolvePointcut

protected Boolean resolvePointcut(Pointcut p)
Specified by:
resolvePointcut in class MatcherHelper

visit

public Object visit(ASTMethod node,
                    Object data)
Specified by:
visit in interface PointcutExpressionParserVisitor
Overrides:
visit in class MatcherHelper

matches

public Boolean matches(ASTMethod node)

visit

public Object visit(ASTAll node,
                    Object data)
Specified by:
visit in interface PointcutExpressionParserVisitor
Overrides:
visit in class MatcherHelper

classMatchesAll

public Boolean classMatchesAll(ClassExpression expr)

matchesModifiers

protected boolean matchesModifiers(ASTMethod node)

matchesClass

protected boolean matchesClass(ASTMethod node)

matchesIdentifier

protected boolean matchesIdentifier(ASTMethod node)

matchesExceptions

protected boolean matchesExceptions(ASTMethod node)

matchesReturnType

protected boolean matchesReturnType(ASTMethod node)

matchesParameters

protected boolean matchesParameters(ASTMethod node)


Copyright © 2008 JBoss, a division of Red Hat, Inc.. All Rights Reserved.