public class IntrospectorBase
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set |
cachedClassNames
Holds the qualified class names for the classes we hold in the
classMethodMaps hash.
|
protected java.util.Map |
classMethodMaps
Holds the method maps for the classes we know about, keyed by Class
object.
|
| Constructor and Description |
|---|
IntrospectorBase() |
| 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 java.util.Map classMethodMaps
protected java.util.Set cachedClassNames
public java.lang.reflect.Method getMethod(java.lang.Class c,
java.lang.String name,
java.lang.Object[] params)
throws java.lang.Exception
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.Exception - on any logical error.protected ClassMap createClassMap(java.lang.Class c)
c - class.ClassMapprotected void clearCache()