Package | Description |
---|---|
org.jruby | |
org.jruby.ir.runtime | |
org.jruby.runtime |
Modifier and Type | Method and Description |
---|---|
RubyProc |
Ruby.newBlockPassProc(Block.Type type,
Block block) |
RubyProc |
Ruby.newProc(Block.Type type,
Block block) |
static RubyProc |
RubyProc.newProc(Ruby runtime,
Block.Type type)
Deprecated.
|
static RubyProc |
RubyProc.newProc(Ruby runtime,
Block block,
Block.Type type) |
static RubyProc |
RubyProc.newProc(Ruby runtime,
Block block,
Block.Type type,
ISourcePosition sourcePosition)
Deprecated.
|
static RubyProc |
RubyProc.newProc(Ruby runtime,
Block block,
Block.Type type,
java.lang.String file,
int line) |
static IRubyObject[] |
RubyProc.prepareArgs(ThreadContext context,
Block.Type type,
BlockBody blockBody,
IRubyObject[] args)
For Type.LAMBDA, ensures that the args have the correct arity.
|
Constructor and Description |
---|
RubyProc(Ruby runtime,
RubyClass rubyClass,
Block.Type type) |
RubyProc(Ruby runtime,
RubyClass rubyClass,
Block.Type type,
ISourcePosition sourcePosition)
Deprecated.
|
RubyProc(Ruby runtime,
RubyClass rubyClass,
Block.Type type,
java.lang.String file,
int line) |
Modifier and Type | Method and Description |
---|---|
static boolean |
IRRuntimeHelpers.inLambda(Block.Type blockType) |
static boolean |
IRRuntimeHelpers.inNonMethodBodyLambda(StaticScope scope,
Block.Type blockType) |
static boolean |
IRRuntimeHelpers.inProc(Block.Type blockType) |
Modifier and Type | Field and Description |
---|---|
Block.Type |
Block.type |
Modifier and Type | Method and Description |
---|---|
static Block.Type |
Block.Type.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Block.Type[] |
Block.Type.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
protected IRubyObject |
MixedModeIRBlockBody.commonYieldPath(ThreadContext context,
Block block,
Block.Type type,
IRubyObject[] args,
IRubyObject self,
Block blockArg) |
protected abstract IRubyObject |
IRBlockBody.commonYieldPath(ThreadContext context,
Block block,
Block.Type type,
IRubyObject[] args,
IRubyObject self,
Block blockArg) |
protected IRubyObject |
CompiledIRBlockBody.commonYieldPath(ThreadContext context,
Block block,
Block.Type type,
IRubyObject[] args,
IRubyObject self,
Block blockArg) |
protected IRubyObject |
InterpretedIRBlockBody.commonYieldPath(ThreadContext context,
Block block,
Block.Type type,
IRubyObject[] args,
IRubyObject self,
Block blockArg) |
IRubyObject[] |
BlockBody.prepareArgumentsForCall(ThreadContext context,
IRubyObject[] args,
Block.Type type) |
Copyright © 2001-2018 JRuby. All Rights Reserved.