Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.dynjs.runtime.linker.java;
 
 
public class JSInvocationHandler implements InvocationHandler {
    private ExecutionContext context;
    private JSObject implementation;
    public JSInvocationHandler(ExecutionContext contextJSObject implementation) {
        this. = context;
        this. = implementation;
    }
    @Override
    public Object invoke(Object proxyMethod methodObject[] argsthrows Throwable {
        String name = method.getName();
        Object function = this..get(this.name);
        if (!(function instanceof JSFunction)) {
            return .;
        }
        if (args == null) {
            return this..call((JSFunctionfunctionproxy);
        } else {
            return this..call((JSFunctionfunctionproxyargs);
        }
    }
New to GrepCode? Check out our FAQ X