|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.embed.internal.EmbedEvalUnitImpl
public class EmbedEvalUnitImpl
Implementation of org.jruby.javasupport.JavaEmbedUtils.EvalUnit for embeddiing. This class is created when a Ruby script has been parsed. Once parsed, the script is ready to run many times without parsing.
Users do not instantiate explicitly. Instead, they can get the instance by parsing
Ruby script by parse method of ScriptingContainer
.
Constructor Summary | |
---|---|
EmbedEvalUnitImpl(ScriptingContainer container,
Node node,
ManyVarsDynamicScope scope)
|
|
EmbedEvalUnitImpl(ScriptingContainer container,
Node node,
ManyVarsDynamicScope scope,
Script script)
|
Method Summary | |
---|---|
Node |
getNode()
Returns a root node of parsed Ruby script. |
ManyVarsDynamicScope |
getScope()
Returns a ManyVarsDynamicScope used to parse a script. |
IRubyObject |
run()
Evaluates a Ruby script, which has been parsed before. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmbedEvalUnitImpl(ScriptingContainer container, Node node, ManyVarsDynamicScope scope)
public EmbedEvalUnitImpl(ScriptingContainer container, Node node, ManyVarsDynamicScope scope, Script script)
Method Detail |
---|
public Node getNode()
getNode
in interface EmbedEvalUnit
public ManyVarsDynamicScope getScope()
getScope
in interface EmbedEvalUnit
public IRubyObject run()
run
in interface JavaEmbedUtils.EvalUnit
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |