| Package | Description |
|---|---|
| org.jruby | |
| org.jruby.ir.instructions | |
| 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,
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,
String file,
int line) |
| Modifier and Type | Method and Description |
|---|---|
IRubyObject |
RuntimeHelperCall.callHelper(ThreadContext context,
StaticScope currScope,
DynamicScope currDynScope,
IRubyObject self,
Object[] temp,
Block.Type blockType) |
void |
CheckForLJEInstr.check(ThreadContext context,
DynamicScope dynamicScope,
Block.Type blockType) |
void |
CheckArityInstr.checkArity(ThreadContext context,
Object[] args,
Block.Type blockType) |
| Modifier and Type | Method and Description |
|---|---|
static void |
IRRuntimeHelpers.checkArity(ThreadContext context,
Object[] args,
int required,
int opt,
boolean rest,
boolean receivesKwargs,
int restKey,
Block.Type blockType) |
static void |
IRRuntimeHelpers.checkForLJE(ThreadContext context,
DynamicScope dynScope,
boolean maybeLambda,
Block.Type blockType) |
static IRubyObject |
IRRuntimeHelpers.handleBreakAndReturnsInLambdas(ThreadContext context,
StaticScope scope,
DynamicScope dynScope,
Object exc,
Block.Type blockType) |
static IRubyObject |
IRRuntimeHelpers.handleNonlocalReturn(StaticScope scope,
DynamicScope dynScope,
Object rjExc,
Block.Type blockType) |
static IRubyObject |
IRRuntimeHelpers.handlePropagatedBreak(ThreadContext context,
DynamicScope dynScope,
Object bjExc,
Block.Type blockType) |
static IRubyObject |
IRRuntimeHelpers.initiateBreak(ThreadContext context,
DynamicScope dynScope,
IRubyObject breakValue,
Block.Type blockType) |
static IRubyObject |
IRRuntimeHelpers.initiateNonLocalReturn(ThreadContext context,
DynamicScope dynScope,
Block.Type blockType,
IRubyObject returnValue) |
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 |
|---|---|
Block.Type |
ThreadContext.getCurrentBlockType() |
static Block.Type |
Block.Type.valueOf(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 IRubyObject |
IRBlockBody.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) |
static IRubyObject[] |
Helpers.restructureBlockArgs19(IRubyObject value,
Signature signature,
Block.Type type,
boolean needsSplat,
boolean alreadyArray) |
void |
ThreadContext.setCurrentBlockType(Block.Type type) |
Copyright © 2001-2016 JRuby. All Rights Reserved.