jruby/docs BETA
Navigation
org.jruby.internal.runtime.methods 34
C AliasMethod
C AttrReaderMethod
C AttrWriterMethod
I CacheableMethod
E CallConfiguration
C CompiledIRMethod
C CompiledIRNoProtocolMethod
C DefineMethodMethod
C DelegatingDynamicMethod
C DescriptorInfo
C DumpingInvocationMethodFactory
C DynamicMethod
C ExitableReturn
E Framing
C HandleMethod
I IRMethodArgs
C InterpretedIRBodyMethod
C InterpretedIRMethod
C InvocationMethodFactory
C InvokeDynamicMethodFactory
C JavaMethod
I MethodArgs2
C MethodMethod
C MixedModeIRMethod
I NativeCallMethod
C NullMethod
C PartialDelegatingMethod
C ProcMethod
C ProfilingDynamicMethod
C RefinedMarker
C RefinedWrapper
E Scoping
C SynchronizedDynamicMethod
C UndefinedMethod
MixedModeIRMethod — members 13+
C new(method, visibility, implementation_class)
M actual_method() DynamicMethod
M call(context, self, clazz, name, args, block) IRubyObject
M call(context, self, clazz, name, block) IRubyObject
M call(context, self, clazz, name, arg0, block) IRubyObject
M call(context, self, clazz, name, arg0, arg1, block) IRubyObject
M call(context, self, clazz, name, arg0, arg1, arg2, block) IRubyObject
C complete_build(context, new_method)
M dup() DynamicMethod
C finish_split_call(state)
M force_build(context) boolean
C reset()
M start_split_super_call(context, self, clazz, name, args, block) MethodSplitState>
from DynamicMethod
C adjust_alias_count(delta)
M alias_count() int
M builtin?() boolean
M call(context, self, clazz, name, args) IRubyObject
M call(context, self, klazz, name) IRubyObject
M call(context, self, klazz, name, arg0) IRubyObject
M call(context, self, klazz, name, arg0, arg1) IRubyObject
M call(context, self, klazz, name, arg0, arg1, arg2) IRubyObject
M call_respond_to(context, self, respond_to_method_name, klazz, name) boolean
M defined_class() RubyModule
C defined_class=(defined_class)
M handle() Object
C handle=(handle)
M implementation_class() RubyModule
C implementation_class=(impl_class)
C is_builtin=(is_builtin)
M is_callable_from(caller, call_type) boolean
M is_implemented_by(other) boolean
M name() String
M native?() boolean
C not_implemented=(set_not_implemented)
M not_implemented?() boolean
M null?() boolean
M real_method() DynamicMethod
M refined?() boolean
M serial_number() long
M undefined?() boolean
M visibility() Visibility
C visibility=(visibility)
from Compilable
M build_complete?() boolean
C call_count=(count)
C complete_build(build_result)
M ensure_instrs_ready() InterpreterContext
M file() String
M get_owner_name(context) String
M implementation_class() RubyModule
M ir_scope() IRScope
M line() int
M name() String
M owner_name() String
from AbstractIRMethod
M argument_descriptors() ArgumentDescriptor[]
M build_complete?() boolean
C call_count=(call_count)
M clone() Object
M ensure_instrs_ready() InterpreterContext
M file() String
M instance_variable_names() Collection<String>
M ir_scope() IRScope
M line() int
M method_data() MethodData
M needs_to_find_implementer() boolean
M ruby2_keywords() boolean
C set_ruby2_keywords()
M signature() Signature
M static_scope() StaticScope
M to_string() String

org.jruby.internal.runtime.methods.MixedModeIRMethod

class extends AbstractIRMethod implements Compilable<DynamicMethod> 13 members

Constructors

new

new ( IRScope method, Visibility visibility, RubyModule implementation_class )
Java: <init>(org.jruby.ir.IRScope method, org.jruby.runtime.Visibility visibility, org.jruby.RubyModule implementationClass)

Instance Methods

actual_method

DynamicMethod actual_method ( )
Java: getActualMethod() · also: get_actual_method

call

IRubyObject call ( ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block )
Java: call(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, org.jruby.RubyModule clazz, String name, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Block block)

call

IRubyObject call ( ThreadContext context, IRubyObject self, RubyModule clazz, String name, Block block )
Java: call(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, org.jruby.RubyModule clazz, String name, org.jruby.runtime.Block block)

call

IRubyObject call ( ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, Block block )
Java: call(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, org.jruby.RubyModule clazz, String name, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.Block block)

call

