| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: an instance automatically converted from Ruby to Javais an instance that will receive this method call receiver, String is a method name to be called methodName, Object... are method arguments. args)Executes a method defined in Ruby script. |
| public Object | Returns: an instance of automatically converted Java typeis an instance that will receive this method call receiver, String is a method name to be called methodName, Block is a block to be executed in this method block, Object... is an array of method arguments except a block args)Executes a method defined in Ruby script. |
| public <T> T | Returns: an instance of requested Java typeis an instance that will receive this method call receiver, String is a method name to be called methodName, Class<T> is the type we want it to convert to returnType)Executes a method defined in Ruby script. |
| public <T> T | Returns: an instance of requested Java typeis an instance that will receive this method call receiver, String is a method name to be called methodName, Object is an method argument singleArg, Class<T> returnType is the type we want it to convert to returnType)Executes a method defined in Ruby script. |
| public <T> T | Returns: an instance of requested Java typeis an instance that will receive this method call receiver, String is a method name to be called methodName, Object[] is an array of method arguments args, Class<T> is the type we want it to convert to returnType)Executes a method defined in Ruby script. |
| public <T> T | Returns: an instance of requested Java typeis an instance that will receive this method call receiver, String is a method name to be called methodName, Object[] is an array of method arguments except a block args, Block is a block to be executed in this method block, Class<T> is the type we want it to convert to returnType)Executes a method defined in Ruby script. |
| public <T> T | Returns: an instance of requested Java typeis an instance that will receive this method call receiver, String is a method name to be called methodName, Class<T> is the type we want it to convert to returnType, EmbedEvalUnit is parsed unit unit)Executes a method defined in Ruby script. |
| public <T> T | Returns: an instance of requested Java typeis an instance that will receive this method call receiver, String is a method name to be called methodName, Object[] is an array of method arguments args, Class<T> is the type we want it to convert to returnType, EmbedEvalUnit is parsed unit unit)Executes a method defined in Ruby script. |
| public <T> T | Returns: is the type we want it to convert tois an instance that will receive this method call receiver, String is a method name to be called methodName, Object[] is an array of method arguments except a block args, Block is a block to be executed in this method block, Class<T> is the type we want it to convert to returnType, EmbedEvalUnit is parsed unit unit)Executes a method defined in Ruby script. |
| public <T> T | |
| public <T> T | |
| public <T> T | Returns: an instance of requested Java typeis the type we want it to convert to returnType, Object is an instance that will receive this method call. The receiver
can be null or other Java objects. The null will be converted to
RubyNil or wrapped in RubyObject. receiver, String is a method name to be called methodName, Block is an optional Block object. Send null for no block. block, Object... is an array of method arguments args)Executes a method defined in Ruby script. |
| callMethod | back to summary |
|---|---|
| public Object callMethod(Object receiver, String methodName, Object... args) Executes a method defined in Ruby script. | |
| callMethod | back to summary |
|---|---|
| public Object callMethod(Object receiver, String methodName, Block block, Object... args) Executes a method defined in Ruby script. This method is used when a Ruby method has a block in its arguments. | |
| callMethod | back to summary |
|---|---|
| public <T> T callMethod(Object receiver, String methodName, Class<T> returnType) Executes a method defined in Ruby script. This method is used when a Ruby method does not have any argument. | |
| callMethod | back to summary |
|---|---|
| public <T> T callMethod(Object receiver, String methodName, Object singleArg, Class<T> returnType) Executes a method defined in Ruby script. This method is used when a Ruby method have only one argument. | |
| callMethod | back to summary |
|---|---|
| public <T> T callMethod(Object receiver, String methodName, Object[] args, Class<T> returnType) Executes a method defined in Ruby script. This method is used when a Ruby method have multiple arguments. | |
| callMethod | back to summary |
|---|---|
| public <T> T callMethod(Object receiver, String methodName, Object[] args, Block block, Class<T> returnType) Executes a method defined in Ruby script. This method is used when a Ruby method have multiple arguments, one of which is a block.
| |
| callMethod | back to summary |
|---|---|
| public <T> T callMethod(Object receiver, String methodName, Class<T> returnType, EmbedEvalUnit unit) Executes a method defined in Ruby script. This method is used when a Ruby method does not have any argument, and users want to inject Ruby's local variables' values from Java.
| |
| callMethod | back to summary |
|---|---|
| public <T> T callMethod(Object receiver, String methodName, Object[] args, Class<T> returnType, EmbedEvalUnit unit) Executes a method defined in Ruby script. This method is used when a Ruby method have multiple arguments, and users want to inject Ruby's local variables' values from Java.
| |
| callMethod | back to summary |
|---|---|
| public <T> T callMethod(Object receiver, String methodName, Object[] args, Block block, Class<T> returnType, EmbedEvalUnit unit) Executes a method defined in Ruby script. This method is used when a Ruby method have multiple arguments, one of which is a block, and users want to inject Ruby's local variables' values from Java.
| |
| callSuper | back to summary |
|---|---|
| public <T> T callSuper(Object receiver, Object[] args, Class<T> returnType) | |
| callSuper | back to summary |
|---|---|
| public <T> T callSuper(Object receiver, Object[] args, Block block, Class<T> returnType) | |
| runRubyMethod | back to summary |
|---|---|
| public <T> T runRubyMethod(Class<T> returnType, Object receiver, String methodName, Block block, Object... args) Executes a method defined in Ruby script.
| |