org.jruby.parser
Class EvalStaticScope

java.lang.Object
  extended by org.jruby.parser.StaticScope
      extended by org.jruby.parser.BlockStaticScope
          extended by 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

Field Summary
 
Fields inherited from class org.jruby.parser.StaticScope
enclosingScope
 
Constructor Summary
EvalStaticScope(StaticScope parentScope)
           
EvalStaticScope(StaticScope parentScope, java.lang.String[] names)
           
 
Method Summary
 StaticScope getLocalScope()
          Gets the Local Scope relative to the current Scope.
 
Methods inherited from class org.jruby.parser.BlockStaticScope
addAssign, assign, declare, getAllNamesInScope, isDefined, toString
 
Methods inherited from class org.jruby.parser.StaticScope
addVariable, assign, capture, declare, determineModule, exists, getArity, getConstant, getConstantWithConstMissing, getDummyScope, 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
 

Constructor Detail

EvalStaticScope

public EvalStaticScope(StaticScope parentScope)

EvalStaticScope

public EvalStaticScope(StaticScope parentScope,
                       java.lang.String[] names)
Method Detail

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.