|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EmbedRubyObjectAdapter
Wrapper interface of RubyObjectAdapter for embedding. Methods' arguments can have simple Java objects for easiness. Each methods converts returned object to a Java type specified in the argument.
Method Summary | ||
---|---|---|
java.lang.Object |
callMethod(java.lang.Object receiver,
java.lang.String methodName,
Block block,
java.lang.Object... args)
Executes a method defined in Ruby script. |
|
|
callMethod(java.lang.Object receiver,
java.lang.String methodName,
java.lang.Class<T> returnType)
Executes a method defined in Ruby script. |
|
|
callMethod(java.lang.Object receiver,
java.lang.String methodName,
java.lang.Class<T> returnType,
EmbedEvalUnit unit)
Executes a method defined in Ruby script. |
|
java.lang.Object |
callMethod(java.lang.Object receiver,
java.lang.String methodName,
java.lang.Object... args)
Executes a method defined in Ruby script. |
|
|
callMethod(java.lang.Object receiver,
java.lang.String methodName,
java.lang.Object[] args,
Block block,
java.lang.Class<T> returnType)
Executes a method defined in Ruby script. |
|
|
callMethod(java.lang.Object receiver,
java.lang.String methodName,
java.lang.Object[] args,
Block block,
java.lang.Class<T> returnType,
EmbedEvalUnit unit)
Executes a method defined in Ruby script. |
|
|
callMethod(java.lang.Object receiver,
java.lang.String methodName,
java.lang.Object[] args,
java.lang.Class<T> returnType)
Executes a method defined in Ruby script. |
|
|
callMethod(java.lang.Object receiver,
java.lang.String methodName,
java.lang.Object[] args,
java.lang.Class<T> returnType,
EmbedEvalUnit unit)
Executes a method defined in Ruby script. |
|
|
callMethod(java.lang.Object receiver,
java.lang.String methodName,
java.lang.Object singleArg,
java.lang.Class<T> returnType)
Executes a method defined in Ruby script. |
|
|
callSuper(java.lang.Object receiver,
java.lang.Object[] args,
Block block,
java.lang.Class<T> returnType)
|
|
|
callSuper(java.lang.Object receiver,
java.lang.Object[] args,
java.lang.Class<T> returnType)
|
Methods inherited from interface org.jruby.RubyObjectAdapter |
---|
callMethod, callMethod, callMethod, callMethod, callSuper, callSuper, convertToJavaArray, convertToRubyInteger, convertToRubyString, getInstanceVariable, isKindOf, setInstanceVariable |
Method Detail |
---|
java.lang.Object callMethod(java.lang.Object receiver, java.lang.String methodName, java.lang.Object... args)
receiver
- is an instance that will receive this method callmethodName
- is a method name to be calledargs
- are method arguments.
java.lang.Object callMethod(java.lang.Object receiver, java.lang.String methodName, Block block, java.lang.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(java.lang.Object receiver, java.lang.String methodName, java.lang.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(java.lang.Object receiver, java.lang.String methodName, java.lang.Object singleArg, java.lang.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(java.lang.Object receiver, java.lang.String methodName, java.lang.Object[] args, java.lang.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(java.lang.Object receiver, java.lang.String methodName, java.lang.Object[] args, Block block, java.lang.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(java.lang.Object receiver, java.lang.String methodName, java.lang.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(java.lang.Object receiver, java.lang.String methodName, java.lang.Object[] args, java.lang.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(java.lang.Object receiver, java.lang.String methodName, java.lang.Object[] args, Block block, java.lang.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(java.lang.Object receiver, java.lang.Object[] args, java.lang.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(java.lang.Object receiver, java.lang.Object[] args, Block block, java.lang.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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |