jruby/docs BETA
Navigation
org.jruby.runtime 44
I Accessor
C ArgumentDescriptor
E ArgumentType
C Arity
C Binding
C Block
C BlockBody
I BlockCallback
C Builtins
C CallBlock
C CallBlock19
C CallSite
E CallType
E ClassIndex
C CompiledIRBlockBody
C Constants
C ContextAwareBlockBody
C DynamicScope
C EventHook
I ExecutionContext
C Frame
C GlobalVariable
C Helpers
I IAccessor
C IRBlockBody
C InterpretedIRBlockBody
C JavaInternalBlockBody
C JavaSites
C MethodBlockBody
C MethodFactory
C MethodIndex
C MixedModeIRBlockBody
C NullBlockBody
I ObjectAllocator
I ObjectMarshal
C ObjectSpace
I PositionAware
C ReadonlyGlobalVariable
E RubyEvent
C Signature
I SimpleHash
C ThreadContext
C TraceEventManager
E Visibility
MixedModeIRBlockBody — members 13+
C new(closure, signature)
M argument_descriptors() ArgumentDescriptor[]
M build_complete?() boolean
C call_count=(call_count)
M can_call_direct() boolean
C complete_build(context, block_body)
M ensure_instrs_ready() InterpreterContext
M force_build(context) boolean
M implementation_class() RubyModule
M ir_scope() IRScope
M jitted_body() BlockBody
M name() String
M scope() IRClosure
from BlockBody
F NULL_BODY BlockBody
M call(context, block, unused_block) IRubyObject
M call(context, block, arg0, unused_block) IRubyObject
M call(context, block, arg0, arg1, unused_block) IRubyObject
M call(context, block, arg0, arg1, arg2, unused_block) IRubyObject
M given?() boolean
M prepare_arguments_for_call(context, args, type) IRubyObject[]
M signature() Signature
M test_block_body() MethodHandle
M yield(context, block, value) IRubyObject
M yield(context, block, args, self) IRubyObject
M yield(context, block, args, self, block_arg) IRubyObject
M yield(context, block, value, block_arg) IRubyObject
from Compilable
C complete_build(build_result)
M file() String
M get_owner_name(context) String
M line() int
M owner_name() String
from ContextAwareBlockBody
M static_scope() StaticScope
C static_scope=(new_scope)
from IRBlockBody
M call(context, block) IRubyObject
M call(context, block, arg0) IRubyObject
M call(context, block, arg0, arg1) IRubyObject
M call(context, block, arg0, arg1, arg2) IRubyObject
M call(context, block, args) IRubyObject
M call(context, block, args, block_arg) IRubyObject
M do_yield(context, block, value) IRubyObject
M do_yield(context, block, args, self) IRubyObject
M file() String
M line() int
M ruby_block?() boolean
M yield_specific(context, block) IRubyObject
M yield_specific(context, block, arg0) IRubyObject
M yield_specific(context, block, arg0, arg1) IRubyObject
M yield_specific(context, block, arg0, arg1, arg2) IRubyObject

org.jruby.runtime.MixedModeIRBlockBody

class extends IRBlockBody implements Compilable<CompiledIRBlockBody> 13 members

Constructors

new

new ( IRClosure closure, Signature signature )
Java: <init>(org.jruby.ir.IRClosure closure, org.jruby.runtime.Signature signature)

Instance Methods

argument_descriptors

ArgumentDescriptor[] argument_descriptors ( )
Java: getArgumentDescriptors() · also: get_argument_descriptors

build_complete?

boolean build_complete? ( )
Java: isBuildComplete() · also: is_build_complete

call_count=

call_count= ( int call_count )
Java: setCallCount(int callCount) · also: set_call_count

can_call_direct

boolean can_call_direct ( )
Java: canCallDirect()

complete_build

complete_build ( ThreadContext context, CompiledIRBlockBody block_body )
Java: completeBuild(org.jruby.runtime.ThreadContext context, org.jruby.runtime.CompiledIRBlockBody blockBody)

ensure_instrs_ready

InterpreterContext ensure_instrs_ready ( )
Java: ensureInstrsReady()

force_build

boolean force_build ( ThreadContext context )
Java: forceBuild(org.jruby.runtime.ThreadContext context)

implementation_class

RubyModule implementation_class ( )
Java: getImplementationClass() · also: get_implementation_class

ir_scope

IRScope ir_scope ( )
Java: getIRScope() · also: get_ir_scope

jitted_body

BlockBody jitted_body ( )
Java: getJittedBody() · also: get_jitted_body

name

String name ( )
Java: getName() · also: get_name

scope

IRClosure scope ( )
Java: getScope() · also: get_scope

Inherited

from BlockBody

fieldtypenote
NULL_BODY BlockBody

call

IRubyObject call ( ThreadContext context, Block block, Block unused_block )
Java: call(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block, org.jruby.runtime.Block unusedBlock)

call

IRubyObject call ( ThreadContext context, Block block, IRubyObject arg0, Block unused_block )
Java: call(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.Block unusedBlock)

call

IRubyObject call ( ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, Block unused_block )
Java: call(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.Block unusedBlock)

call

IRubyObject call ( ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block unused_block )
Java: call(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.builtin.IRubyObject arg2, org.jruby.runtime.Block unusedBlock)

given?

boolean given? ( )
Java: isGiven() · also: is_given

Is the current block a real yield'able block instead a null one

Returns: true if this is a valid block or false otherwise

prepare_arguments_for_call

IRubyObject[] prepare_arguments_for_call ( ThreadContext context, IRubyObject[] args, Block.Type type )
Java: prepareArgumentsForCall(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Block.Type type)

signature

Signature signature ( )
Java: getSignature() · also: get_signature

test_block_body

MethodHandle test_block_body ( )
Java: getTestBlockBody() · also: get_test_block_body

yield

IRubyObject yield ( ThreadContext context, Block block, IRubyObject value )
Java: yield(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block, org.jruby.runtime.builtin.IRubyObject value)

yield

IRubyObject yield ( ThreadContext context, Block block, IRubyObject[] args, IRubyObject self )
Java: yield(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.builtin.IRubyObject self)

yield

IRubyObject yield ( ThreadContext context, Block block, IRubyObject[] args, IRubyObject self, Block block_arg )
Java: yield(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.builtin.IRubyObject self, org.jruby.runtime.Block blockArg)

yield

IRubyObject yield ( ThreadContext context, Block block, IRubyObject value, Block block_arg )
Java: yield(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block, org.jruby.runtime.builtin.IRubyObject value, org.jruby.runtime.Block blockArg)

from Compilable

complete_build

complete_build ( T build_result )
Java: completeBuild(T buildResult)

file

String file ( )
Java: getFile() · also: get_file

Returns: method/block source file

get_owner_name

String get_owner_name ( ThreadContext context )
Java: getOwnerName(org.jruby.runtime.ThreadContext context)

line

int line ( )
Java: getLine() · also: get_line

Returns: method/block source file line

owner_name

String owner_name ( )
Java: getOwnerName() · also: get_owner_name

Return the owning module/class name.

Returns: method/block owner's name

from ContextAwareBlockBody

static_scope

StaticScope static_scope ( )
Java: getStaticScope() · also: get_static_scope

static_scope=

static_scope= ( StaticScope new_scope )
Java: setStaticScope(org.jruby.parser.StaticScope newScope) · also: set_static_scope

from IRBlockBody

call

IRubyObject call ( ThreadContext context, Block block )
Java: call(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

call

IRubyObject call ( ThreadContext context, Block block, IRubyObject arg0 )
Java: call(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block, org.jruby.runtime.builtin.IRubyObject arg0)

call

IRubyObject call ( ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1 )
Java: call(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1)

call

IRubyObject call ( ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2 )
Java: call(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.builtin.IRubyObject arg2)

call

IRubyObject call ( ThreadContext context, Block block, IRubyObject[] args )
Java: call(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block, org.jruby.runtime.builtin.IRubyObject[] args)

call

IRubyObject call ( ThreadContext context, Block block, IRubyObject[] args, Block block_arg )
Java: call(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Block blockArg)

do_yield

IRubyObject do_yield ( ThreadContext context, Block block, IRubyObject value )
Java: doYield(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block, org.jruby.runtime.builtin.IRubyObject value)

do_yield

IRubyObject do_yield ( ThreadContext context, Block block, IRubyObject[] args, IRubyObject self )
Java: doYield(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.builtin.IRubyObject self)

file

String file ( )
Java: getFile() · also: get_file

line

int line ( )
Java: getLine() · also: get_line

ruby_block?

boolean ruby_block? ( )
Java: isRubyBlock() · also: is_ruby_block

yield_specific

IRubyObject yield_specific ( ThreadContext context, Block block )
Java: yieldSpecific(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

yield_specific

IRubyObject yield_specific ( ThreadContext context, Block block, IRubyObject arg0 )
Java: yieldSpecific(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block, org.jruby.runtime.builtin.IRubyObject arg0)

yield_specific

IRubyObject yield_specific ( ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1 )
Java: yieldSpecific(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1)

yield_specific

IRubyObject yield_specific ( ThreadContext context, Block block, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2 )
Java: yieldSpecific(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.builtin.IRubyObject arg2)