org.jruby.embed
Interface EmbedEvalUnit

All Superinterfaces:
JavaEmbedUtils.EvalUnit
All Known Implementing Classes:
EmbedEvalUnitImpl

public interface EmbedEvalUnit
extends JavaEmbedUtils.EvalUnit

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

Method Summary
 Node getNode()
          Returns a root node of parsed Ruby script.
 ManyVarsDynamicScope getScope()
          Returns a scope used to parse a script.
 
Methods inherited from interface org.jruby.javasupport.JavaEmbedUtils.EvalUnit
run
 

Method Detail

getNode

Node getNode()
Returns a root node of parsed Ruby script.

Returns:
parsed node.

getScope

ManyVarsDynamicScope getScope()
Returns a scope used to parse a script. For example, org.jruby.runtime.scope.ManyVarsDynamicScope.

Returns:
scope to refer local variables.


Copyright © 2002-2009 JRuby Team. All Rights Reserved.