org.jruby.parser
Class EvalStaticScope
java.lang.Object
org.jruby.parser.StaticScope
org.jruby.parser.BlockStaticScope
org.jruby.parser.EvalStaticScope
- All Implemented Interfaces:
- java.io.Serializable
public class EvalStaticScope
- extends BlockStaticScope
This scope is used solely for evals. All eval calls under a given scope live
in the same "eval" scope, which is always based on this type of static
scope. Also, for purposes of flip-flops, this acts like a local scope.
- See Also:
- Serialized Form
Methods inherited from class org.jruby.parser.StaticScope |
addVariable, assign, capture, declare, determineModule, exists, getArity, getConstant, getEnclosingScope, getModule, getNumberOfVariables, getOptionalArgs, getPreviousCRefScope, getRequiredArgs, getRestArg, getVariables, isArgumentScope, isCaptured, isDefined, setArgumentScope, setArities, setModule, setRequiredArgs, setRestArg, setVariables |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EvalStaticScope
public EvalStaticScope(StaticScope parentScope)
EvalStaticScope
public EvalStaticScope(StaticScope parentScope,
java.lang.String[] names)
getLocalScope
public StaticScope getLocalScope()
- Description copied from class:
StaticScope
- Gets the Local Scope relative to the current Scope. For LocalScopes this will be itself.
Blocks will contain the LocalScope it contains.
- Overrides:
getLocalScope
in class BlockStaticScope
- Returns:
- localScope
Copyright © 2002-2007 JRuby Team. All Rights Reserved.