org.jruby.runtime
Class InterpretedIRBlockBody

java.lang.Object
  extended by org.jruby.runtime.BlockBody
      extended by org.jruby.runtime.ContextAwareBlockBody
          extended by org.jruby.runtime.InterpretedIRBlockBody

public class InterpretedIRBlockBody
extends ContextAwareBlockBody

Author:
enebo

Field Summary
 
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
InterpretedIRBlockBody(IRClosure closure, Arity arity, int argumentType)
           
 
Method Summary
 IRubyObject call(ThreadContext context, IRubyObject[] args, Binding binding, Block.Type type)
           
 java.lang.String getFile()
          Get the filename for this block
 int getLine()
          get The line number for this block
protected  IRubyObject setupBlockArg(Ruby ruby, IRubyObject value, IRubyObject self)
           
protected  IRubyObject setupBlockArgs(ThreadContext context, IRubyObject value, IRubyObject self)
           
 IRubyObject yield(ThreadContext context, IRubyObject value, Binding binding, Block.Type type)
           
 IRubyObject yield(ThreadContext context, IRubyObject value, IRubyObject self, RubyModule klass, boolean aValue, Binding binding, Block.Type type)
           
 
Methods inherited from class org.jruby.runtime.ContextAwareBlockBody
arity, cloneBlock, getStaticScope, post, pre, setStaticScope
 
Methods inherited from class org.jruby.runtime.BlockBody
asArgumentType, call, call, call, call, call, call, call, call, call, getArgumentType, getArgumentTypeWackyHack, getParameterList, isGiven, prepareArgumentsForCall, yield, yield, yieldSpecific, yieldSpecific, yieldSpecific, yieldSpecific
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterpretedIRBlockBody

public InterpretedIRBlockBody(IRClosure closure,
                              Arity arity,
                              int argumentType)
Method Detail

yield

public IRubyObject yield(ThreadContext context,
                         IRubyObject value,
                         Binding binding,
                         Block.Type type)
Specified by:
yield in class BlockBody

call

public IRubyObject call(ThreadContext context,
                        IRubyObject[] args,
                        Binding binding,
                        Block.Type type)
Overrides:
call in class BlockBody

yield

public IRubyObject yield(ThreadContext context,
                         IRubyObject value,
                         IRubyObject self,
                         RubyModule klass,
                         boolean aValue,
                         Binding binding,
                         Block.Type type)
Specified by:
yield in class BlockBody

setupBlockArgs

protected IRubyObject setupBlockArgs(ThreadContext context,
                                     IRubyObject value,
                                     IRubyObject self)

setupBlockArg

protected IRubyObject setupBlockArg(Ruby ruby,
                                    IRubyObject value,
                                    IRubyObject self)

getFile

public java.lang.String getFile()
Description copied from class: BlockBody
Get the filename for this block

Specified by:
getFile in class BlockBody

getLine

public int getLine()
Description copied from class: BlockBody
get The line number for this block

Specified by:
getLine in class BlockBody


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