public class RCallerScriptEngine extends Object implements ScriptEngine, EventHandler, Invocable
ARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME| Constructor and Description |
|---|
RCallerScriptEngine() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Bindings |
createBindings() |
Object |
eval(Reader reader) |
Object |
eval(Reader reader,
Bindings bindings) |
Object |
eval(Reader reader,
ScriptContext sc) |
Object |
eval(String code) |
Object |
eval(String code,
Bindings bndngs) |
Object |
eval(String code,
ScriptContext sc) |
Object |
get(String var) |
Bindings |
getBindings(int i) |
ScriptContext |
getContext() |
ScriptEngineFactory |
getFactory() |
<T> T |
getInterface(Class<T> type) |
<T> T |
getInterface(Object o,
Class<T> type) |
Object |
invokeFunction(String fname,
Object... arguments) |
Object |
invokeMethod(Object o,
String fname,
Object... arguments) |
void |
messageReceived(String senderName,
String msg) |
void |
put(String name,
Object o) |
void |
setBindings(Bindings bndngs,
int i) |
void |
setContext(ScriptContext sc) |
public Object eval(String code, ScriptContext sc) throws ScriptException
eval in interface ScriptEngineScriptExceptionpublic Object eval(Reader reader, ScriptContext sc) throws ScriptException
eval in interface ScriptEngineScriptExceptionpublic Object eval(String code) throws ScriptException
eval in interface ScriptEngineScriptExceptionpublic Object eval(Reader reader) throws ScriptException
eval in interface ScriptEngineScriptExceptionpublic Object eval(String code, Bindings bndngs) throws ScriptException
eval in interface ScriptEngineScriptExceptionpublic Object eval(Reader reader, Bindings bindings) throws ScriptException
eval in interface ScriptEngineScriptExceptionpublic void put(String name, Object o)
put in interface ScriptEnginepublic Object get(String var)
get in interface ScriptEnginepublic Bindings getBindings(int i)
getBindings in interface ScriptEnginepublic void setBindings(Bindings bndngs, int i)
setBindings in interface ScriptEnginepublic Bindings createBindings()
createBindings in interface ScriptEnginepublic ScriptContext getContext()
getContext in interface ScriptEnginepublic void setContext(ScriptContext sc)
setContext in interface ScriptEnginepublic ScriptEngineFactory getFactory()
getFactory in interface ScriptEnginepublic void messageReceived(String senderName, String msg)
messageReceived in interface EventHandlerpublic void close()
public Object invokeMethod(Object o, String fname, Object... arguments) throws ScriptException, NoSuchMethodException
invokeMethod in interface InvocableScriptExceptionNoSuchMethodExceptionpublic Object invokeFunction(String fname, Object... arguments) throws ScriptException, NoSuchMethodException
invokeFunction in interface InvocableScriptExceptionNoSuchMethodExceptionpublic <T> T getInterface(Class<T> type)
getInterface in interface Invocablepublic <T> T getInterface(Object o, Class<T> type)
getInterface in interface InvocableCopyright © 2016. All rights reserved.