Constructor and Description |
---|
ClassMap(Class clazz)
Standard constructor
|
Modifier and Type | Method and Description |
---|---|
Method |
findMethod(String name,
Object[] params)
Find a Method using the methodKey provided.
|
static Method |
getPublicMethod(Method method)
For a given method, retrieves its publicly accessible counterpart.
|
public ClassMap(Class clazz)
clazz
- the Classpublic Method findMethod(String name, Object[] params) throws MethodMap.AmbiguousException
Find a Method using the methodKey provided.
Look in the methodMap for an entry. If found, it'll either be a CACHE_MISS, in which case we simply give up, or it'll be a Method, in which case, we return it.
If nothing is found, then we must actually go and introspect the method from the MethodMap.
name
- method nameparams
- method paramsnull
MethodMap.AmbiguousException
- if ambiguous namepublic static Method getPublicMethod(Method method)
method
- a method whose publicly callable counterpart is requested.Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.