|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.jexl2.internal.Introspector
public class Introspector
Default introspection services.
Finding methods as well as property getters & setters.
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
rlog
The logger to use for all warnings & errors. |
| Constructor Summary | |
|---|---|
protected |
Introspector(org.apache.commons.logging.Log log)
Creates an introspector. |
| Method Summary | |
|---|---|
protected IntrospectorBase |
base()
Gets the current introspector base. |
Constructor<?> |
getConstructor(Object ctorHandle,
Object[] args)
Returns a general constructor. |
protected Field |
getField(Class<?> c,
String key)
Gets the field named by key for the class c. |
String[] |
getFieldNames(Class<?> c)
Gets the accessible field names known for a given class. |
AbstractExecutor.Get |
getGetExecutor(Object obj,
Object identifier)
Return a property getter. |
protected Method |
getMethod(Class<?> c,
MethodKey key)
Gets the method defined by key and for the Class c. |
protected Method |
getMethod(Class<?> c,
String name,
Object[] params)
Gets the method defined by name and
params for the Class c. |
AbstractExecutor.Method |
getMethodExecutor(Object obj,
String name,
Object[] args)
Returns a general method. |
String[] |
getMethodNames(Class<?> c)
Gets the accessible methods names known for a given class. |
AbstractExecutor.Set |
getSetExecutor(Object obj,
Object identifier,
Object arg)
Return a property setter. |
void |
setClassLoader(ClassLoader loader)
Sets the underlying class loader for class solving resolution. |
protected Integer |
toInteger(Object arg)
Coerce an Object to an Integer. |
protected String |
toString(Object arg)
Coerce an Object to a String. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.commons.logging.Log rlog
| Constructor Detail |
|---|
protected Introspector(org.apache.commons.logging.Log log)
log - the logger to use for warnings.| Method Detail |
|---|
protected Integer toInteger(Object arg)
arg - the Object to coerce
protected String toString(Object arg)
arg - the Object to coerce
protected final IntrospectorBase base()
If the reference has been collected, this method will recreate the underlying introspector.
public void setClassLoader(ClassLoader loader)
loader - the loader to use
protected final Field getField(Class<?> c,
String key)
key for the class c.
c - Class in which the field search is taking placekey - Name of the field being searched for
public final String[] getFieldNames(Class<?> c)
c - the class
protected final Method getMethod(Class<?> c,
String name,
Object[] params)
throws IllegalArgumentException
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 parameters
IllegalArgumentException - When the parameters passed in can not be used for introspection.
CSOFF: RedundantThrows
protected final Method getMethod(Class<?> c,
MethodKey key)
throws IllegalArgumentException
key and for the Class c.
c - Class in which the method search is taking placekey - MethodKey of the method being searched for
IllegalArgumentException - When the parameters passed in can not be used for introspection.
CSOFF: RedundantThrowspublic final String[] getMethodNames(Class<?> c)
c - the class
public final Constructor<?> getConstructor(Object ctorHandle,
Object[] args)
ctorHandle - the objectargs - contrusctor arguments
Constructor
public final AbstractExecutor.Method getMethodExecutor(Object obj,
String name,
Object[] args)
obj - the objectname - the method nameargs - method arguments
AbstractExecutor.Method.
public final AbstractExecutor.Get getGetExecutor(Object obj,
Object identifier)
obj - the object to base the property from.identifier - property name
AbstractExecutor.Get.
public final AbstractExecutor.Set getSetExecutor(Object obj,
Object identifier,
Object arg)
obj - the object to base the property from.identifier - property name (or identifier)arg - value to set
AbstractExecutor.Set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||