public interface EmbedRubyObjectAdapter extends RubyObjectAdapter
Modifier and Type | Method and Description |
---|---|
Object |
callMethod(Object receiver,
String methodName,
Block block,
Object... args)
Executes a method defined in Ruby script.
|
<T> T |
callMethod(Object receiver,
String methodName,
Class<T> returnType)
Executes a method defined in Ruby script.
|
<T> T |
callMethod(Object receiver,
String methodName,
Class<T> returnType,
EmbedEvalUnit unit)
Executes a method defined in Ruby script.
|
Object |
callMethod(Object receiver,
String methodName,
Object... args)
Executes a method defined in Ruby script.
|
<T> T |
callMethod(Object receiver,
String methodName,
Object[] args,
Block block,
Class<T> returnType)
Executes a method defined in Ruby script.
|
<T> T |
callMethod(Object receiver,
String methodName,
Object[] args,
Block block,
Class<T> returnType,
EmbedEvalUnit unit)
Executes a method defined in Ruby script.
|
<T> T |
callMethod(Object receiver,
String methodName,
Object[] args,
Class<T> returnType)
Executes a method defined in Ruby script.
|
<T> T |
callMethod(Object receiver,
String methodName,
Object[] args,
Class<T> returnType,
EmbedEvalUnit unit)
Executes a method defined in Ruby script.
|
<T> T |
callMethod(Object receiver,
String methodName,
Object singleArg,
Class<T> returnType)
Executes a method defined in Ruby script.
|
<T> T |
callSuper(Object receiver,
Object[] args,
Block block,
Class<T> returnType) |
<T> T |
callSuper(Object receiver,
Object[] args,
Class<T> returnType) |
<T> T |
runRubyMethod(Class<T> returnType,
Object receiver,
String methodName,
Block block,
Object... args)
Executes a method defined in Ruby script.
|
callMethod, callMethod, callMethod, callMethod, callSuper, callSuper, convertToJavaArray, convertToRubyInteger, convertToRubyString, getInstanceVariable, isKindOf, setInstanceVariable
Object callMethod(Object receiver, String methodName, Object... args)
receiver
- is an instance that will receive this method callmethodName
- is a method name to be calledargs
- are method arguments.Object callMethod(Object receiver, String methodName, Block block, Object... args)
receiver
- is an instance that will receive this method callmethodName
- is a method name to be calledargs
- is an array of method arguments except a blockblock
- is a block to be executed in this method<T> T callMethod(Object receiver, String methodName, Class<T> returnType)
receiver
- is an instance that will receive this method callmethodName
- is a method name to be calledreturnType
- is the type we want it to convert to<T> T callMethod(Object receiver, String methodName, Object singleArg, Class<T> returnType)
receiver
- is an instance that will receive this method callmethodName
- is a method name to be calledsingleArg
- is an method argumentreturnType
- returnType is the type we want it to convert to<T> T callMethod(Object receiver, String methodName, Object[] args, Class<T> returnType)
receiver
- is an instance that will receive this method callmethodName
- is a method name to be calledargs
- is an array of method argumentsreturnType
- is the type we want it to convert to<T> T callMethod(Object receiver, String methodName, Object[] args, Block block, Class<T> returnType)
receiver
- is an instance that will receive this method callmethodName
- is a method name to be calledargs
- is an array of method arguments except a blockblock
- is a block to be executed in this methodreturnType
- is the type we want it to convert to<T> T callMethod(Object receiver, String methodName, Class<T> returnType, EmbedEvalUnit unit)
receiver
- is an instance that will receive this method callmethodName
- is a method name to be calledreturnType
- is the type we want it to convert tounit
- is parsed unit<T> T callMethod(Object receiver, String methodName, Object[] args, Class<T> returnType, EmbedEvalUnit unit)
receiver
- is an instance that will receive this method callmethodName
- is a method name to be calledargs
- is an array of method argumentsreturnType
- is the type we want it to convert tounit
- is parsed unit<T> T callMethod(Object receiver, String methodName, Object[] args, Block block, Class<T> returnType, EmbedEvalUnit unit)
receiver
- is an instance that will receive this method callmethodName
- is a method name to be calledargs
- is an array of method arguments except a blockblock
- is a block to be executed in this methodreturnType
- is the type we want it to convert tounit
- is parsed unit<T> T callSuper(Object receiver, Object[] args, Class<T> returnType)
receiver
- is an instance that will receive this method callargs
- is an array of method argumentsreturnType
- is the type we want it to convert to<T> T callSuper(Object receiver, Object[] args, Block block, Class<T> returnType)
receiver
- is an instance that will receive this method callargs
- is an array of method arguments except a blockblock
- is a block to be executed in this methodreturnType
- is the type we want it to convert to<T> T runRubyMethod(Class<T> returnType, Object receiver, String methodName, Block block, Object... args)
returnType
- is the type we want it to convert toreceiver
- 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.methodName
- is a method name to be calledblock
- is an optional Block object. Send null for no block.args
- is an array of method argumentsCopyright © 2001-2017 JRuby. All Rights Reserved.