public Object invoke(Object object, Object[] arguments) { try { return method.setAccessible().invoke(object, arguments); } catch (IllegalArgumentException | IllegalAccessException e) { throw new InvokerInvocationException(e); } catch (InvocationTargetException e) { throw e.getCause() instanceof RuntimeException ? (RuntimeException)e.getCause() : new InvokerInvocationException(e); } }
public final Object invoke(Object object, Object[] arguments) { try { AccessPermissionChecker.checkAccessPermission(cachedMethod); } catch (CacheAccessControlException ex) { throw new InvokerInvocationException(ex); } try { return cachedMethod.invoke(object, arguments); } catch (IllegalArgumentException | IllegalAccessException e) { throw new InvokerInvocationException(e); } catch (InvocationTargetException e) { Throwable cause = e.getCause(); throw (cause instanceof RuntimeException && !(cause instanceof MissingMethodException)) ? (RuntimeException) cause : new InvokerInvocationException(e); } }
public Object invokeMethod(String name, Object args) { try { return InvokerHelper.invokeMethod(getResultSet(), name, args); } catch (SQLException se) { throw new InvokerInvocationException(se); } }
throw new InvokerInvocationException(ite.getTargetException()); } catch (Throwable t) { reason = t;
public Object invoke(Object[] argumentArray) { Constructor constr = cachedConstructor; try { return constr.newInstance(argumentArray); } catch (InvocationTargetException e) { throw e.getCause() instanceof RuntimeException ? (RuntimeException)e.getCause() : new InvokerInvocationException(e); } catch (IllegalArgumentException e) { throw createException("failed to invoke constructor: ", constr, argumentArray, e, false); } catch (IllegalAccessException e) { throw createException("could not access constructor: ", constr, argumentArray, e, false); } catch (Exception e) { if (e instanceof RuntimeException) throw (RuntimeException)e; else throw createException("failed to invoke constructor: ", constr, argumentArray, e, true); } }
public static PipeLineClosure resolveProperty(final InvocationContext context, final String property) { CRaSH crash = (CRaSH)context.getSession().get("crash"); if (crash != null) { try { Command<?> cmd = crash.getCommand(property); if (cmd != null) { return new PipeLineClosure(context, property, cmd); } else { return null; } } catch (CommandException e) { throw new InvokerInvocationException(e); } } else { return null; } }
public static SafeCallable resolveMethodInvocation(final InvocationContext context, final String name, final Object args) { CRaSH crash = (CRaSH)context.getSession().get("crash"); if (crash != null) { final Command<?> cmd; try { cmd = crash.getCommand(name); } catch (CommandException ce) { throw new InvokerInvocationException(ce); } if (cmd != null) { return new SafeCallable() { @Override public Object call() { PipeLineClosure closure = new PipeLineClosure(context, name, cmd); return closure.call((Object[])args); } }; } } return null; } }
public final Object invoke(Object object, Object[] arguments) { try { return cachedMethod.invoke(object, arguments); } catch (IllegalArgumentException e) { throw new InvokerInvocationException(e); } catch (IllegalAccessException e) { throw new InvokerInvocationException(e); } catch (InvocationTargetException e) { throw new InvokerInvocationException(e); } }
public Object invoke(Object object, Object[] arguments) { try { return setAccessible().invoke(object, arguments); } catch (IllegalArgumentException e) { throw new InvokerInvocationException(e); } catch (IllegalAccessException e) { throw new InvokerInvocationException(e); } catch (InvocationTargetException e) { throw new InvokerInvocationException(e); } }
public Object invoke(Object object, Object[] arguments) { try { return method.setAccessible().invoke(object, arguments); } catch (IllegalArgumentException e) { throw new InvokerInvocationException(e); } catch (IllegalAccessException e) { throw new InvokerInvocationException(e); } catch (InvocationTargetException e) { throw new InvokerInvocationException(e); } }
public Object invoke(Object object, Object[] arguments) { try { return method.setAccessible().invoke(object, arguments); } catch (IllegalArgumentException e) { throw new InvokerInvocationException(e); } catch (IllegalAccessException e) { throw new InvokerInvocationException(e); } catch (InvocationTargetException e) { throw new InvokerInvocationException(e); } }
public Object invoke(Object object, Object[] arguments) { try { return method.setAccessible().invoke(object, arguments); } catch (IllegalArgumentException e) { throw new InvokerInvocationException(e); } catch (IllegalAccessException e) { throw new InvokerInvocationException(e); } catch (InvocationTargetException e) { throw new InvokerInvocationException(e); } }
public Object invoke(Object object, Object[] arguments) { try { return method.setAccessible().invoke(object, arguments); } catch (IllegalArgumentException e) { throw new InvokerInvocationException(e); } catch (IllegalAccessException e) { throw new InvokerInvocationException(e); } catch (InvocationTargetException e) { throw e.getCause() instanceof RuntimeException ? (RuntimeException)e.getCause() : new InvokerInvocationException(e); } }
public Object invokeMethod(String name, Object args) { try { return InvokerHelper.invokeMethod(getResultSet(), name, args); } catch (SQLException se) { throw new InvokerInvocationException(se); } }
/** * @return the value of the DataflowVariable associated with the property "name". * May block if the value is not scalar. * @see DataflowVariable#getVal */ @Override public Object getProperty(final String property) { try { return ensureToContainVariable(property).getVal(); } catch (InterruptedException e) { throw new InvokerInvocationException(e); } }
public Object invokeMethod(String name, Object args) { try { return InvokerHelper.invokeMethod(getResultSet(), name, args); } catch (SQLException se) { throw new InvokerInvocationException(se); } }
public Object invokeMethod(String name, Object args) { try { return InvokerHelper.invokeMethod(getResultSet(), name, args); } catch (SQLException se) { throw new InvokerInvocationException(se); } }
public Object invokeMethod(String name, Object args) { try { return InvokerHelper.invokeMethod(getResultSet(), name, args); } catch (SQLException se) { throw new InvokerInvocationException(se); } }
public Object invokeMethod(String name, Object args) { try { return InvokerHelper.invokeMethod(getResultSet(), name, args); } catch (SQLException se) { throw new InvokerInvocationException(se); } }
/** * Special logic needed to handle invocation due to not being an instance of MethodClosure itself. See * {@link MetaClassImpl#invokeMethod(Class, Object, String, Object[], boolean, boolean)} and its special handling * of {@code objectClass == MethodClosure.class}. */ protected Object doCall(Object[] arguments) { try { return Checker.checkedCall(getOwner(), false, false, getMethod(), arguments); } catch (Throwable e) { throw new InvokerInvocationException(e); } }