/** * Executes a method defined in Ruby script. This method is used when a Ruby * method does not have any argument. * * @param receiver is an instance that will receive this method call. * Ruby's self object will be used if no appropriate receiver * is given. * @param methodName is a method name to be called * @param returnType is the type we want it to convert to * @return an instance of requested Java type */ public <T> T callMethod(Object receiver, String methodName, Class<T> returnType) { return objectAdapter.callMethod(receiver, methodName, returnType); }
/** * Executes a method defined in Ruby script. This method is used when a Ruby * method does not have any argument. * * @param receiver is an instance that will receive this method call. * Ruby's self object will be used if no appropriate receiver * is given. * @param methodName is a method name to be called * @param args is an array of method arguments * @return an instance of requested Java type */ public Object callMethod(Object receiver, String methodName, Object... args) { return objectAdapter.callMethod(receiver, methodName, args); }
/** * Executes a method defined in Ruby script. This method is used when a Ruby * method does not have any argument. * * @param receiver is an instance that will receive this method call. * Ruby's self object will be used if no appropriate receiver * is given. * @param methodName is a method name to be called * @param returnType is the type we want it to convert to * @return an instance of requested Java type */ public <T> T callMethod(Object receiver, String methodName, Class<T> returnType) { return objectAdapter.callMethod(receiver, methodName, returnType); }
/** * Executes a method defined in Ruby script. This method is used when a Ruby * method have multiple arguments. * * @param receiver is an instance that will receive this method call. * Ruby's self object will be used if no appropriate receiver * is given. * @param methodName is a method name to be called * @param args is an array of method arguments * @param returnType is the type we want it to convert to * @return an instance of requested Java type */ public <T> T callMethod(Object receiver, String methodName, Object[] args, Class<T> returnType) { return objectAdapter.callMethod(receiver, methodName, args, returnType); }
/** * Executes a method defined in Ruby script. This method is used when a Ruby * method does not have any argument. * * @param receiver is an instance that will receive this method call. * Ruby's self object will be used if no appropriate receiver * is given. * @param methodName is a method name to be called * @param returnType is the type we want it to convert to * @return an instance of requested Java type */ public <T> T callMethod(Object receiver, String methodName, Class<T> returnType) { return objectAdapter.callMethod(receiver, methodName, returnType); }
/** * Executes a method defined in Ruby script. This method is used when a Ruby * method does not have any argument. * * @param receiver is an instance that will receive this method call. * Ruby's self object will be used if no appropriate receiver * is given. * @param methodName is a method name to be called * @param args is an array of method arguments * @return an instance of requested Java type */ public Object callMethod(Object receiver, String methodName, Object... args) { return objectAdapter.callMethod(receiver, methodName, args); }
/** * Executes a method defined in Ruby script. This method is used when a Ruby * method have only one argument. * * @param receiver is an instance that will receive this method call. * Ruby's self object will be used if no appropriate receiver * is given. * @param methodName is a method name to be called * @param singleArg is an method argument * @param returnType returnType is the type we want it to convert to * @return an instance of requested Java type */ public <T> T callMethod(Object receiver, String methodName, Object singleArg, Class<T> returnType) { return objectAdapter.callMethod(receiver, methodName, singleArg, returnType); }
/** * Executes a method defined in Ruby script. This method is used when a Ruby * method does not have any argument. * * @param receiver is an instance that will receive this method call * Ruby's self object will be used if no appropriate receiver * is given. * @param methodName is a method name to be called * @param block is a block to be executed in this method * @param args is an array of method arguments * @return an instance of requested Java type */ public Object callMethod(Object receiver, String methodName, Block block, Object... args) { return objectAdapter.callMethod(receiver, methodName, block, args); }
/** * Executes a method defined in Ruby script. This method is used when a Ruby * method does not have any argument. * * @param receiver is an instance that will receive this method call. * Ruby's self object will be used if no appropriate receiver * is given. * @param methodName is a method name to be called * @param args is an array of method arguments * @return an instance of requested Java type */ public Object callMethod(Object receiver, String methodName, Object... args) { return objectAdapter.callMethod(receiver, methodName, args); }
/** * Executes a method defined in Ruby script. This method is used when a Ruby * method have multiple arguments. * * @param receiver is an instance that will receive this method call. * Ruby's self object will be used if no appropriate receiver * is given. * @param methodName is a method name to be called * @param args is an array of method arguments * @param returnType is the type we want it to convert to * @return an instance of requested Java type */ public <T> T callMethod(Object receiver, String methodName, Object[] args, Class<T> returnType) { return objectAdapter.callMethod(receiver, methodName, args, returnType); }
/** * Executes a method defined in Ruby script. This method is used when a Ruby * method does not have any argument. * * @param receiver is an instance that will receive this method call * Ruby's self object will be used if no appropriate receiver * is given. * @param methodName is a method name to be called * @param block is a block to be executed in this method * @param args is an array of method arguments * @return an instance of requested Java type */ public Object callMethod(Object receiver, String methodName, Block block, Object... args) { return objectAdapter.callMethod(receiver, methodName, block, args); }
/** * Executes a method defined in Ruby script. This method is used when a Ruby * method does not have any argument. * * @param receiver is an instance that will receive this method call * Ruby's self object will be used if no appropriate receiver * is given. * @param methodName is a method name to be called * @param block is a block to be executed in this method * @param args is an array of method arguments * @return an instance of requested Java type */ public Object callMethod(Object receiver, String methodName, Block block, Object... args) { return objectAdapter.callMethod(receiver, methodName, block, args); }
/** * Executes a method defined in Ruby script. This method is used when a Ruby * method have only one argument. * * @param receiver is an instance that will receive this method call. * Ruby's self object will be used if no appropriate receiver * is given. * @param methodName is a method name to be called * @param singleArg is an method argument * @param returnType returnType is the type we want it to convert to * @return an instance of requested Java type */ public <T> T callMethod(Object receiver, String methodName, Object singleArg, Class<T> returnType) { return objectAdapter.callMethod(receiver, methodName, singleArg, returnType); }
/** * Executes a method defined in Ruby script. This method is used when a Ruby * method have multiple arguments. * * @param receiver is an instance that will receive this method call. * Ruby's self object will be used if no appropriate receiver * is given. * @param methodName is a method name to be called * @param args is an array of method arguments * @param returnType is the type we want it to convert to * @return an instance of requested Java type */ public <T> T callMethod(Object receiver, String methodName, Object[] args, Class<T> returnType) { return objectAdapter.callMethod(receiver, methodName, args, returnType); }
/** * Executes a method defined in Ruby script. This method is used when a Ruby * method does not have any argument. * * @param receiver is an instance that will receive this method call * Ruby's self object will be used if no appropriate receiver * is given. * @param methodName is a method name to be called * @param block is a block to be executed in this method * @param args is an array of method arguments * @return an instance of requested Java type */ public Object callMethod(Object receiver, String methodName, Block block, Object... args) { return objectAdapter.callMethod(receiver, methodName, block, args); }
/** * Executes a method defined in Ruby script. This method is used when a Ruby * method does not have any argument. * * @param receiver is an instance that will receive this method call. * Ruby's self object will be used if no appropriate receiver * is given. * @param methodName is a method name to be called * @param returnType is the type we want it to convert to * @return an instance of requested Java type */ public <T> T callMethod(Object receiver, String methodName, Class<T> returnType) { return objectAdapter.callMethod(receiver, methodName, returnType); }
public Object call(Object recv, String method, Object[] args) throws BSFException { try { EmbedRubyObjectAdapter adapter = container.newObjectAdapter(); if (args == null) { return adapter.callMethod(recv, method, Object.class); } else { return adapter.callMethod(recv, method, args, Object.class); } } catch (Exception excptn) { throw new BSFException(BSFException.REASON_EXECUTION_ERROR, excptn.getMessage(), excptn); } }
public Object call(Object recv, String method, Object[] args) throws BSFException { try { EmbedRubyObjectAdapter adapter = container.newObjectAdapter(); if (args == null) { return adapter.callMethod(recv, method, Object.class); } else { return adapter.callMethod(recv, method, args, Object.class); } } catch (Exception excptn) { throw new BSFException(BSFException.REASON_EXECUTION_ERROR, excptn.getMessage(), excptn); } }
public Object call(Object recv, String method, Object[] args) throws BSFException { try { EmbedRubyObjectAdapter adapter = container.newObjectAdapter(); if (args == null) { return adapter.callMethod(recv, method, Object.class); } else { return adapter.callMethod(recv, method, args, Object.class); } } catch (Exception excptn) { throw new BSFException(BSFException.REASON_EXECUTION_ERROR, excptn.getMessage(), excptn); } }
public Object call(Object recv, String method, Object[] args) throws BSFException { try { EmbedRubyObjectAdapter adapter = container.newObjectAdapter(); if (args == null) { return adapter.callMethod(recv, method, Object.class); } else { return adapter.callMethod(recv, method, args, Object.class); } } catch (Exception excptn) { throw new BSFException(BSFException.REASON_EXECUTION_ERROR, excptn.getMessage(), excptn); } }