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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user