|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mentawai.jruby.JRubyInterpreter
public class JRubyInterpreter
| Field Summary | |
|---|---|
static long |
RELOAD_INTERVAL
|
| Method Summary | |
|---|---|
Object |
call(Object rubyObject,
String methodName)
Call a method on a Ruby object. |
Object |
call(Object rubyObject,
String methodName,
Class<? extends Object> returnType)
Call a method on a Ruby object. |
Object |
call(Object rubyObject,
String methodName,
Class<? extends Object> returnType,
Object... params)
Call a method on a Ruby object passing some arguments to the ruby side. |
Object |
call(Object rubyObject,
String methodName,
Object... params)
Call a method on a Ruby object passing some arguments to the ruby side. |
String |
callAction(Object rubyObject,
String methodName)
|
void |
close()
|
org.jruby.RubyObject |
eval(String code)
|
static JRubyInterpreter |
getInstance()
|
org.jruby.Ruby |
getRuntime()
|
List<String> |
getSetters(Object rubyObject)
Return a list of all setters for this ruby object. |
static boolean |
isInitialized()
|
void |
loadFileFromClasspath(String filename)
|
void |
require(String file)
|
boolean |
respondTo(Object rubyObject,
String methodName)
Call Ruby's respond_to? to find out if the Ruby object responds to a method. |
void |
run()
|
Object |
set(Object rubyObject,
String propName,
Object value)
Call a setter for this property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static long RELOAD_INTERVAL
| Method Detail |
|---|
public void run()
run in interface Runnablepublic void close()
public List<String> getSetters(Object rubyObject)
rubyObject - the ruby object from where to get the setters
public void require(String file)
public org.jruby.RubyObject eval(String code)
public String callAction(Object rubyObject,
String methodName)
public Object call(Object rubyObject,
String methodName)
rubyObject - The ruby object in the Java sidemethodName - The name of the method to call
public Object call(Object rubyObject,
String methodName,
Class<? extends Object> returnType)
rubyObject - The ruby object in the Java sidemethodName - The name of the method to callreturnType - The return type for the return value of the method
public Object call(Object rubyObject,
String methodName,
Object... params)
rubyObject - The ruby object in the Java sidemethodName - The name of the method to callparams - The arguments to pass to the method
public Object call(Object rubyObject,
String methodName,
Class<? extends Object> returnType,
Object... params)
rubyObject - The ruby object in the Java sidemethodName - The name of the method to callreturnType - The return type for the return value of the methodparams - The arguments to pass to the method
public Object set(Object rubyObject,
String propName,
Object value)
rubyObject - The ruby object in the Java sidepropName - The name of the property to setvalue - The value of the property
public boolean respondTo(Object rubyObject,
String methodName)
rubyObject - The ruby object in the Java sidemethodName - The method name
public static boolean isInitialized()
public static JRubyInterpreter getInstance()
public void loadFileFromClasspath(String filename)
throws IOException
IOExceptionpublic org.jruby.Ruby getRuntime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||