Added public FunctionObject.getMethodOrConstructor() to resolve

http://bugzilla.mozilla.org/show_bug.cgi?id=108719


git-svn-id: svn://10.0.0.236/trunk@144397 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
igor%mir2.org
2003-07-02 21:07:44 +00:00
parent c39b29646d
commit f44b752b1d

View File

@@ -219,6 +219,18 @@ public class FunctionObject extends BaseFunction
return getArity();
}
/**
* Get Java method or constructor this function represent.
*/
public Member getMethodOrConstructor()
{
if (method != null) {
return method;
} else {
return ctor;
}
}
static Method findSingleMethod(Method[] methods, String name)
{
Method found = null;