Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jruby.parser;
 
 
 import org.jruby.Ruby;

Gives instances of static scopes based on compile mode.
 
 public class StaticScopeFactory {
    private final StaticScope dummyScope;
    public StaticScopeFactory(Ruby runtime) {
         = new LocalStaticScope(null);
        .setModule(runtime.getObject());
    }
    public StaticScope newBlockScope(StaticScope parent) {
        return new BlockStaticScope(parent);
    }
    
    public StaticScope newBlockScope(StaticScope parentString[] names) {
        return new BlockStaticScope(parentnames);
    }
    public StaticScope newEvalScope(StaticScope parent) {
        return new EvalStaticScope(parent);
    }
    
    public StaticScope newEvalScope(StaticScope parentString[] names) {
        return new EvalStaticScope(parentnames);
    }
    
    public StaticScope newLocalScope(StaticScope parent) {
        return new LocalStaticScope(parent);   
    }
    
    public StaticScope newLocalScope(StaticScope parentString[] names) {
        return new LocalStaticScope(parentnames);        
    }
    public StaticScope getDummyScope() {
        return ;
    }
New to GrepCode? Check out our FAQ X