![JAR search and dependency download from the Maven repository](/logo.png)
org.snapscript.bridge.android.ProxyBuilderInvocation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snap-all Show documentation
Show all versions of snap-all Show documentation
Dynamic scripting for the JVM
package org.snapscript.bridge.android;
import java.lang.reflect.Method;
import org.snapscript.core.InternalStateException;
import org.snapscript.core.Result;
import org.snapscript.core.ResultType;
import org.snapscript.core.Scope;
import org.snapscript.core.function.Invocation;
import org.snapscript.dx.stock.ProxyBuilder;
public class ProxyBuilderInvocation implements Invocation {
private final Method method;
public ProxyBuilderInvocation(Method method) {
this.method = method;
}
@Override
public Result invoke(Scope scope, Object value, Object... arguments) {
try {
Object result = ProxyBuilder.callSuper(value, method, arguments);
return ResultType.getNormal(result);
}catch(Throwable e) {
throw new InternalStateException("Could not invoke super", e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy