public class InheritableMethodExtractor extends UnitypeMethodExtractor
A two-level MethodExtractor where the super type acts as an additional source of information,
e.g. accessing annotations in method filters.
| Constructor and Description |
|---|
InheritableMethodExtractor(Class<T> owningType,
Class<? super T> superType)
Creates a
MethodExtractor with a super type that acts as an additional
source of information for MethodFilters, e.g. |
| Modifier and Type | Method and Description |
|---|---|
Collection<Method> |
getMethods(MethodFilter filter)
Returns accessible methods that pass the given filter.
|
Collection<Method> |
getProxyableMethods()
Returns all methods that can be proxied.
|
Collection<Method> |
getPublicMethods()
Returns all
public methods that are proxyable. |
protected boolean |
isObjectMethod(Method method)
True if the method is declared by
java.lang.Object. |
protected boolean |
isProxyable(Method method)
Determines if the given method is proxyable.
|
getOwningPackageName, getOwningTypegetPackageName, isIncludeObjectMethods, setIncludeObjectMethodspublic InheritableMethodExtractor(Class<T> owningType, Class<? super T> superType)
MethodExtractor with a super type that acts as an additional
source of information for MethodFilters, e.g. in exposing annotations.
In most cases, the super type will be an interface.T - The Type of the method classowningType - The method type to be proxiedsuperType - Any super type of the method typepublic Collection<Method> getProxyableMethods()
private, static, or
final.public Collection<Method> getPublicMethods()
public methods that are proxyable.public Collection<Method> getMethods(MethodFilter filter)
filter - The method filterprotected boolean isObjectMethod(Method method)
java.lang.Object.isObjectMethod in class UnitypeMethodExtractormethod - The methodObjectprotected boolean isProxyable(Method method)
isProxyable in class UnitypeMethodExtractormethod - The method to testCopyright © 2014. All rights reserved.