Package org.tentackle.script.ruby
Class RubyScript
- java.lang.Object
-
- org.tentackle.script.AbstractScript
-
- org.tentackle.script.ruby.RubyScript
-
- All Implemented Interfaces:
org.tentackle.script.Script
public class RubyScript extends org.tentackle.script.AbstractScriptA Ruby script.- Author:
- harald
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRubyScript.CompiledScriptThe compiled ruby script.
-
Constructor Summary
Constructors Constructor Description RubyScript(RubyLanguage language)Creates a ruby script.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearParsed()voidexecute(org.tentackle.script.ScriptVariable... variables)RubyScript.CompiledScriptgetCompiledScript()Gets the compiled script.
Will be parsed if not done yet.java.lang.ObjectgetResult()booleanisParsed()RubyScript.CompiledScriptparse()
-
-
-
Constructor Detail
-
RubyScript
public RubyScript(RubyLanguage language)
Creates a ruby script.- Parameters:
language- the language
-
-
Method Detail
-
getCompiledScript
public RubyScript.CompiledScript getCompiledScript()
Gets the compiled script.
Will be parsed if not done yet.- Returns:
- the compiled script
-
isParsed
public boolean isParsed()
-
clearParsed
public void clearParsed()
-
parse
public RubyScript.CompiledScript parse()
-
execute
public void execute(org.tentackle.script.ScriptVariable... variables)
-
getResult
public java.lang.Object getResult()
-
-