jruby/docs BETA
Navigation
org.jruby.runtime 95
I Accessor
C ArgfSites
C ArgumentDescriptor
E ArgumentType
C Arity
C Array2Sites
C ArraySites
C BasicObjectSites
C BigDecimalSites
C BignumSites
C Binding
C Block
C BlockBody
I BlockCallback
C Builtins
C CallBlock
C CallBlock19
C CallSite
C CallTraceFuncHook
E CallType
C CheckedSites
E ClassIndex
C ComparableSites
C CompiledIRBlockBody
C ComplexSites
C ConditionVariableSites
C Constants
C ContextAwareBlockBody
C Copy
C DateSites
C DigestSites
C DynamicScope
C EnumerableSites
C EventHook
I ExecutionContext
C FiberSites
C FileSites
C FixnumSites
C FloatSites
C Frame
C GlobalVariable
C HashSites
C Helpers
C HelpersSites
I IAccessor
C IOSites
C IRBlockBody
C IRRuntimeHelpersSites
C IntegerSites
C InterpretedIRBlockBody
C JavaInternalBlockBody
C JavaSites
C KernelSites
C MarshalSites
C MethodBlockBody
C MethodFactory
C MethodIndex
C MethodMissingWrapper
C MethodSites
C MixedModeIRBlockBody
C ModuleSites
C MonitorSites
C NullBlockBody
C NumericSites
I ObjectAllocator
I ObjectMarshal
C ObjectSites
C ObjectSpace
C PathnameSites
I PositionAware
C ProcSites
C ProducerSites
C RaiseExceptionSites
C RangeSites
C RationalSites
C ReadonlyGlobalVariable
I RecursiveFunctionEx
E Rest
E RubyEvent
C SetSites
C Signature
I SimpleHash
C StringSites
C StructSites
C SymbolSites
C TempfileSites
C ThreadContext
C TimeSites
C TraceEventManager
C TracePointSites
E Type
C TypeConverterSites
E Visibility
C WarningSites
C ZlibSites
NullBlockBody — members 14+
C new()
M call(context, block, args) IRubyObject
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 file() String
M line() int
M static_scope() StaticScope
M static_scope=(new_scope)
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
from BlockBody
F NULL_BODY BlockBody
M argument_descriptors() ArgumentDescriptor[]
M call(context, block, args, block_arg) IRubyObject
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 can_call_direct() boolean
M given?() boolean
M prepare_arguments_for_call(context, args, type) IRubyObject[]
M ruby_block?() boolean
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

org.jruby.runtime.NullBlockBody

class extends BlockBody 14 members

Constructors

new

new ( )
Java: <init>()

Instance Methods

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 )
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)

file

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

line

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

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

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)

Inherited

from BlockBody

fieldtypenote
NULL_BODY BlockBody

argument_descriptors

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

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)

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)

can_call_direct

boolean can_call_direct ( )
Java: canCallDirect()

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)

ruby_block?

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

Is this block represented by Ruby code?

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)