public class RubyScript extends AbstractScript
| Modifier and Type | Class and Description |
|---|---|
static class |
RubyScript.CompiledScript
The compiled ruby script.
|
| Constructor and Description |
|---|
RubyScript(RubyLanguage language)
Creates a ruby script.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearParsed() |
void |
execute(ScriptVariable... variables) |
RubyScript.CompiledScript |
getCompiledScript()
Gets the compiled script.
Will be parsed if not done yet. |
Object |
getResult() |
boolean |
isParsed() |
RubyScript.CompiledScript |
parse() |
getCode, getConverter, getEffectiveCode, getLanguage, isCached, isThreadSafe, setCode, setConverter, setThreadSafe, toStringpublic RubyScript(RubyLanguage language)
language - the languagepublic RubyScript.CompiledScript getCompiledScript()
public boolean isParsed()
public void clearParsed()
public RubyScript.CompiledScript parse() throws ScriptRuntimeException
ScriptRuntimeExceptionpublic void execute(ScriptVariable... variables) throws ScriptRuntimeException
ScriptRuntimeExceptionpublic Object getResult()
Copyright © 2016 Krake Softwaretechnik. All rights reserved.