IRubyObject call ( ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1, Block block )
Java: call(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, org.jruby.RubyModule clazz, String name, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.Block block)

call

IRubyObject call ( ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block )
Java: call(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, org.jruby.RubyModule clazz, String name, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.builtin.IRubyObject arg2, org.jruby.runtime.Block block)

complete_build

complete_build ( ThreadContext context, DynamicMethod new_method )
Java: completeBuild(org.jruby.runtime.ThreadContext context, org.jruby.internal.runtime.methods.DynamicMethod newMethod)

dup

DynamicMethod dup ( )
Java: dup()

finish_split_call

finish_split_call ( SplitSuperState state )
Java: finishSplitCall(org.jruby.internal.runtime.SplitSuperState state)

force_build

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

reset

reset ( )
Java: reset()

start_split_super_call

SplitSuperState<MethodSplitState> start_split_super_call ( ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args, Block block )
Java: startSplitSuperCall(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, org.jruby.RubyModule clazz, String name, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Block block)

Inherited

from DynamicMethod

adjust_alias_count

adjust_alias_count ( int delta )
Java: adjustAliasCount(int delta)

alias_count

int alias_count ( )
Java: getAliasCount() · also: get_alias_count

builtin?

boolean builtin? ( )
Java: isBuiltin() · also: is_builtin

Whether this method is a builtin method, i.e. a method built-in to JRuby and loaded during its core boot process.

Returns: true if this is a core built-in method, false otherwise

call

IRubyObject call ( ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject[] args )
Java: call(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, org.jruby.RubyModule clazz, String name, org.jruby.runtime.builtin.IRubyObject[] args)

A default implementation of n-arity, non-block 'call' method, which simply calls the n-arity, block-receiving version with the arg list and Block.NULL_BLOCK.

nametypedescription
contextorg.jruby.runtime.ThreadContextThe thread context for the currently executing thread
selforg.jruby.runtime.builtin.IRubyObjectThe 'self' or 'receiver' object to use for this call
clazzorg.jruby.RubyModuleThe Ruby class against which this method is binding
nameStringThe incoming name used to invoke this method
argsorg.jruby.runtime.builtin.IRubyObject[]The first argument to this invocation

Returns: The result of the call

call

IRubyObject call ( ThreadContext context, IRubyObject self, RubyModule klazz, String name )
Java: call(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, org.jruby.RubyModule klazz, String name)

call

IRubyObject call ( ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg0 )
Java: call(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, org.jruby.RubyModule klazz, String name, org.jruby.runtime.builtin.IRubyObject arg0)

call

IRubyObject call ( ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg0, IRubyObject arg1 )
Java: call(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, org.jruby.RubyModule klazz, String name, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1)

call

IRubyObject call ( ThreadContext context, IRubyObject self, RubyModule klazz, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2 )
Java: call(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, org.jruby.RubyModule klazz, String name, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.builtin.IRubyObject arg2)

call_respond_to

boolean call_respond_to ( ThreadContext context, IRubyObject self, String respond_to_method_name, RubyModule klazz, RubySymbol name )
Java: callRespondTo(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, String respondToMethodName, org.jruby.RubyModule klazz, org.jruby.RubySymbol name)

defined_class

RubyModule defined_class ( )
Java: getDefinedClass() · also: get_defined_class

Get the original owner of this method/

Returns: the module method was defined in

defined_class=

defined_class= ( RubyModule defined_class )
Java: setDefinedClass(org.jruby.RubyModule definedClass) · also: set_defined_class

Set the defining class for this method, as when restructuring hierarchy for prepend.

nametypedescription
defined_classorg.jruby.RubyModulethat method was defined in

handle

Object handle ( )
Java: getHandle() · also: get_handle

Get the "handle" associated with this DynamicMethod.

Returns: the handle

handle=

handle= ( Object handle )
Java: setHandle(Object handle) · also: set_handle

Set the "handle" associated with this DynamicMethod.

nametypedescription
handleObjectthe handle

implementation_class

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

Retrieve the class or module on which this method is implemented, used for 'super' logic among others.

Returns: The class on which this method is implemented

implementation_class=

implementation_class= ( RubyModule impl_class )
Java: setImplementationClass(org.jruby.RubyModule implClass) · also: set_implementation_class

Set the class on which this method is implemented, used for 'super' logic, among others.

nametypedescription
impl_classorg.jruby.RubyModuleThe class on which this method is implemented

is_builtin=

is_builtin= ( boolean is_builtin )
Java: setIsBuiltin(boolean isBuiltin) · also: set_is_builtin

