/** * 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); }
/** * * @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 args is an array of method arguments * @param returnType is the type we want it to convert to * @return is the type we want it to convert to */ public <T> T callSuper(Object receiver, Object[] args, Class<T> returnType) { return objectAdapter.callSuper(receiver, args, returnType); }
/** * Executes a method defined in Ruby script. This method is used when a Ruby * method does not have any argument. * * @param returnType is the type we want it to convert to * @param receiver is an instance that will receive this method call. The receiver * can be null or other Java objects as well as RubyObject. * The null will be converted to RubyNil. Java objects will be * wrapped in RubyObject. * @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 <T> T runRubyMethod(Class<T> returnType, Object receiver, String methodName, Object... args) { return objectAdapter.runRubyMethod(returnType, receiver, methodName, null, 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); }
/** * * @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 args is an array of method arguments * @param returnType is the type we want it to convert to * @return is the type we want it to convert to */ public <T> T callSuper(Object receiver, Object[] args, Class<T> returnType) { return objectAdapter.callSuper(receiver, args, returnType); }
/** * Executes a method defined in Ruby script. This method is used when a Ruby * method does not have any argument. * * @param returnType is the type we want it to convert to * @param receiver is an instance that will receive this method call. The receiver * can be null or other Java objects as well as RubyObject. * The null will be converted to RubyNil. Java objects will be * wrapped in RubyObject. * @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 <T> T runRubyMethod(Class<T> returnType, Object receiver, String methodName, Object... args) { return objectAdapter.runRubyMethod(returnType, receiver, methodName, null, 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); }
/** * * @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 args is an array of method arguments * @param returnType is the type we want it to convert to * @return is the type we want it to convert to */ public <T> T callSuper(Object receiver, Object[] args, Class<T> returnType) { return objectAdapter.callSuper(receiver, args, returnType); }
/** * Executes a method defined in Ruby script. This method is used when a Ruby * method does not have any argument. * * @param returnType is the type we want it to convert to * @param receiver is an instance that will receive this method call. The receiver * can be null or other Java objects as well as RubyObject. * The null will be converted to RubyNil. Java objects will be * wrapped in RubyObject. * @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 <T> T runRubyMethod(Class<T> returnType, Object receiver, String methodName, Object... args) { return objectAdapter.runRubyMethod(returnType, receiver, methodName, null, 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); }
/** * * @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 args is an array of method arguments except a block * @param block is a block to be executed in this method * @param returnType is the type we want it to convert to * @return is the type we want it to convert to */ public <T> T callSuper(Object receiver, Object[] args, Block block, Class<T> returnType) { return objectAdapter.callSuper(receiver, args, block, returnType); }
/** * Executes a method defined in Ruby script. This method is used when a Ruby * method does not have any argument. * * @param returnType is the type we want it to convert to * @param receiver is an instance that will receive this method call. The receiver * can be null or other Java objects as well as RubyObject. * The null will be converted to RubyNil. Java objects will be * wrapped in RubyObject. * @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 <T> T runRubyMethod(Class<T> returnType, Object receiver, String methodName, Object... args) { return objectAdapter.runRubyMethod(returnType, receiver, methodName, null, 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); }
/** * * @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 args is an array of method arguments * @param returnType is the type we want it to convert to * @return is the type we want it to convert to */ public <T> T callSuper(Object receiver, Object[] args, Class<T> returnType) { return objectAdapter.callSuper(receiver, args, returnType); }
/** * Executes a method defined in Ruby script. This method is used when a Ruby * method does not have any argument. * * @param returnType is the type we want it to convert to * @param receiver is an instance that will receive this method call. The receiver * can be null or other Java objects as well as RubyObject. * The null will be converted to RubyNil. Java objects will be * wrapped in RubyObject. * @param methodName is a method name to be called * @param block is an optional Block object. Send null for no block. * @param args is an array of method arguments * @return an instance of requested Java type */ public <T> T runRubyMethod(Class<T> returnType, Object receiver, String methodName, Block block, Object... args) { return objectAdapter.runRubyMethod(returnType, 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); }
/** * * @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 args is an array of method arguments except a block * @param block is a block to be executed in this method * @param returnType is the type we want it to convert to * @return is the type we want it to convert to */ public <T> T callSuper(Object receiver, Object[] args, Block block, Class<T> returnType) { return objectAdapter.callSuper(receiver, args, block, returnType); }
/** * Executes a method defined in Ruby script. This method is used when a Ruby * method does not have any argument. * * @param returnType is the type we want it to convert to * @param receiver is an instance that will receive this method call. The receiver * can be null or other Java objects as well as RubyObject. * The null will be converted to RubyNil. Java objects will be * wrapped in RubyObject. * @param methodName is a method name to be called * @param block is an optional Block object. Send null for no block. * @param args is an array of method arguments * @return an instance of requested Java type */ public <T> T runRubyMethod(Class<T> returnType, Object receiver, String methodName, Block block, Object... args) { return objectAdapter.runRubyMethod(returnType, 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); }
/** * * @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 args is an array of method arguments except a block * @param block is a block to be executed in this method * @param returnType is the type we want it to convert to * @return is the type we want it to convert to */ public <T> T callSuper(Object receiver, Object[] args, Block block, Class<T> returnType) { return objectAdapter.callSuper(receiver, args, block, returnType); }