|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.apache.xml.utils.synthetic.reflection.EntryPoint
|
+--org.apache.xml.utils.synthetic.reflection.Method
**For internal use only** A Method provides information about, and access to, a single method on a class or interface. The reflected method may be a class method or an instance method (including an abstract method).
A Method permits widening conversions to occur when matching the actual parameters to invokewith the underlying method's formal parameters, but it throws an IllegalArgumentException if a narrowing conversion would occur.
Need to add method body, a la Matt's codebuffer. That may or may not imply retaining the final return value separately and passing in a how-to-use-it mechanism...?
| Constructor Summary | |
Method(java.lang.reflect.Method realmethod)
Insert the method's description here. |
|
Method(java.lang.reflect.Method ctor,
Class declaringclass)
Insert the method's description here. |
|
Method(java.lang.String name,
Class declaringclass)
Insert the method's description here. |
|
| Method Summary | |
int |
hashCode()
Returns a hashcode for this Constructor. |
java.lang.Object |
invoke(java.lang.Object obj,
java.lang.Object[] args)
Invokes the underlying method represented by this Method object, on the specified object with the specified parameters. |
void |
setReturnType(Class returntype)
Method setReturnType |
| Methods inherited from class org.apache.xml.utils.synthetic.reflection.EntryPoint |
addExceptionType,
addParameter,
equals,
getBody,
getDeclaringClass,
getExceptionTypes,
getLanguage,
getModifiers,
getName,
getParameterNames,
getParameterTypes,
getReturnType,
setBody,
setDeclaringClass,
setModifiers,
setName,
toSource,
toString |
| Methods inherited from class java.lang.Object |
getClass,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public Method(java.lang.String name,
Class declaringclass)
Creation date: (12-27-99 2:31:39 PM)
realConstructor - java.lang.reflect.Constructorname - declaringclass -
public Method(java.lang.reflect.Method ctor,
Class declaringclass)
Creation date: (12-27-99 2:31:39 PM)
realConstructor - java.lang.reflect.Constructorctor - declaringclass - public Method(java.lang.reflect.Method realmethod)
Creation date: (12-27-99 2:31:39 PM)
realConstructor - java.lang.reflect.Constructorrealmethod - | Method Detail |
public int hashCode()
public java.lang.Object invoke(java.lang.Object obj,
java.lang.Object[] args)
throws java.lang.IllegalAccessException,
java.lang.IllegalArgumentException,
java.lang.reflect.InvocationTargetException
obj - args -
public void setReturnType(Class returntype)
throws SynthesisException
returntype -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||