org.apache.commons.jexl.util.introspection
public class IntrospectorBase extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
classMethodMaps
Holds the method maps for the classes we know about, keyed by Class
object.
|
Constructor and Description |
---|
IntrospectorBase(org.apache.commons.logging.Log rlog) |
Modifier and Type | Method and Description |
---|---|
protected void |
clearCache()
Clears the classmap and classname caches.
|
protected ClassMap |
createClassMap(java.lang.Class c)
Creates a class map for specific class and registers it in the cache.
|
java.lang.reflect.Method |
getMethod(java.lang.Class c,
java.lang.String name,
java.lang.Object[] params)
Gets the method defined by
name and params
for the Class c . |
protected final java.util.Map classMethodMaps
public java.lang.reflect.Method getMethod(java.lang.Class c, java.lang.String name, java.lang.Object[] params) throws java.lang.IllegalArgumentException, MethodMap.AmbiguousException
name
and params
for the Class c
.c
- Class in which the method search is taking placename
- Name of the method being searched forparams
- An array of Objects (not Classes) that describe the the
parametersjava.lang.IllegalArgumentException
- When the parameters passed in can not be used for introspection.MethodMap.AmbiguousException
- When the method map contains more than one match for the requested signature.protected ClassMap createClassMap(java.lang.Class c)
c
- class.ClassMap
protected void clearCache()
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.