org.jruby.runtime
Class InterpretedIRBlockBody
java.lang.Object
org.jruby.runtime.BlockBody
org.jruby.runtime.ContextAwareBlockBody
org.jruby.runtime.InterpretedIRBlockBody
public class InterpretedIRBlockBody
- extends ContextAwareBlockBody
- Author:
- enebo
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.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 |
InterpretedIRBlockBody
public InterpretedIRBlockBody(IRClosure closure,
Arity arity,
int argumentType)
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.