MCPcopy Create free account
hub / github.com/apache/pig / jsCall

Method jsCall

src/org/apache/pig/scripting/js/JsScriptEngine.java:168–172  ·  view source on GitHub ↗

call a javascript function @param functionName the name of the function @param passedParams the parameters to pass @return the result of the function

(String functionName, Object[] passedParams)

Source from the content-addressed store, hash-verified

166 * @return the result of the function
167 */
168 public Object jsCall(String functionName, Object[] passedParams) {
169 Function f = (Function)scope.get(functionName, scope);
170 Object result = f.call(getContext(), scope, scope, passedParams);
171 return result;
172 }
173
174 Scriptable getScope() {
175 return scope;

Callers 1

execMethod · 0.80

Calls 3

getContextMethod · 0.95
getMethod · 0.65
callMethod · 0.45

Tested by

no test coverage detected