org.apache.velocity.util.introspection
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.Constructor and Description |
---|
ClassMap(java.lang.Class clazz,
Log log)
Standard constructor
|
Modifier and Type | Method and Description |
---|---|
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.Copyright © 2000-2014. All Rights Reserved.