org.jruby.runtime
Class CompiledSharedScopeBlock

java.lang.Object
  extended by org.jruby.runtime.BlockBody
      extended by org.jruby.runtime.CompiledBlockLight
          extended by org.jruby.runtime.CompiledSharedScopeBlock
All Implemented Interfaces:
JumpTarget

public class CompiledSharedScopeBlock
extends CompiledBlockLight

A Block implemented using a Java-based BlockCallback implementation rather than with an ICallable. For lightweight block logic within Java code.


Field Summary
 
Fields inherited from class org.jruby.runtime.CompiledBlockLight
arity, callback, dummyScope, hasMultipleArgsHead
 
Fields inherited from class org.jruby.runtime.BlockBody
argumentType, ARRAY, MULTIPLE_ASSIGNMENT, NULL_BODY, SINGLE_RESTARG, ZERO_ARGS
 
Method Summary
 Block cloneBlock(Binding binding)
           
static Block newCompiledSharedScopeClosure(ThreadContext context, IRubyObject self, Arity arity, DynamicScope dynamicScope, CompiledBlockCallback callback, boolean hasMultipleArgsHead, int argumentType)
           
protected  void pre(ThreadContext context, RubyModule klass, Binding binding)
           
 IRubyObject yield(ThreadContext context, IRubyObject args, IRubyObject self, RubyModule klass, boolean aValue, Binding binding, Block.Type type)
           
 
Methods inherited from class org.jruby.runtime.CompiledBlockLight
arity, call, getStaticScope, newCompiledClosureLight, newCompiledClosureLight, post, yield
 
Methods inherited from class org.jruby.runtime.BlockBody
arrayLength, asArgumentType, getArgumentTypeWackyHack, isGiven, prepareArgumentsForCall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newCompiledSharedScopeClosure

public static Block newCompiledSharedScopeClosure(ThreadContext context,
                                                  IRubyObject self,
                                                  Arity arity,
                                                  DynamicScope dynamicScope,
                                                  CompiledBlockCallback callback,
                                                  boolean hasMultipleArgsHead,
                                                  int argumentType)

pre

protected void pre(ThreadContext context,
                   RubyModule klass,
                   Binding binding)
Overrides:
pre in class CompiledBlockLight

yield

public IRubyObject yield(ThreadContext context,
                         IRubyObject args,
                         IRubyObject self,
                         RubyModule klass,
                         boolean aValue,
                         Binding binding,
                         Block.Type type)
Overrides:
yield in class CompiledBlockLight

cloneBlock

public Block cloneBlock(Binding binding)
Overrides:
cloneBlock in class CompiledBlockLight


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