org.jruby.runtime
Class CompiledBlockLight

java.lang.Object
  extended by org.jruby.runtime.BlockBody
      extended by org.jruby.runtime.ContextAwareBlockBody
          extended by org.jruby.runtime.CompiledBlock
              extended by org.jruby.runtime.CompiledBlockLight
Direct Known Subclasses:
CompiledSharedScopeBlock

public class CompiledBlockLight
extends CompiledBlock

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.CompiledBlock
callback, hasMultipleArgsHead
 
Fields inherited from class org.jruby.runtime.ContextAwareBlockBody
scope
 
Fields inherited from class org.jruby.runtime.BlockBody
argumentType, ARRAY, EMPTY_PARAMETER_LIST, MULTIPLE_ASSIGNMENT, NULL_BODY, SINGLE_RESTARG, ZERO_ARGS
 
Constructor Summary
protected CompiledBlockLight(Arity arity, StaticScope scope, CompiledBlockCallback callback, boolean hasMultipleArgsHead, int argumentType)
           
 
Method Summary
static BlockBody newCompiledBlockLight(Arity arity, StaticScope scope, CompiledBlockCallback callback, boolean hasMultipleArgsHead, int argumentType)
           
static Block newCompiledClosureLight(ThreadContext context, IRubyObject self, Arity arity, StaticScope scope, CompiledBlockCallback callback, boolean hasMultipleArgsHead, int argumentType)
           
protected  void post(ThreadContext context, Binding binding, Visibility vis, Frame lastFrame)
           
protected  Frame pre(ThreadContext context, RubyModule klass, Binding binding)
           
 
Methods inherited from class org.jruby.runtime.CompiledBlock
getFile, getLine, newCompiledBlock, newCompiledClosure, newCompiledClosure, setupBlockArg, setupBlockArgs, yield, yield, yield, yield, yieldSpecific, yieldSpecific, yieldSpecific, yieldSpecific
 
Methods inherited from class org.jruby.runtime.ContextAwareBlockBody
arity, cloneBlock, getStaticScope, setStaticScope
 
Methods inherited from class org.jruby.runtime.BlockBody
asArgumentType, call, call, call, call, call, call, call, call, call, call, getArgumentType, getArgumentTypeWackyHack, getParameterList, isGiven, prepareArgumentsForCall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompiledBlockLight

protected CompiledBlockLight(Arity arity,
                             StaticScope scope,
                             CompiledBlockCallback callback,
                             boolean hasMultipleArgsHead,
                             int argumentType)
Method Detail

newCompiledClosureLight

public static Block newCompiledClosureLight(ThreadContext context,
                                            IRubyObject self,
                                            Arity arity,
                                            StaticScope scope,
                                            CompiledBlockCallback callback,
                                            boolean hasMultipleArgsHead,
                                            int argumentType)

newCompiledBlockLight

public static BlockBody newCompiledBlockLight(Arity arity,
                                              StaticScope scope,
                                              CompiledBlockCallback callback,
                                              boolean hasMultipleArgsHead,
                                              int argumentType)

pre

protected Frame pre(ThreadContext context,
                    RubyModule klass,
                    Binding binding)
Overrides:
pre in class ContextAwareBlockBody

post

protected final void post(ThreadContext context,
                          Binding binding,
                          Visibility vis,
                          Frame lastFrame)
Overrides:
post in class ContextAwareBlockBody


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