net.sf.antcontrib.util
public class Reflector extends Object
| Constructor Summary | |
|---|---|
| Reflector(String name)
Constructor for the wrapper using a classname | |
| Reflector(Object obj)
Constructor using a passed in object. | |
| Method Summary | |
|---|---|
| Object | call(String methodName)
Call a method on the object with no parameters. |
| Object | call(String methodName, Object o)
Call a method with one parameter. |
| Object | call(String methodName, Object o1, Object o2)
Call a method with two parameters. |
| Object | callExplicit(String methodName, String className, Object o)
Call a method with an object using a specific
type as for the method parameter. |
| Object | callExplicit(String methodName, Class classType, Object o)
Call a method with an object using a specific
type as for the method parameter. |
| Object | getObject() |
Parameters: name the classname of the object to construct.
Parameters: obj the object to wrap.
Parameters: methodName the name of the method to call
Returns: the object returned by the method
Parameters: methodName the name of the method to call o the object to use as the parameter, this must be of the same type as the method parameter (not a subclass).
Returns: the object returned by the method
Parameters: methodName the name of the method to call o1 the object to use as the first parameter, this must be of the same type as the method parameter (not a subclass). o2 the object to use as the second parameter, this must be of the same type as the method parameter (not a subclass).
Returns: the object returned by the method
Parameters: methodName the name of the method className the name of the class of the parameter of the method o the object to use as the argument of the method
Returns: the object returned by the method
Parameters: methodName the name of the method classType the class of the parameter of the method o the object to use as the argument of the method
Returns: the object returned by the method
Returns: the wrapped object.