| java.lang.Object org.apache.commons.jexl.util.introspection.ClassMap
ClassMap | public class ClassMap (Code) | | Taken from the Velocity tree so we can be self-sufficient
A cache of introspection information for a specific class instance. Keys
java.lang.Method objects by a concatenation of the method name and
the names of classes that make up the parameters.
since: 1.0 author: Jason van Zyl author: Bob McWhirter author: Attila Szegedi author: Geir Magnusson Jr. version: $Id: ClassMap.java 398459 2006-04-30 23:14:30Z dion $ |
Constructor Summary | |
public | ClassMap(Class aClass) Standard constructor.
Parameters: aClass - the class to deconstruct. |
ClassMap | public ClassMap(Class aClass)(Code) | | Standard constructor.
Parameters: aClass - the class to deconstruct. |
findMethod | public Method findMethod(String name, Object[] params) throws MethodMap.AmbiguousException(Code) | | 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.
Parameters: name - method name Parameters: params - method parameters CACHE_MISS or a Method throws: MethodMap.AmbiguousException - if the method and parameters are ambiguous. |
getCachedClass | Class getCachedClass()(Code) | | the class object whose methods are cached by this map. |
getPublicMethod | public static Method getPublicMethod(Method method)(Code) | | For a given method, retrieves its publicly accessible counterpart. This
method will look for a method with same name and signature declared in a
public superclass or implemented interface of this method's declaring
class. This counterpart method is publicly callable.
Parameters: method - a method whose publicly callable counterpart is requested. the publicly callable counterpart method. Note that if theparameter method is itself declared by a public class, thismethod is an identity function. |
|
|