Finding methods as well as property getters & setters.
| Modifier and Type | Field and Description |
|---|---|
| private volatile SoftReference | ref
The soft reference to the introspector currently in use. |
| protected final Log | rlog
The logger to use for all warnings & errors. |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected final IntrospectorBase | |
| public Class | Returns: the class instance or null if it could not be foundthe class name className)Gets a class by name through this introspector class loader. |
| public final Constructor | Returns: ajava.
or null if no unambiguous contructor could be found through introspection.the object ctorHandle, Object[] contructor arguments args)Returns a general constructor. |
| public final Field | Returns: ajava. or null if it does not exist or is not accessibleClass in which the field search is taking place c, String Name of the field being searched for key)Gets the field named by |
| public final String[] | Returns: the class field namesthe class c)Gets the accessible field names known for a given class. |
| public final AbstractExecutor. | Returns: aAbstractExecutor..the object to base the property from. obj, Object property name identifier)Return a property getter. |
| public final Method | Returns: ajava.
or null if no unambiguous method could be found through introspection.Class in which the method search is taking place c, String Name of the method being searched for name, Object[] An array of Objects (not Classes) that describe the
the parameters params)Gets the method defined by |
| public final Method | Returns: ajava.
or null if no unambiguous method could be found through introspection.Class in which the method search is taking place c, MethodKey MethodKey of the method being searched for key)Gets the method defined by |
| public final AbstractExecutor. | Returns: aAbstractExecutor..the object obj, String the method name name, Object[] method arguments args)Returns a general method. |
| public final String[] | Returns: the class method namesthe class c)Gets the accessible methods names known for a given class. |
| public final Method[] | Returns: the array of methodsthe class c, final String the seeked methods name methodName)Gets all the methods with a given name from this map. |
| public final AbstractExecutor. | Returns: aAbstractExecutor..the object to base the property from. obj, final Object property name (or identifier) identifier, Object value to set arg)Return a property setter. |
| public void | setClassLoader(ClassLoader
the loader to use loader)Sets the underlying class loader for class solving resolution. |
| protected Integer | |
| protected String |
| ref | back to summary |
|---|---|
| private volatile SoftReference<IntrospectorBase> ref The soft reference to the introspector currently in use. | |
| rlog | back to summary |
|---|---|
| protected final Log rlog The logger to use for all warnings & errors. | |
| Introspector | back to summary |
|---|---|
| protected Introspector(Log log) Creates an introspector.
| |
| base | back to summary |
|---|---|
| protected final IntrospectorBase base() Gets the current introspector base. If the reference has been collected, this method will recreate the underlying introspector.
| |
| getClassByName | back to summary |
|---|---|
| public Class Gets a class by name through this introspector class loader. | |
| getConstructor | back to summary |
|---|---|
| public final Constructor Returns a general constructor.
| |
| getField | back to summary |
|---|---|
| public final Field getField(Class<?> c, String key) Gets the field named by
| |
| getFieldNames | back to summary |
|---|---|
| public final String[] getFieldNames(Class<?> c) Gets the accessible field names known for a given class. | |
| getGetExecutor | back to summary |
|---|---|
| public final AbstractExecutor. Return a property getter.
| |
| getMethod | back to summary |
|---|---|
| public final Method getMethod(Class<?> c, String name, Object[] params) Gets the method defined by
| |
| getMethod | back to summary |
|---|---|
| public final Method getMethod(Class<?> c, MethodKey key) Gets the method defined by
| |
| getMethodExecutor | back to summary |
|---|---|
| public final AbstractExecutor. Returns a general method.
| |
| getMethodNames | back to summary |
|---|---|
| public final String[] getMethodNames(Class<?> c) Gets the accessible methods names known for a given class. | |
| getMethods | back to summary |
|---|---|
| public final Method[] getMethods(Class<?> c, final String methodName) Gets all the methods with a given name from this map. | |
| getSetExecutor | back to summary |
|---|---|
| public final AbstractExecutor. Return a property setter.
| |
| setClassLoader | back to summary |
|---|---|
| public void setClassLoader(ClassLoader loader) Sets the underlying class loader for class solving resolution.
| |
| toInteger | back to summary |
|---|---|
| protected Integer toInteger(Object arg) Coerce an Object to an Integer. | |
| toString | back to summary |
|---|---|
| protected String toString(Object arg) Coerce an Object to a String. | |