package org.simantics.scl.compiler.internal.codegen.utils;
+import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import org.simantics.scl.runtime.function.FunctionImpl1;
Object ret = method.invoke(null, p0);
return returnsVoid ? Tuple0.INSTANCE : ret;
} catch (ReflectiveOperationException e) {
+ if (e instanceof InvocationTargetException) {
+ Throwable cause = e.getCause();
+ if(cause instanceof RuntimeException)
+ throw (RuntimeException)cause;
+ else
+ throw new RuntimeException(cause);
+ }
throw new RuntimeException(e);
}
}
Object ret = method.invoke(null, p0, p1);
return returnsVoid ? Tuple0.INSTANCE : ret;
} catch (ReflectiveOperationException e) {
+ if (e instanceof InvocationTargetException) {
+ Throwable cause = e.getCause();
+ if(cause instanceof RuntimeException)
+ throw (RuntimeException)cause;
+ else
+ throw new RuntimeException(cause);
+ }
throw new RuntimeException(e);
}
}
Object ret = method.invoke(null, p0, p1, p2);
return returnsVoid ? Tuple0.INSTANCE : ret;
} catch (ReflectiveOperationException e) {
+ if (e instanceof InvocationTargetException) {
+ Throwable cause = e.getCause();
+ if(cause instanceof RuntimeException)
+ throw (RuntimeException)cause;
+ else
+ throw new RuntimeException(cause);
+ }
throw new RuntimeException(e);
}
}
Object ret = method.invoke(null, p0, p1, p2, p3);
return returnsVoid ? Tuple0.INSTANCE : ret;
} catch (ReflectiveOperationException e) {
+ if (e instanceof InvocationTargetException) {
+ Throwable cause = e.getCause();
+ if(cause instanceof RuntimeException)
+ throw (RuntimeException)cause;
+ else
+ throw new RuntimeException(cause);
+ }
throw new RuntimeException(e);
}
}
Object ret = method.invoke(null, ps);
return returnsVoid ? Tuple0.INSTANCE : ret;
} catch (ReflectiveOperationException e) {
+ if (e instanceof InvocationTargetException) {
+ Throwable cause = e.getCause();
+ if(cause instanceof RuntimeException)
+ throw (RuntimeException)cause;
+ else
+ throw new RuntimeException(cause);
+ }
throw new RuntimeException(e);
}
}