|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xml.utils.synthetic.reflection.EntryPoint org.apache.xml.utils.synthetic.reflection.Method
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...?
Field Summary |
Fields inherited from class org.apache.xml.utils.synthetic.reflection.EntryPoint |
name, realE, realep, realP, returntype |
Constructor Summary | |
Method(Method realmethod)
Insert the method's description here. |
|
Method(Method ctor,
Class declaringclass)
Insert the method's description here. |
|
Method(String name,
Class declaringclass)
Insert the method's description here. |
Method Summary | |
int |
hashCode()
Returns a hashcode for this Constructor. |
Object |
invoke(Object obj,
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 |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.xml.utils.synthetic.reflection.Member |
getDeclaringClass, getModifiers, setDeclaringClass, setModifiers |
Constructor Detail |
public Method(String name, Class declaringclass)
Creation date: (12-27-99 2:31:39 PM)
name
- declaringclass
- public Method(Method ctor, Class declaringclass)
Creation date: (12-27-99 2:31:39 PM)
ctor
- declaringclass
- public Method(Method realmethod)
Creation date: (12-27-99 2:31:39 PM)
realmethod
- Method Detail |
public int hashCode()
hashCode
in class EntryPoint
public Object invoke(Object obj, Object[] args) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
obj
- args
-
IllegalAccessException
IllegalArgumentException
InvocationTargetException
public void setReturnType(Class returntype) throws SynthesisException
returntype
-
SynthesisException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |