org.jruby.runtime
Class CompiledBlockLight19

java.lang.Object
  extended by org.jruby.runtime.BlockBody
      extended by org.jruby.runtime.CompiledBlock19
          extended by org.jruby.runtime.CompiledBlockLight19
All Implemented Interfaces:
JumpTarget

public class CompiledBlockLight19
extends CompiledBlock19

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.CompiledBlock19
arity, callback, hasMultipleArgsHead, scope
 
Fields inherited from class org.jruby.runtime.BlockBody
argumentType, ARRAY, MULTIPLE_ASSIGNMENT, NULL_BODY, SINGLE_RESTARG, ZERO_ARGS
 
Constructor Summary
protected CompiledBlockLight19(Arity arity, StaticScope scope, CompiledBlockCallback19 callback, boolean hasMultipleArgsHead, int argumentType)
           
 
Method Summary
static BlockBody newCompiledBlockLight(Arity arity, StaticScope scope, CompiledBlockCallback19 callback, boolean hasMultipleArgsHead, int argumentType)
           
static Block newCompiledClosureLight(ThreadContext context, IRubyObject self, Arity arity, StaticScope scope, CompiledBlockCallback19 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.CompiledBlock19
arity, call, call, cloneBlock, getStaticScope, newCompiledBlock, newCompiledClosure, newCompiledClosure, setStaticScope, setupBlockArg, yield, yield, yield, yieldSpecific, yieldSpecific, yieldSpecific, yieldSpecific
 
Methods inherited from class org.jruby.runtime.BlockBody
asArgumentType, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, call, getArgumentType, getArgumentTypeWackyHack, isGiven, prepareArgumentsForCall, yieldSpecific, yieldSpecific, yieldSpecific, yieldSpecific, yieldSpecific, yieldSpecific, yieldSpecific
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompiledBlockLight19

protected CompiledBlockLight19(Arity arity,
                               StaticScope scope,
                               CompiledBlockCallback19 callback,
                               boolean hasMultipleArgsHead,
                               int argumentType)
Method Detail

newCompiledClosureLight

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

newCompiledBlockLight

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

pre

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

post

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


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