org.jboss.aop.pointcut
Class DeclareTypeMatcher
java.lang.Object
org.jboss.aop.pointcut.TypeMatcher
org.jboss.aop.pointcut.DeclareTypeMatcher
- All Implemented Interfaces:
- TypeExpressionParserVisitor
- public class DeclareTypeMatcher
- extends TypeMatcher
Same as TypeMatcher apart from that hasfield() and has() only check for existence
of field/method/constructor on the class itself, and do not check the superclass.
Used by DeclareDef to enforce implementation of methods etc.
- Version:
- $Revision: 1.2 $
- Author:
- Kabir Khan
Methods inherited from class org.jboss.aop.pointcut.TypeMatcher |
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 |
DeclareTypeMatcher
public DeclareTypeMatcher(Advisor advisor,
Class clazz)
DeclareTypeMatcher
public DeclareTypeMatcher(Advisor advisor,
javassist.CtClass ctClass)
visit
public Object visit(ASTHas node,
Object data)
- Specified by:
visit
in interface TypeExpressionParserVisitor
- Overrides:
visit
in class TypeMatcher
visit
public Object visit(ASTHasField node,
Object data)
- Specified by:
visit
in interface TypeExpressionParserVisitor
- Overrides:
visit
in class TypeMatcher
Copyright © 2004 JBoss Inc. All Rights Reserved.