Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Field Summary

Fields inherited from class org.jboss.aop.pointcut.TypeMatcher
`advisor, clazz, ctClass`

Constructor Summary
`DeclareTypeMatcher(Advisor advisor, Class clazz)`
`DeclareTypeMatcher(Advisor advisor, javassist.CtClass ctClass)`

Method Summary
`Object` | `visit(ASTHasField node, Object data)`
`Object` | `visit(ASTHas node, Object data)`

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`

Constructor Detail

### DeclareTypeMatcher

    public DeclareTypeMatcher(Advisor advisor,
                              Class clazz)

### DeclareTypeMatcher

    public DeclareTypeMatcher(Advisor advisor,
                              javassist.CtClass ctClass)

Method Detail

### 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`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 JBoss Inc. All Rights Reserved.