public class DeclaredByMatcher extends Object implements InvocationMatcher
Constructor and Description |
---|
DeclaredByMatcher(Class<?> declaredByType)
Equivalent to
DeclaredByMatcher(Class, boolean) (declaredByType, false) |
DeclaredByMatcher(Class<?> declaredByType,
boolean exactMatch)
Create a
DeclaredByMatcher instance. |
public DeclaredByMatcher(Class<?> declaredByType)
DeclaredByMatcher(Class, boolean)
(declaredByType, false)
declaredByType
- public DeclaredByMatcher(Class<?> declaredByType, boolean exactMatch)
DeclaredByMatcher
instance.declaredByType
- type by which method must be declaredexactMatch
- if false
, declaredByType
may be a subclass of the actual declaring class of the
invocation method.public boolean matches(Invocation invocation)
matches
in interface InvocationMatcher
Copyright © 2005–2014 The Apache Software Foundation. All rights reserved.