public class ClassMap
extends java.lang.Object
Method objects by a concatenation of the
method name and the names of classes that make up the parameters.| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.reflect.Method |
findMethod(java.lang.String name,
java.lang.Object[] params)
Find a Method using the method name and parameter objects.
|
java.lang.Class |
getCachedClass()
Returns the class object whose methods are cached by this map.
|
public ClassMap(java.lang.Class clazz,
Log log)
clazz - The class for which this ClassMap gets constructed.public java.lang.Class getCachedClass()
public java.lang.reflect.Method findMethod(java.lang.String name,
java.lang.Object[] params)
throws MethodMap.AmbiguousException
name - The method name to look up.params - An array of parameters for the method.MethodMap.AmbiguousException - When more than one method is a match for the parameters.