Package org.jruby.embed
Interface EmbedEvalUnit
- All Superinterfaces:
JavaEmbedUtils.EvalUnit
- All Known Implementing Classes:
EmbedEvalUnitImpl
Wrapper interface of
JavaEmbedUtils.EvalUnit
for embedding.
This interface defines an evaluation unit for a parsed or compiled script,
which are executable.- Author:
- Yoko Harada <[email protected]>
-
Method Summary
Modifier and TypeMethodDescriptionReturns a scope used to parse a script.getNode()
Returns a root node of parsed Ruby script.default ManyVarsDynamicScope
getScope()
Deprecated.Methods inherited from interface org.jruby.javasupport.JavaEmbedUtils.EvalUnit
run
-
Method Details
-
getNode
Node getNode()Returns a root node of parsed Ruby script.- Returns:
- parsed node.
-
getLocalVarScope
DynamicScope getLocalVarScope()Returns a scope used to parse a script. For example, org.jruby.runtime.scope.ManyVarsDynamicScope.- Returns:
- scope to refer local variables.
-
getScope
Deprecated.
-