org.jruby.runtime
Class Interpreted19Block

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

public class Interpreted19Block
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
Interpreted19Block(IterNode iterNode)
           
Interpreted19Block(LambdaNode lambdaNode)
           
 
Method Summary
 IRubyObject call(ThreadContext context, IRubyObject[] args, Binding binding, Block.Type type)
           
 IRubyObject call(ThreadContext context, IRubyObject[] args, Binding binding, Block.Type type, Block block)
           
 ArgsNode getArgs()
           
 Node getBody()
           
 java.lang.String getFile()
          Get the filename for this block
 int getLine()
          get The line number for this block
 java.lang.String[] getParameterList()
           
static BlockBody newBlockBody(IterNode iter)
           
static Block newInterpretedClosure(ThreadContext context, BlockBody body, 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)
          Yield to this block, usually passed to the current call.
 IRubyObject yield(ThreadContext context, IRubyObject value, IRubyObject self, RubyModule klass, boolean aValue, Binding binding, Block.Type type, Block block)
           
 IRubyObject yieldSpecific(ThreadContext context, Binding binding, Block.Type type)
           
 IRubyObject yieldSpecific(ThreadContext context, IRubyObject arg0, Binding binding, Block.Type type)
           
 IRubyObject yieldSpecific(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Binding binding, Block.Type type)
           
 IRubyObject yieldSpecific(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, 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, getArgumentType, getArgumentTypeWackyHack, isGiven, prepareArgumentsForCall, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interpreted19Block

public Interpreted19Block(IterNode iterNode)

Interpreted19Block

public Interpreted19Block(LambdaNode lambdaNode)
Method Detail

newInterpretedClosure

public static Block newInterpretedClosure(ThreadContext context,
                                          BlockBody body,
                                          IRubyObject self)

newBlockBody

public static BlockBody newBlockBody(IterNode iter)

call

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

call

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

yieldSpecific

public IRubyObject yieldSpecific(ThreadContext context,
                                 Binding binding,
                                 Block.Type type)
Overrides:
yieldSpecific in class BlockBody

yieldSpecific

public IRubyObject yieldSpecific(ThreadContext context,
                                 IRubyObject arg0,
                                 Binding binding,
                                 Block.Type type)
Overrides:
yieldSpecific in class BlockBody

yieldSpecific

public IRubyObject yieldSpecific(ThreadContext context,
                                 IRubyObject arg0,
                                 IRubyObject arg1,
                                 Binding binding,
                                 Block.Type type)
Overrides:
yieldSpecific in class BlockBody

yieldSpecific

public IRubyObject yieldSpecific(ThreadContext context,
                                 IRubyObject arg0,
                                 IRubyObject arg1,
                                 IRubyObject arg2,
                                 Binding binding,
                                 Block.Type type)
Overrides:
yieldSpecific in class BlockBody

yield

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

yield

public IRubyObject yield(ThreadContext context,
                         IRubyObject value,
                         IRubyObject self,
                         RubyModule klass,
                         boolean aValue,
                         Binding binding,
                         Block.Type type)
Yield to this block, usually passed to the current call.

Specified by:
yield in class BlockBody
Parameters:
context - represents the current thread-specific data
value - The value to yield, either a single value or an array of values
self - The current self
klass -
aValue - Should value be arrayified or not?
Returns:

yield

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

getArgs

public ArgsNode getArgs()

getBody

public Node getBody()

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

getParameterList

public java.lang.String[] getParameterList()
Overrides:
getParameterList in class BlockBody


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