Force this method to be treated as a core built-in method if true, or as a normal non-core method otherwise.

nametypedescription
is_builtinbooleantrue if this is a core built-in method, false otherwise

is_callable_from

boolean is_callable_from ( IRubyObject caller, CallType call_type )
Java: isCallableFrom(org.jruby.runtime.builtin.IRubyObject caller, org.jruby.runtime.CallType callType)

Determine whether this method is callable from the given object using the given call type.

nametypedescription
callerorg.jruby.runtime.builtin.IRubyObjectThe calling object
call_typeorg.jruby.runtime.CallTypeThe type of call

Returns: true if the call would not violate visibility; false otherwise

is_implemented_by

boolean is_implemented_by ( RubyModule other )
Java: isImplementedBy(org.jruby.RubyModule other)

name

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

Get the base name this method was defined as.

Returns: the base name for the method

native?

boolean native? ( )
Java: isNative() · also: is_native

Returns true if this method is backed by native (i.e. Java) code.

Returns: true If backed by Java code or JVM bytecode; false otherwise

not_implemented=

not_implemented= ( boolean set_not_implemented )
Java: setNotImplemented(boolean setNotImplemented) · also: set_not_implemented

Set whether this method is "not implemented".

nametypedescription
set_not_implementedbooleanis this not implement or not

not_implemented?

boolean not_implemented? ( )
Java: isNotImplemented() · also: is_not_implemented

Whether this method is "not implemented". This is primarily to support Ruby 1.9's behavior of respond_to? yielding false if the feature in question is unsupported (but still having the method defined).

Returns: is this a method which is marked as not implemented

null?

boolean null? ( )
Java: isNull() · also: is_null

Whether this method is the "null" method, used to stop method name resolution loops. Only returns true for NullMethod instances, of which there should be only one (a singleton).

Returns: true if this method is the undefined method; false otherwise

real_method

DynamicMethod real_method ( )
Java: getRealMethod() · also: get_real_method

Get the "real" method contained within this method. This simply returns self except in cases where a method is wrapped to give it a new name or new implementation class (AliasMethod, PartialDelegatingMethod, ...).

Returns: The "real" method associated with this one

refined?

boolean refined? ( )
Java: isRefined() · also: is_refined

serial_number

long serial_number ( )
Java: getSerialNumber() · also: get_serial_number

Get the global serial number for this method object

Returns: This method object's serial number

undefined?

boolean undefined? ( )
Java: isUndefined() · also: is_undefined

Whether this method is the "undefined" method, used to represent a missing or undef'ed method. Only returns true for UndefinedMethod instances, of which there should be only one (a singleton).

Returns: true if this method is the undefined method; false otherwise

visibility

Visibility visibility ( )
Java: getVisibility() · also: get_visibility

Get the visibility of this method.

Returns: The visibility of this method

visibility=

visibility= ( Visibility visibility )
Java: setVisibility(org.jruby.runtime.Visibility visibility) · also: set_visibility

Set the visibility of this method.

nametypedescription
visibilityorg.jruby.runtime.VisibilityThe visibility of this method

from Compilable

build_complete?

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

Indicates whether this Compilable has completed its build process. Override this and #forceBuild(ThreadContext) for implementations that have a build process.

Returns: true if the build has completed; false otherwise.

call_count=

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

complete_build

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

ensure_instrs_ready

InterpreterContext ensure_instrs_ready ( )
Java: ensureInstrsReady()

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)

implementation_class

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

ir_scope

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

line

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

Returns: method/block source file line

name

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

Returns: method/closure identifier

owner_name

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

Return the owning module/class name.

Returns: method/block owner's name

from AbstractIRMethod

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

clone

Object clone ( )
Java: clone()

ensure_instrs_ready

InterpreterContext ensure_instrs_ready ( )
Java: ensureInstrsReady()

file

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

instance_variable_names

Collection<String> instance_variable_names ( )
Java: getInstanceVariableNames() · also: get_instance_variable_names

ir_scope

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

line

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

method_data

MethodData method_data ( )
Java: getMethodData() · also: get_method_data

Additional metadata about this method.

needs_to_find_implementer

boolean needs_to_find_implementer ( )
Java: needsToFindImplementer()

ruby2_keywords

boolean ruby2_keywords ( )
Java: getRuby2Keywords() · also: get_ruby2_keywords

set_ruby2_keywords

set_ruby2_keywords ( )
Java: setRuby2Keywords()

signature

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

static_scope

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

to_string

String to_string ( )
Java: toString()