org.jruby.runtime
Class Interpreted19Block
java.lang.Object
org.jruby.runtime.BlockBody
org.jruby.runtime.Interpreted19Block
- All Implemented Interfaces:
- JumpTarget
public class Interpreted19Block
- extends BlockBody
- Author:
- enebo
Method Summary |
Arity |
arity()
What is the arity of this block? |
IRubyObject |
call(ThreadContext context,
IRubyObject[] args,
Binding binding,
Block.Type type)
|
IRubyObject |
call(ThreadContext context,
IRubyObject[] args,
Binding binding,
Block.Type type,
Block block)
|
Block |
cloneBlock(Binding binding)
|
ArgsNode |
getArgs()
|
Node |
getBody()
|
StaticScope |
getStaticScope()
|
static Block |
newInterpretedClosure(ThreadContext context,
BlockBody body,
IRubyObject self)
|
protected void |
post(ThreadContext context,
Binding binding,
Visibility vis,
Frame lastFrame)
|
protected Frame |
pre(ThreadContext context,
RubyModule klass,
Binding binding)
|
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Interpreted19Block
public Interpreted19Block(LambdaNode lambda)
Interpreted19Block
public Interpreted19Block(IterNode iter)
newInterpretedClosure
public static Block newInterpretedClosure(ThreadContext context,
BlockBody body,
IRubyObject self)
pre
protected Frame pre(ThreadContext context,
RubyModule klass,
Binding binding)
post
protected void post(ThreadContext context,
Binding binding,
Visibility vis,
Frame lastFrame)
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
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 datavalue
- The value to yield, either a single value or an array of valuesself
- The current selfklass
- 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)
cloneBlock
public Block cloneBlock(Binding binding)
- Specified by:
cloneBlock
in class BlockBody
getArgs
public ArgsNode getArgs()
getBody
public Node getBody()
getStaticScope
public StaticScope getStaticScope()
- Specified by:
getStaticScope
in class BlockBody
arity
public Arity arity()
- Description copied from class:
BlockBody
- What is the arity of this block?
- Specified by:
arity
in class BlockBody
- Returns:
- the arity
Copyright © 2002-2007 JRuby Team. All Rights Reserved.