jruby/docs BETA
Navigation
org.jruby 121
C AbstractRubyMethod
I Appendable
C BasicObjectStub
I DelegatedModule
E EvalType
C FiberScheduler
I Finalizable
C FlagRegistry
C IncludedModule
C IncludedModuleWrapper
C JarBootstrapMain
C Main
C MetaClass
C NativeException
I ObjectFlags
I ParseResult
C PrependedModule
I Profile
C Ruby
C RubyArgsFile
C RubyArgumentError
C RubyArithmeticSequence
C RubyArray
C RubyArrayNative
C RubyBasicObject
C RubyBignum
C RubyBinding
C RubyBoolean
C RubyChain
C RubyClass
C RubyClassPathVariable
C RubyComparable
C RubyComplex
C RubyConcurrencyError
C RubyConverter
C RubyData
C RubyDir
C RubyDomainError
C RubyEOFError
C RubyEncoding
C RubyEncodingError
C RubyEnumerable
C RubyEnumerator
C RubyException
C RubyFatal
C RubyFiberError
C RubyFile
C RubyFileStat
C RubyFileTest
C RubyFixnum
C RubyFloat
C RubyFloatDomainError
C RubyFrozenError
C RubyGC
C RubyGenerator
C RubyGlobal
C RubyHash
C RubyHashLinkedBuckets
C RubyIO
C RubyIOBuffer
C RubyIOError
C RubyIndexError
C RubyInstanceConfig
C RubyInteger
C RubyInterrupt
C RubyInterruptedRegexpError
C RubyKernel
C RubyKeyError
C RubyLoadError
C RubyLocalJumpError
C RubyMarshal
C RubyMatchData
C RubyMath
C RubyMethod
C RubyModule
C RubyNameError
C RubyNil
C RubyNoMatchingPatternError
C RubyNoMatchingPatternKeyError
C RubyNoMemoryError
C RubyNoMethodError
C RubyNotImplementedError
C RubyNumeric
C RubyObject
I RubyObjectAdapter
C RubyObjectSpace
C RubyProc
C RubyProcess
C RubyProducer
C RubyRandom
C RubyRandomBase
C RubyRange
C RubyRangeError
C RubyRational
C RubyRegexp
C RubyRegexpError
I RubyRuntimeAdapter
C RubyRuntimeError
C RubyScriptError
C RubySecurityError
C RubySignal
C RubySignalException
C RubyStandardError
C RubyStopIteration
C RubyString
C RubyStruct
C RubySymbol
C RubySyntaxError
C RubySystemCallError
C RubySystemExit
C RubySystemStackError
C RubyThread
C RubyThreadError
C RubyThreadGroup
C RubyTime
C RubyTypeError
C RubyUnboundMethod
C RubyUncaughtThrowError
C RubyYielder
C RubyZeroDivisionError
C TopSelfFactory
RubyClass — members 153+
F CLASS_ALLOCATOR() ObjectAllocator
F CS_IDX_INITIALIZE() int
C add_class_annotation(annotation, fields)
C add_field_annotation(field_name, annotation, fields)
C add_field_signature(field_name, type)
C add_method_annotation(method_name, annotation, fields)
C add_method_signature(method_name, types)
C add_parameter_annotation(method, i, anno_class, value)
C add_subclass(subclass)
M all_method_signatures() Map<String,List<Class<?>[]>>
M allocate() IRubyObject
M allocate(context) IRubyObject
M allocator() ObjectAllocator
M allocator(allocator) T
C allocator=(allocator)
M attached_object(context) IRubyObject
M base_call_sites() CallSite[]
C become_synchronized()
C check_inheritable(super_class)
C check_inheritable(context, super_class)
M check_method_basic_definition(name) boolean
M class?() boolean
C class_allocator=(clazz)
M class_annotations() Map<Class<?>,Map<String,Object>>
M class_config() JavaClassConfiguration
C class_config=(jcc)
M class_runtime() Ruby
M create_bootstrap_class(runtime, name, super_class, allocator) RubyClass
M extra_call_sites() CallSite[]
M ffi_handle_accessor_field() VariableAccessorField
M ffi_handle_accessor_for_read() VariableAccessor
M ffi_handle_accessor_for_write() VariableAccessor
M field_annotations() Map<String,Map<Class<?>,Map<String,Object>>>
M field_signatures() Map<String,Class<?>>
C finish_class_class(runtime, class)
C finish_create_class_class(context, class)
M finvoke(context, self, name, block) IRubyObject
M finvoke(context, self, name, args, block) IRubyObject
M finvoke(context, self, name, arg, block) IRubyObject
M finvoke(context, self, name, arg0, arg1, block) IRubyObject
M finvoke(context, self, name, arg0, arg1, arg2, block) IRubyObject
M finvoke(context, self, name) IRubyObject
M finvoke(context, self, name, args) IRubyObject
M finvoke(context, self, name, arg) IRubyObject
M finvoke(context, self, name, arg0, arg1) IRubyObject
M finvoke(context, self, name, arg0, arg1, arg2) IRubyObject
M finvoke_checked(context, self, name) IRubyObject
M finvoke_checked(context, self, sites) IRubyObject
M finvoke_checked(context, self, name, args) IRubyObject
M finvoke_checked(context, self, sites, args) IRubyObject
M finvoke_with_refinements(context, self, static_scope, name, block) IRubyObject
M finvoke_with_refinements(context, self, static_scope, name, args, block) IRubyObject
M finvoke_with_refinements(context, self, static_scope, name, arg, block) IRubyObject
M finvoke_with_refinements(context, self, static_scope, name, arg0, arg1, block) IRubyObject
M finvoke_with_refinements(context, self, static_scope, name, arg0, arg1, arg2, block) IRubyObject
M get_base_call_site(idx) CallSite
M get_position_or_default(method) PositionAware
M get_variable_accessor_for_read(name) VariableAccessor
M get_variable_accessor_for_write(name) VariableAccessor
M has_object_id?() boolean
C inherit(super_clazz)
M inherited(context, arg) IRubyObject
M initialize(context, block) IRubyObject
M initialize(context, super_object, block) IRubyObject
M initialize_copied_module(context, original) IRubyObject
C invalidate_cache_descendants(context)
M invoke(context, self, name, call_type, block) IRubyObject
M invoke(context, self, name, args, call_type, block) IRubyObject
M invoke(context, self, name, arg, call_type, block) IRubyObject
M invoke(context, self, name, arg0, arg1, call_type, block) IRubyObject
M invoke(context, self, name, arg0, arg1, arg2, call_type, block) IRubyObject
M invoke(context, self, name, call_type) IRubyObject
M invoke(context, self, name, args, call_type) IRubyObject
M invoke(context, self, name, arg, call_type) IRubyObject
M invoke(context, self, name, arg0, arg1, call_type) IRubyObject
M invoke(context, self, name, arg0, arg1, arg2, call_type) IRubyObject
M invoke_inherited(context, self, subclass) IRubyObject
M invoke_public(context, self, name, arg) IRubyObject
M is_reifiable(java) boolean
M is_reified_extended_java_class() Boolean
M marshal() ObjectMarshal
C marshal(obj, marshal_stream)
C marshal(context, out, obj, marshal_stream)
C marshal=(marshal)
C marshal_to(clazz, output)
C marshal_to(context, out, clazz, output)
M marshal_with(marshal) T
M method_annotations() Map<String,Map<Class<?>,Map<String,Object>>>
M method_signatures() Map<String,Class<?>[]>
M module?() boolean
M native_class_index() ClassIndex
M nearest_reified_class(klass) Class<?>
M new_class(runtime, super_class) RubyClass
M new_class(runtime, super_class, extra_call_sites) RubyClass
M new_class(context, super_class, extra_call_sites) RubyClass
M new_class(runtime, super_class, name, allocator, parent, set_parent) RubyClass
M new_class(runtime, super_class, name, allocator, parent, set_parent, file, line) RubyClass
M new_class(context, super_class, name, allocator, parent, set_parent, file, line) RubyClass
M new_class(runtime, super_class, name, allocator, parent, set_parent, extra_call_sites) RubyClass
M new_class(context, super_class, name, allocator, parent, set_parent, extra_call_sites) RubyClass
M new_class_bootstrap(runtime, object, class, name) RubyClass
M new_instance(context, block) IRubyObject
M new_instance(context, arg0, block) IRubyObject
M new_instance(context, arg0) IRubyObject
M new_instance(context, arg0, arg1, block) IRubyObject
M new_instance(context, arg0, arg1, arg2, block) IRubyObject
M new_instance(context, args, block) IRubyObject
M object_group_accessor_field() VariableAccessorField
M object_group_accessor_for_read() VariableAccessor
M object_group_accessor_for_write() VariableAccessor
M object_id_accessor_field() VariableAccessorField
M parameter_annotations() Map<String,List<Map<Class<?>,Map<String,Object>>>>
M real_class() RubyClass
M real_module() RubyModule
M reified_class(reified_class) T
M reified_class() Reified>
M reified_class() Reified>
C reified_class=(reified_class)
M reified_java_class() ReifiedJavaProxy>
M reified_ruby_class() IRubyObject>
C reify()
C reify(class_dump_dir)
C reify(use_child_loader)
C reify(class_dump_dir, use_child_loader)
C reify_with_ancestors()
C reify_with_ancestors(class_dump_dir)
C reify_with_ancestors(use_child_loader)
C reify_with_ancestors(class_dump_dir, use_child_loader)
C remove_subclass(subclass)
C replace_subclass(subclass, new_subclass)
C ruby_class_allocator=(clazz)
C ruby_static_allocator=(clazz)
M singleton?() boolean
C smart_dump(stream, target)
C smart_dump(context, out, stream, target)
M smart_load_new_user(target, data) IRubyObject
M smart_load_old_user(data) IRubyObject
M subclasses(context) IRubyObject
M subclasses() RubyClass>
M subclasses(include_descendants) RubyClass>
M subclasses_for_read() RubyClassSet
M superclass(context) IRubyObject
M to_java(target) T
M unmarshal(unmarshal_stream) Object
M unmarshal(context, in, loader) Object
M unmarshal_from(input) RubyClass
M unmarshal_from(context, in, input) RubyClass
M variable_accessors_for_read() VariableAccessor>
M variable_names() String[]
M variable_table_copy() VariableAccessor>
M variable_table_manager() VariableTableManager
M variable_table_size() int
M variable_table_size_with_extras() int
from IRubyObject
F NULL_ARRAY IRubyObject[]
M check_string_type19() IRubyObject
M dup(context) IRubyObject
C marshal_live_variables(stream, context, out)
from RubyBasicObject
F ALL_F int
F BASICOBJECT_ALLOCATOR ObjectAllocator
F ERR_INSECURE_SET_INST_VAR String
F FALSE_F int
F FROZEN_F int
F NEVER IRubyObject
F NIL_F int
F STAMP_OFFSET long
F TAINTED_F int
F UNDEF IRubyObject
F VAR_TABLE_OFFSET long
F varTable Object[]
F varTableStamp byte
M __id__(context) RubyInteger
C add_finalizer(f)
M add_finalizer(context, f) IRubyObject
M any_to_string() IRubyObject
M as_java_string() String
M as_string() RubyString
M call_method(context, name) IRubyObject
M call_method(context, name, arg) IRubyObject
M call_method(context, name, args) IRubyObject
M call_method(name, args) IRubyObject
M call_method(name, arg) IRubyObject
M call_method(name) IRubyObject
M call_method(context, name, args, block) IRubyObject
M check_array_type() IRubyObject
M check_call_method(context, name) IRubyObject
M check_call_method(context, sites) IRubyObject
M check_string_type() IRubyObject
M compare_to(other) int
M convert_to_array() RubyArray
M convert_to_float() RubyFloat
M convert_to_hash() RubyHash
M convert_to_integer() RubyInteger
M convert_to_integer(convert_method) RubyInteger
M convert_to_string() RubyString
C copy_instance_variables_into(other)
C copy_special_instance_variables(clone)
M current_context() ThreadContext
M data_get_struct() Object
C data_wrap_struct(obj)
M decode(id) RubyString
M display(context, args) IRubyObject
M dup() IRubyObject
C ensure_instance_variables_settable()
M eql(other) boolean
M eql_p(obj) IRubyObject
M eql_p(context, obj) IRubyObject
M equal_p(context, other) IRubyObject
M eval_under(context, under, src, file, line, eval_type) IRubyObject
M extend(args) IRubyObject
M false?() boolean
M ffi_handle() Object
C ffi_handle=(value)
C for_each_instance_variable(accessor)
C for_each_instance_variable_name(consumer)
C frozen=(frozen)
M frozen?() boolean
M frozen_p(context) RubyBoolean
M get_flag(flag) boolean
M get_instance_variable(name) IRubyObject
M get_internal_variable(name) Object
M get_variable(index) Object
M has_instance_variable(name) boolean
M has_internal_variable(name) boolean
M has_variables?() boolean
M hash() RubyFixnum
M hashy_inspect() IRubyObject
M hashy_inspect(context) IRubyObject
M id() IRubyObject
M immediate?() boolean
M infect_by(obj) IRubyObject
M initialize(context) IRubyObject
M initialize_copy(original) IRubyObject
M initialize_copy(context, original) IRubyObject
M inspect() IRubyObject
M inspect(context) IRubyObject
M instance_eval(context, block) IRubyObject
M instance_eval(context, arg0, block) IRubyObject
M instance_eval(context, arg0, arg1, block) IRubyObject
M instance_eval(context, arg0, arg1, arg2, block) IRubyObject
M instance_eval(context, args, block) IRubyObject
M instance_exec(context, args, block) IRubyObject
M instance_of_p(context, type) RubyBoolean
M instance_variable_defined_p(context, name) IRubyObject
M instance_variable_get(context, name) IRubyObject
M instance_variable_list() IRubyObject>>
M instance_variable_name_list() List<String>
M instance_variable_set(name, value) IRubyObject
M instance_variables() InstanceVariables
M instance_variables(context) RubyArray
M internal_variables() InternalVariables
M is_builtin(method_name) boolean
M java_class() Class<?>
M kind_of_p(context, type) RubyBoolean
M make_meta_class(super_class) RubyClass
M make_meta_class(context, super_class) RubyClass
M make_meta_class_bootstrap(runtime, super_class, class) RubyClass
M marshal_variable_list() Variable<Object>>
M meta_class() RubyClass
C meta_class=(meta_class)
M method(name) IRubyObject
M method(name, refined_scope) IRubyObject
M method(context, name, refined_scope) IRubyObject
M methods(context, args) IRubyObject
M nil?() boolean
M nil_p(context) IRubyObject
M op_match(context, arg) IRubyObject
M op_not(context) IRubyObject
M op_not_equal(context, other) IRubyObject
M op_not_match(context, arg) IRubyObject
M private_methods(context, args) IRubyObject
M protected_methods(context, args) IRubyObject
M public_methods(context, args) IRubyObject
M rb_clone() IRubyObject
M rb_clone(context, maybe_opts) IRubyObject
C remove_finalizers()
M remove_instance_variable(name) IRubyObject
M remove_instance_variable(context, name, block) IRubyObject
M remove_internal_variable(name) Object
M respond_to_p(mname) RubyBoolean
M responds_to(name) boolean
M responds_to_missing(name) boolean
M responds_to_missing(name, inc_private) boolean
M runtime() Ruby
M send(context, block) IRubyObject
M send(context, arg0, block) IRubyObject
M send(context, arg0, arg1, block) IRubyObject
M send(context, arg0, arg1, arg2, block) IRubyObject
M send(context, args, block) IRubyObject
C set_flag(flag, set)
M set_instance_variable(name, value) IRubyObject
C set_internal_variable(name, value)
C set_variable(index, value)
M singleton_class() RubyClass
M singleton_class(context) RubyClass
M singleton_method(name) IRubyObject
M singleton_method(context, name) IRubyObject
M singleton_methods(context, args) RubyArray
M special_const?() boolean
M special_object?() boolean
M specific_eval(context, mod, block, eval_type) IRubyObject
M specific_eval(context, mod, arg, block, eval_type) IRubyObject
M specific_eval(context, mod, arg0, arg1, block, eval_type) IRubyObject
M specific_eval(context, mod, arg0, arg1, arg2, block, eval_type) IRubyObject
C sync_variables(other)
M taint(context) IRubyObject
C taint=(taint)
M taint?() boolean
M tainted_p(context) RubyBoolean
M to_a(context) RubyArray
M true?() boolean
M type() RubyClass
M type() RubyClass
M untaint(context) IRubyObject
M variable_list() Variable<Object>>
M variable_name_list() List<String>
from RubyObject
F IVAR_INSPECTING_OBJECT_ALLOCATOR ObjectAllocator
F OBJECT_ALLOCATOR ObjectAllocator
F REIFYING_OBJECT_ALLOCATOR ObjectAllocator
C attach_to_object_space()
C call_init(args, block)
C call_init(block)
C call_init(arg0, block)
C call_init(arg0, arg1, block)
C call_init(arg0, arg1, arg2, block)
C call_init(context, args, block)
C call_init(context, block)
C call_init(context, arg0, block)
C call_init(context, arg0, arg1, block)
C call_init(context, arg0, arg1, arg2, block)
M to_ruby_string(context) RubyString
M to_string() String
from RubyModule
F BUILTIN_CONSTANT String
F CACHEPROXY_F int
F INCLUDED_INTO_REFINEMENT int
F IS_OVERLAID_F int
F MODULE_ALLOCATOR ObjectAllocator
F NEEDSIMPL_F int
F OMOD_SHARED int
F REFINED_MODULE_F int
F TEMPORARY_NAME int
F id int
F kindOf KindOf
F parent RubyModule
M _module_function(context, args) IRubyObject
M _private(context, args) IRubyObject
M _protected(context, args) IRubyObject
M _public(context, args) IRubyObject
C add_class_provider(provider)
C add_including_hierarchy(hierarchy)
C add_method(id, method)
C add_method(context, id, method)
C add_method_internal(name, method)
C add_method_internal(context, name, method)
C add_module_function(name, method)
C add_read_attribute(context, name)
C add_read_write_attribute(context, name)
C add_write_attribute(context, name)
M alias_method(context, new_id, old_id) IRubyObject
M alias_method(context, new_id, old_id) RubyModule
M ancestor_list() IRubyObject>
M ancestors(context) RubyArray
M ancestors() RubyArray
M append_features(include) RubyModule
M append_features(context, include) RubyModule
M attr(context, args) IRubyObject
M attr_accessor(context, args) IRubyObject
M attr_reader(context, args) IRubyObject
M attr_writer(context, args) IRubyObject
M autoload(context, symbol, file) IRubyObject
M autoload_p(context, symbol) IRubyObject
M autoload_p(context, symbol, inherit) IRubyObject
M autoloading_value(runtime, name) boolean
M autoloading_value(context, name) boolean
M base_name() String
M base_name(name) T
C base_name=(name)
M cache_proxy() boolean
C cache_proxy=(cache_proxy)
C check_frozen()
C check_valid_bind_target_from(context, origin_module, from_bind)
M class_index() ClassIndex
M class_index(class_index) T
M class_variable_defined_p(context, var) IRubyObject
M class_variable_get(name) IRubyObject
M class_variable_get(context, name) IRubyObject
M class_variable_get19(name) IRubyObject
M class_variable_name_list() List<String>
M class_variable_set(name, value) IRubyObject
M class_variable_set(context, name, value) IRubyObject
M class_variable_set19(name, value) IRubyObject
M class_variables(context) RubyArray
M class_variables(context, inherit) RubyArray
M const_added(context, _new_constant) IRubyObject
M const_defined(name) boolean
M const_defined(context, name) boolean
M const_defined_at(name) boolean
M const_defined_at(context, name) boolean
M const_defined_from(name) boolean
M const_defined_from(context, name) boolean
M const_defined_p(context, name) RubyBoolean
M const_defined_p(context, name, recurse) RubyBoolean
M const_get(context, arg0) IRubyObject
M const_get(context, arg0, arg1) IRubyObject
M const_get(symbol) IRubyObject
M const_get(context, args) IRubyObject
M const_get_1_9(context, args) IRubyObject
M const_get_2_0(context, args) IRubyObject
M const_missing(context, ruby_name, block) IRubyObject
M const_set(name, value) IRubyObject
M const_set(context, name, value) IRubyObject
M const_source_location(context, args) IRubyObject
M constant_map() ConstantEntry>
M constant_map_for_write() ConstantEntry>
M constant_names() Collection<String>
M constants(context) RubyArray
M constants(context, all_constants) RubyArray
M constants_common(runtime, replace_module, all_constants) Collection<String>
M constants_common(runtime, replace_module, all_constants, include_private) Collection<String>
C define_alias(name, old_name)
M define_alias(context, name, old_name) T
M define_annotated_constant(field) boolean
C define_annotated_constants(clazz)
C define_annotated_method(clazz, name)
M define_annotated_method(name, methods, method_factory) boolean
C define_annotated_method(context, name, methods, method_factory)
M define_annotated_method(method, method_factory) boolean
M define_annotated_method(name, desc, method_factory) boolean
C define_annotated_methods(clazz)
C define_annotated_methods_individually(clazz)
M define_class_under(context, name, super_class, allocator) T
M define_class_under(context, name, super_clazz, allocator, file, line) RubyClass
M define_class_under(name, super_class, allocator) RubyClass
M define_constant(context, name, value) T
M define_constant(context, name, value, hidden) T
C define_constant(name, value)
C define_constant_bootstrap(name, value)
M define_constants(context, constant_source) T
M define_constants_from(context, enum_class) T
M define_method(context, arg0, block) IRubyObject
M define_method(context, arg0, arg1, block) IRubyObject
M define_method_from_block(context, arg0, block, visibility) IRubyObject
M define_method_from_callable(context, arg0, arg1, visibility) IRubyObject
M define_methods(context, method_sources) T
M define_module_under(context, name) RubyModule
M define_module_under(name) RubyModule
M define_or_get_class_under(name, super_clazz) RubyClass
M define_or_get_class_under(name, super_clazz, file, line) RubyClass
M define_or_get_class_under(name, super_clazz, allocator) RubyClass
M define_or_get_class_under(name, super_clazz, allocator, file, line) RubyClass
M define_or_get_module_under(name) RubyModule
M define_or_get_module_under(name, file, line) RubyModule
M define_or_get_module_under(context, name, file, line) RubyModule
M delegate() RubyModule
M delete_class_variable(name) IRubyObject
M delete_constant(name) IRubyObject
M delete_constant(context, name) IRubyObject
C deprecate_constant(runtime, name)
C deprecate_constant(context, name)
M deprecate_constant(context, name) IRubyObject
M deprecate_constant(context, names) IRubyObject
M discover_instance_variables() Set<String>
M equals(other) boolean
C export_method(name, visibility)
M extend_object(obj) IRubyObject
M extend_object(context, obj) IRubyObject
M extend_object(context, obj) RubyModule
M extended(context, other, block) IRubyObject
M fast_set_constant(interned_name, value) IRubyObject
M fetch_class_variable(name) IRubyObject
M fetch_constant(name) IRubyObject
M fetch_constant(context, name) IRubyObject
M fetch_constant(name, include_private) IRubyObject
M fetch_constant(context, name, include_private) IRubyObject
M fetch_constant_entry(name, include_private) ConstantEntry
M fetch_constant_entry(context, name, include_private) ConstantEntry
M find_implementer(clazz) RubyModule
M freeze(context) IRubyObject
M generation() int
M generation_object() Integer
M get_autoload_constant(name) IRubyObject
M get_autoload_constant(context, name) IRubyObject
M get_class(name) RubyClass
M get_class(context, name) RubyClass
M get_class_var(name) IRubyObject
M get_class_var(context, name) IRubyObject
M get_class_var(name_object, name) IRubyObject
M get_class_var(context, name_object, name) IRubyObject
M get_class_var_quiet(name) IRubyObject
M get_constant(name) IRubyObject
M get_constant(context, name) IRubyObject
M get_constant(name, inherit) IRubyObject
M get_constant(context, name, inherit) IRubyObject
M get_constant(name, inherit, include_object) IRubyObject
M get_constant(context, name, inherit, include_object) IRubyObject
M get_constant_at(name) IRubyObject
M get_constant_at(context, name) IRubyObject
M get_constant_at(name, include_private) IRubyObject
M get_constant_at(context, name, include_private) IRubyObject
M get_constant_at_special(name) IRubyObject
M get_constant_at_special(context, name) IRubyObject
M get_constant_from(name) IRubyObject
M get_constant_from(context, name) IRubyObject
M get_constant_from_const_missing(name) IRubyObject
M get_constant_from_const_missing(context, name) IRubyObject
M get_constant_from_no_const_missing(name) IRubyObject
M get_constant_from_no_const_missing(context, name) IRubyObject
M get_constant_from_no_const_missing(name, include_private) IRubyObject
M get_constant_from_no_const_missing(context, name, include_private) IRubyObject
M get_constant_names(include_private) Collection<String>
M get_constant_no_const_missing(name) IRubyObject
M get_constant_no_const_missing(context, name) IRubyObject
M get_constant_no_const_missing(name, inherit) IRubyObject
M get_constant_no_const_missing(context, name, inherit) IRubyObject
M get_constant_no_const_missing(name, inherit, include_object) IRubyObject
M get_constant_no_const_missing(context, name, inherit, include_object) IRubyObject
M get_constant_no_const_missing_skip_autoload(name) IRubyObject
M get_constant_no_const_missing_skip_autoload(context, name) IRubyObject
M get_constant_source_location(name, inherit, include_object) SourceLocation
M get_constant_source_location(context, name, inherit, include_object) SourceLocation
M get_constant_with_autoload(name, failed_autoload_value, include_private) IRubyObject
M get_constant_with_autoload(context, name, failed_autoload_value, include_private) IRubyObject
M get_module(name) RubyModule
M get_module(context, name) RubyModule
M get_name(context) String
M get_simple_name(context) String
M has_ancestor(type) boolean
M has_autoload(context, id_string, inherit) IRubyObject
M has_class_variable(name) boolean
M has_constant(name) boolean
M has_internal_module_variable(name) boolean
M has_module_in_hierarchy(type) boolean
M has_module_in_prepends(type) boolean
M has_prepends?() boolean
M hash(context) RubyFixnum
M hash_code() int
M id_test() MethodHandle
M include(context, module) T
M include(modules) RubyModule
M include(context, modules) RubyModule
M include(context, module) RubyModule
C include_module(arg)
C include_module(context, arg)
M include_p(context, arg) IRubyObject
M included(context, other) IRubyObject
M included?() boolean
M included_into_refinement?() boolean
M included_modules(context) RubyArray
M instance_method(context, symbol) IRubyObject
M instance_method(symbol) IRubyObject
M instance_methods(args, visibility, obj, not) RubyArray
M instance_methods(context, args, visibility, obj, not) RubyArray
M instance_methods(visibility, include_super, obj, not) RubyArray
M instance_methods(args) RubyArray<?>
M instance_methods(context, args) RubyArray
M instance_methods19(args) RubyArray<?>
C invalidate_cache_descendants()
C invalidate_method_cache(context)
M invalidator() Invalidator
M is_class_var_defined(name) boolean
M is_constant_defined(name, inherit) boolean
M is_constant_defined(name) boolean
M is_constant_defined(context, name) boolean
M is_instance(object) boolean
M is_kind_of_module(type) boolean
M is_method_bound(name, check_visibility) boolean
M is_method_builtin(method_name) boolean
M java_proxy() boolean
C java_proxy=(java_proxy)
M kind_of(kind_of) T
M method_added(context, nothing) IRubyObject
M method_defined_p(context, symbol) RubyBoolean
M method_defined_p(context, symbol, include_super) RubyBoolean
M method_location() RubyModule
C method_location=(module)
M method_removed(context, nothing) IRubyObject
M method_undefined(context, nothing) IRubyObject
M methods() DynamicMethod>
M methods_for_write() DynamicMethod>
M mix(context, mod_arg) IRubyObject
M mix(context, mod_arg, hash0) IRubyObject
M module_eval(context, block) IRubyObject
M module_eval(context, arg0, block) IRubyObject
M module_eval(context, arg0, arg1, block) IRubyObject
M module_eval(context, arg0, arg1, arg2, block) IRubyObject
M module_eval(context, args, block) IRubyObject
M module_exec(context, block) IRubyObject
M module_exec(context, args, block) IRubyObject
M module_function(context, args) IRubyObject
M name() String
M name() IRubyObject
M name(context) IRubyObject
M needs_implementer() boolean
M new_method(receiver, method_name, bound, visibility) IRubyObject
M new_method(receiver, method_name, refined_scope, bound, visibility) IRubyObject
M new_method(receiver, method_name, bound, visibility, respond_to_missing) IRubyObject
M new_method(receiver, method_name, scope, bound, visibility, respond_to_missing) IRubyObject
M new_method(receiver, method_name, bound, visibility, respond_to_missing, priv) IRubyObject
M new_method(receiver, method_name, scope, bound, visibility, respond_to_missing, priv) IRubyObject
M op_cmp(context, obj) IRubyObject
M op_cmp(obj) IRubyObject
M op_eqq(context, obj) RubyBoolean
M op_equal(context, other) IRubyObject
M op_ge(obj) IRubyObject
M op_ge(context, obj) IRubyObject
M op_gt(obj) IRubyObject
M op_gt(context, obj) IRubyObject
M op_le(arg) IRubyObject
M op_le(context, arg) IRubyObject
M op_lt(obj) IRubyObject
M op_lt(context, obj) IRubyObject
M origin() RubyModule
M parent() RubyModule
C parent=(parent)
M prepend(context, modules) IRubyObject
M prepend_features(include) RubyModule
M prepend_features(context, include) RubyModule
C prepend_module(module)
C prepend_module(context, module)
M prepended(context, other) IRubyObject
M prepended?() boolean
M private_class_method(args) RubyModule
M private_class_method(context, args) RubyModule
M private_constant(context, name) IRubyObject
M private_constant(context, ruby_names) IRubyObject
M private_instance_methods(args) RubyArray
M private_instance_methods(context, args) RubyArray
M private_method_defined(context, symbol) IRubyObject
M private_method_defined(context, symbol, include_super) IRubyObject
M protected_instance_methods(args) RubyArray
M protected_instance_methods(context, args) RubyArray
M protected_method_defined(context, symbol) IRubyObject
M protected_method_defined(context, symbol, include_super) IRubyObject
M public_class_method(args) RubyModule
M public_class_method(context, args) RubyModule
M public_const_defined_from(name) boolean
M public_const_defined_from(context, name) boolean
M public_constant(context, name) IRubyObject
M public_constant(context, ruby_names) IRubyObject
M public_instance_method(symbol) IRubyObject
M public_instance_method(context, symbol) IRubyObject
M public_instance_methods(args) RubyArray<?>
M public_instance_methods(context, args) RubyArray
M public_instance_methods19(args) RubyArray<?>
M public_method_defined(context, symbol) IRubyObject
M public_method_defined(context, symbol, include_super) IRubyObject
C put_alias(id, method, old_name)
C put_alias(context, id, method, old_name)
C put_alias(id, entry, old_name)
C put_alias(context, id, entry, old_name)
M put_method(runtime, id, method) DynamicMethod
M put_method(context, id, method) DynamicMethod
M rb_private(context, args) IRubyObject
M rb_protected(context, args) IRubyObject
M rb_public(context, args) IRubyObject
M refine(context, klass, block) IRubyObject
M refined_class(context) IRubyObject
M refinement?() boolean
M refinements(context) IRubyObject
M refinements() RubyModule>
C refinements=(refinements)
M refinements_for_write() RubyModule>
C remove_class_provider(provider)
M remove_class_variable(context, name) IRubyObject
M remove_class_variable(name) IRubyObject
M remove_class_variable(context, name) IRubyObject
M remove_class_variable19(context, name) IRubyObject
M remove_const(context, ruby_name) IRubyObject
C remove_method(context, id)
M remove_method(context, args) RubyModule
M resolve_refined_method(overlay, entry, id) CacheEntry
M resolve_undef_constant(name) IRubyObject
M responds_to_method(name, check_visibility, scope) boolean
M responds_to_method(name, check_visibility) boolean
M retrieve_method(name) DynamicMethod
M ruby2_keywords(context, args) IRubyObject
M ruby_base_name() RubyString
M ruby_base_name(context) RubyString
M ruby_name() RubyString
M ruby_name(context) RubyString
M search_internal_module_variable(name) IRubyObject
M search_method(name) DynamicMethod
M search_method_entry_inner(id) CacheEntry
M search_method_inner(id) DynamicMethod
M search_with_cache(name) CacheEntry
M search_with_cache(id, cache_undef) CacheEntry
M search_with_refinements(name, refined_scope) CacheEntry
M set_class_var(name, value) IRubyObject
M set_class_var(context, name, value) IRubyObject
M set_constant(name, value) IRubyObject
M set_constant(context, name, value) IRubyObject
M set_constant(name, value, file, line) IRubyObject
M set_constant(context, name, value, file, line) IRubyObject
M set_constant(name, value, hidden) IRubyObject
M set_constant(context, name, value, hidden) IRubyObject
M set_constant_quiet(name, value) IRubyObject
M set_constant_quiet(context, name, value) IRubyObject
C set_constant_visibility(runtime, name, hidden)
C set_constant_visibility(context, name, hidden)
C set_internal_module_variable(name, value)
C set_method_visibility(methods, visibility)
C set_method_visibility(context, methods, visibility)
M set_temporary_name(context, arg) IRubyObject
M simple_name() String
M singleton_class_p(context) IRubyObject
M store_class_variable(name, value) IRubyObject
M store_class_variable(context, name, value) IRubyObject
M store_constant(name, value) IRubyObject
M store_constant(context, name, value) IRubyObject
M store_constant(name, value, hidden, file, line) IRubyObject
M store_constant(context, name, value, hidden, file, line) IRubyObject
M store_constant(name, value, hidden) IRubyObject
M super_class() RubyClass
M super_class() RubyClass
M super_class(super_class) T
C super_class=(super_class)
M symbol_name() RubySymbol
M symbol_name(context) RubySymbol
C sync_class_variables(other)
C sync_constants(other)
M synchronized?() boolean
M tap(consumer) T
M target(context) IRubyObject
M to_s() RubyString
M to_s(context) IRubyObject
C undef(context, name)
M undef_method(context, args) RubyModule
M undef_methods(context, names) T
C undefine_method(name)
M undefined_instance_method(context) IRubyObject
C update_generation()
M used_modules(context) IRubyObject
M used_refinements(context) IRubyObject
M using(context, refined_module) IRubyObject
M using_temporary_name() boolean

org.jruby.RubyClass

class extends RubyModule 153 members

Constants

constanttypenote
CLASS_ALLOCATOR ObjectAllocator
CS_IDX_INITIALIZE int

Class Methods

check_inheritable

check_inheritable ( IRubyObject super_class )
Java: checkInheritable(org.jruby.runtime.builtin.IRubyObject superClass)

rb_check_inheritable

check_inheritable

check_inheritable ( ThreadContext context, IRubyObject super_class )
Java: checkInheritable(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject superClass)

create_bootstrap_class

RubyClass create_bootstrap_class ( Ruby runtime, String name, RubyClass super_class, ObjectAllocator allocator )
Java: createBootstrapClass(org.jruby.Ruby runtime, String name, org.jruby.RubyClass superClass, org.jruby.runtime.ObjectAllocator allocator)

boot_defclass Create an initial Object meta class before Module and Kernel dependencies have squirreled themselves together.

nametypedescription
runtimeorg.jruby.Rubywe need it

Returns: a half-baked meta class for object

finish_class_class

finish_class_class ( Ruby runtime, RubyClass class )
Java: finishClassClass(org.jruby.Ruby runtime, org.jruby.RubyClass Class)

finish_create_class_class

finish_create_class_class ( ThreadContext context, RubyClass class )
Java: finishCreateClassClass(org.jruby.runtime.ThreadContext context, org.jruby.RubyClass Class)

marshal_to

marshal_to ( RubyClass clazz, MarshalStream output )
Java: marshalTo(org.jruby.RubyClass clazz, org.jruby.runtime.marshal.MarshalStream output)

marshal_to

marshal_to ( ThreadContext context, RubyOutputStream out, RubyClass clazz, MarshalDumper output )
Java: marshalTo(org.jruby.runtime.ThreadContext context, org.jruby.util.io.RubyOutputStream out, org.jruby.RubyClass clazz, org.jruby.runtime.marshal.MarshalDumper output)

nearest_reified_class

Class<?> nearest_reified_class ( RubyClass klass )
Java: nearestReifiedClass(org.jruby.RubyClass klass)

new_class

RubyClass new_class ( Ruby runtime, RubyClass super_class )
Java: newClass(org.jruby.Ruby runtime, org.jruby.RubyClass superClass)

Construct a new class with the given name scoped under Object (global) and with Object as its immediate superclass. Corresponds to rb_class_new in MRI.

new_class

RubyClass new_class ( Ruby runtime, RubyClass super_class, CallSite[] extra_call_sites )
Java: newClass(org.jruby.Ruby runtime, org.jruby.RubyClass superClass, org.jruby.runtime.CallSite[] extraCallSites)

new_class

RubyClass new_class ( ThreadContext context, RubyClass super_class, CallSite[] extra_call_sites )
Java: newClass(org.jruby.runtime.ThreadContext context, org.jruby.RubyClass superClass, org.jruby.runtime.CallSite[] extraCallSites)

A variation on newClass that allow passing in an array of supplementary call sites to improve dynamic invocation.

new_class

RubyClass new_class ( Ruby runtime, RubyClass super_class, String name, ObjectAllocator allocator, RubyModule parent, boolean set_parent )
Java: newClass(org.jruby.Ruby runtime, org.jruby.RubyClass superClass, String name, org.jruby.runtime.ObjectAllocator allocator, org.jruby.RubyModule parent, boolean setParent)

Construct a new class with the given name, allocator, parent class, and containing class. If setParent is true, the class's parent will be explicitly set to the provided parent (rather than the new class just being assigned to a constant in that parent). Corresponds to rb_class_new/rb_define_class_id/rb_name_class/rb_set_class_path in MRI.

new_class

RubyClass new_class ( Ruby runtime, RubyClass super_class, String name, ObjectAllocator allocator, RubyModule parent, boolean set_parent, String file, int line )
Java: newClass(org.jruby.Ruby runtime, org.jruby.RubyClass superClass, String name, org.jruby.runtime.ObjectAllocator allocator, org.jruby.RubyModule parent, boolean setParent, String file, int line)

new_class

RubyClass new_class ( ThreadContext context, RubyClass super_class, String name, ObjectAllocator allocator, RubyModule parent, boolean set_parent, String file, int line )
Java: newClass(org.jruby.runtime.ThreadContext context, org.jruby.RubyClass superClass, String name, org.jruby.runtime.ObjectAllocator allocator, org.jruby.RubyModule parent, boolean setParent, String file, int line)

new_class

RubyClass new_class ( Ruby runtime, RubyClass super_class, String name, ObjectAllocator allocator, RubyModule parent, boolean set_parent, CallSite[] extra_call_sites )
Java: newClass(org.jruby.Ruby runtime, org.jruby.RubyClass superClass, String name, org.jruby.runtime.ObjectAllocator allocator, org.jruby.RubyModule parent, boolean setParent, org.jruby.runtime.CallSite[] extraCallSites)

new_class

RubyClass new_class ( ThreadContext context, RubyClass super_class, String name, ObjectAllocator allocator, RubyModule parent, boolean set_parent, CallSite[] extra_call_sites )
Java: newClass(org.jruby.runtime.ThreadContext context, org.jruby.RubyClass superClass, String name, org.jruby.runtime.ObjectAllocator allocator, org.jruby.RubyModule parent, boolean setParent, org.jruby.runtime.CallSite[] extraCallSites)

A variation on newClass that allows passing in an array of supplementary call sites to improve dynamic invocation performance.

new_class_bootstrap

RubyClass new_class_bootstrap ( Ruby runtime, RubyClass object, RubyClass class, String name )
Java: newClassBootstrap(org.jruby.Ruby runtime, org.jruby.RubyClass Object, org.jruby.RubyClass Class, String name)

This is an internal API for bootstrapping a few classes before ThreadContext is available. The API is intentionally limited/obtuse so no one is tempted to try and use it.

nametypedescription
runtimeorg.jruby.Rubythe runtime
objectorg.jruby.RubyClassreference to Object which is superclass and parent for new type
nameStringthe name of the new class

Returns: the new class.

unmarshal_from

RubyClass unmarshal_from ( UnmarshalStream input )
Java: unmarshalFrom(org.jruby.runtime.marshal.UnmarshalStream input)

unmarshal_from

RubyClass unmarshal_from ( ThreadContext context, RubyInputStream in, MarshalLoader input )
Java: unmarshalFrom(org.jruby.runtime.ThreadContext context, org.jruby.util.io.RubyInputStream in, org.jruby.runtime.marshal.MarshalLoader input)

Instance Methods

add_class_annotation

add_class_annotation ( Class<?> annotation, Map fields )
Java: addClassAnnotation(Class<?> annotation, Map fields)

add_field_annotation

add_field_annotation ( String field_name, Class<?> annotation, Map fields )
Java: addFieldAnnotation(String fieldName, Class<?> annotation, Map fields)

add_field_signature

add_field_signature ( String field_name, Class<?> type )
Java: addFieldSignature(String fieldName, Class<?> type)

add_method_annotation

add_method_annotation ( String method_name, Class<?> annotation, Map fields )
Java: addMethodAnnotation(String methodName, Class<?> annotation, Map fields)

add_method_signature

add_method_signature ( String method_name, Class<?>[] types )
Java: addMethodSignature(String methodName, Class<?>[] types)

add_parameter_annotation

add_parameter_annotation ( String method, int i, Class<?> anno_class, Map<String,Object> value )
Java: addParameterAnnotation(String method, int i, Class<?> annoClass, Map<String,Object> value)

add_subclass

add_subclass ( RubyClass subclass )
Java: addSubclass(org.jruby.RubyClass subclass)

Add a new subclass to the weak set of subclasses. This version always constructs a new set to avoid having to synchronize against the set when iterating it for invalidation in invalidateCacheDescendants.

nametypedescription
subclassorg.jruby.RubyClassThe subclass to add

all_method_signatures

Map<String,List<Class<?>[]>> all_method_signatures ( )
Java: getAllMethodSignatures() · also: get_all_method_signatures

allocate

IRubyObject allocate ( )
Java: allocate()

allocate

IRubyObject allocate ( ThreadContext context )
Java: allocate(org.jruby.runtime.ThreadContext context)

allocator

ObjectAllocator allocator ( )
Java: getAllocator() · also: get_allocator

allocator

T allocator ( ObjectAllocator allocator )
Java: allocator(org.jruby.runtime.ObjectAllocator allocator)

Define an allocator for this class (usually this is part of org.jruby.api.Define#defineClass(ThreadContext, String, RubyClass, ObjectAllocator)).

nametypedescription
allocatororg.jruby.runtime.ObjectAllocatorto use

Returns: itself for a composable API

allocator=

allocator= ( ObjectAllocator allocator )
Java: setAllocator(org.jruby.runtime.ObjectAllocator allocator) · also: set_allocator
Deprecated. Use org.jruby.RubyClass#allocator(ObjectAllocator) instead.

attached_object

IRubyObject attached_object ( ThreadContext context )
Java: attached_object(org.jruby.runtime.ThreadContext context)

base_call_sites

CallSite[] base_call_sites ( )
Java: getBaseCallSites() · also: get_base_call_sites

become_synchronized

become_synchronized ( )
Java: becomeSynchronized()

make this class and all subclasses sync

check_method_basic_definition

boolean check_method_basic_definition ( String name )
Java: checkMethodBasicDefinition(String name)

class?

boolean class? ( )
Java: isClass() · also: is_class

class_allocator=

class_allocator= ( Class<?> clazz )
Java: setClassAllocator(Class<?> clazz) · also: set_class_allocator

Set a reflective allocator that calls a no-arg constructor on the given class.

nametypedescription
clazzClass<?>The class on which to call the default constructor to allocate

class_annotations

Map<Class<?>,Map<String,Object>> class_annotations ( )
Java: getClassAnnotations() · also: get_class_annotations

class_config

JavaClassConfiguration class_config ( )
Java: getClassConfig() · also: get_class_config

class_config=

class_config= ( JavaClassConfiguration jcc )
Java: setClassConfig(org.jruby.javasupport.util.JavaClassConfiguration jcc) · also: set_class_config

class_runtime

Ruby class_runtime ( )
Java: getClassRuntime() · also: get_class_runtime

extra_call_sites

CallSite[] extra_call_sites ( )
Java: getExtraCallSites() · also: get_extra_call_sites

ffi_handle_accessor_field

VariableAccessorField ffi_handle_accessor_field ( )
Java: getFFIHandleAccessorField() · also: get_ffi_handle_accessor_field

ffi_handle_accessor_for_read

VariableAccessor ffi_handle_accessor_for_read ( )
Java: getFFIHandleAccessorForRead() · also: get_ffi_handle_accessor_for_read

ffi_handle_accessor_for_write

VariableAccessor ffi_handle_accessor_for_write ( )
Java: getFFIHandleAccessorForWrite() · also: get_ffi_handle_accessor_for_write

field_annotations

Map<String,Map<Class<?>,Map<String,Object>>> field_annotations ( )
Java: getFieldAnnotations() · also: get_field_annotations

field_signatures

Map<String,Class<?>> field_signatures ( )
Java: getFieldSignatures() · also: get_field_signatures

finvoke

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

finvoke

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

finvoke

IRubyObject finvoke ( ThreadContext context, IRubyObject self, String name, IRubyObject arg, Block block )
Java: finvoke(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, String name, org.jruby.runtime.builtin.IRubyObject arg, org.jruby.runtime.Block block)

finvoke

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

finvoke

IRubyObject finvoke ( ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block )
Java: finvoke(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, 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)

finvoke

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

finvoke

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

finvoke

IRubyObject finvoke ( ThreadContext context, IRubyObject self, String name, IRubyObject arg )
Java: finvoke(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, String name, org.jruby.runtime.builtin.IRubyObject arg)

finvoke

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

finvoke

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

finvoke_checked

IRubyObject finvoke_checked ( ThreadContext context, IRubyObject self, String name )
Java: finvokeChecked(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, String name)

Safely attempt to invoke the given method name on self, using respond_to? and method_missing as appropriate. Return null if the method does not exist. MRI: rb_check_funcall

finvoke_checked

IRubyObject finvoke_checked ( ThreadContext context, IRubyObject self, JavaSites.CheckedSites sites )
Java: finvokeChecked(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, org.jruby.runtime.JavaSites.CheckedSites sites)

Safely attempt to invoke the given method name on self, using respond_to? and method_missing as appropriate. Return null if the method does not exist. MRI: rb_check_funcall

finvoke_checked

IRubyObject finvoke_checked ( ThreadContext context, IRubyObject self, String name, IRubyObject[] args )
Java: finvokeChecked(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, String name, org.jruby.runtime.builtin.IRubyObject[] args)

Safely attempt to invoke the given method name on self, using respond_to? and method_missing as appropriate. Return null if the method does not exist. MRI: rb_check_funcall

finvoke_checked

IRubyObject finvoke_checked ( ThreadContext context, IRubyObject self, JavaSites.CheckedSites sites, IRubyObject[] args )
Java: finvokeChecked(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, org.jruby.runtime.JavaSites.CheckedSites sites, org.jruby.runtime.builtin.IRubyObject[] args)

Safely attempt to invoke the given method name on self, using respond_to? and method_missing as appropriate. Return null if the method does not exist. MRI: rb_check_funcall

finvoke_with_refinements

IRubyObject finvoke_with_refinements ( ThreadContext context, IRubyObject self, StaticScope static_scope, String name, Block block )
Java: finvokeWithRefinements(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, org.jruby.parser.StaticScope staticScope, String name, org.jruby.runtime.Block block)

finvoke_with_refinements

IRubyObject finvoke_with_refinements ( ThreadContext context, IRubyObject self, StaticScope static_scope, String name, IRubyObject[] args, Block block )
Java: finvokeWithRefinements(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, org.jruby.parser.StaticScope staticScope, String name, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Block block)

finvoke_with_refinements

IRubyObject finvoke_with_refinements ( ThreadContext context, IRubyObject self, StaticScope static_scope, String name, IRubyObject arg, Block block )
Java: finvokeWithRefinements(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, org.jruby.parser.StaticScope staticScope, String name, org.jruby.runtime.builtin.IRubyObject arg, org.jruby.runtime.Block block)

finvoke_with_refinements

IRubyObject finvoke_with_refinements ( ThreadContext context, IRubyObject self, StaticScope static_scope, String name, IRubyObject arg0, IRubyObject arg1, Block block )
Java: finvokeWithRefinements(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, org.jruby.parser.StaticScope staticScope, String name, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.Block block)

finvoke_with_refinements

IRubyObject finvoke_with_refinements ( ThreadContext context, IRubyObject self, StaticScope static_scope, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block )
Java: finvokeWithRefinements(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, org.jruby.parser.StaticScope staticScope, 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)

get_base_call_site

CallSite get_base_call_site ( int idx )
Java: getBaseCallSite(int idx)

get_position_or_default

PositionAware get_position_or_default ( DynamicMethod method )
Java: getPositionOrDefault(org.jruby.internal.runtime.methods.DynamicMethod method)

get_variable_accessor_for_read

VariableAccessor get_variable_accessor_for_read ( String name )
Java: getVariableAccessorForRead(String name)

get_variable_accessor_for_write

VariableAccessor get_variable_accessor_for_write ( String name )
Java: getVariableAccessorForWrite(String name)

has_object_id?

boolean has_object_id? ( )
Java: hasObjectID() · also: has_object_id

inherit

inherit ( RubyClass super_clazz )
Java: inherit(org.jruby.RubyClass superClazz)

rb_class_inherited (reversed semantics!)

inherited

IRubyObject inherited ( ThreadContext context, IRubyObject arg )
Java: inherited(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg)

initialize

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

rb_class_initialize

initialize

IRubyObject initialize ( ThreadContext context, IRubyObject super_object, Block block )
Java: initialize(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject superObject, org.jruby.runtime.Block block)

initialize_copied_module

IRubyObject initialize_copied_module ( ThreadContext context, IRubyObject original )
Java: initializeCopiedModule(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject original)

Class-specific logic for RubyModule#initializeCopiedModule(ThreadContext, IRubyObject)

invalidate_cache_descendants

invalidate_cache_descendants ( ThreadContext context )
Java: invalidateCacheDescendants(org.jruby.runtime.ThreadContext context)

Invalidate all subclasses of this class by walking the set of all subclasses and asking them to invalidate themselves. Note that this version works against a reference to the current set of subclasses, which could be replaced by the time this iteration is complete. In theory, there may be a path by which invalidation would miss a class added during the invalidation process, but the exposure is minimal if it exists at all. The only way to prevent it would be to synchronize both invalidation and subclass set modification against a global lock, which we would like to avoid.

invoke

IRubyObject invoke ( ThreadContext context, IRubyObject self, String name, CallType call_type, Block block )
Java: invoke(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, String name, org.jruby.runtime.CallType callType, org.jruby.runtime.Block block)
Deprecated. Use finvoke if you do not want visibility-checking or invokeFrom if you do.

This method is deprecated because it depends on having a Ruby frame pushed for checking method visibility, and there's no way to enforce that. Most users of this method probably don't need to check visibility. See https://github.com/jruby/jruby/issues/4134

invoke

IRubyObject invoke ( ThreadContext context, IRubyObject self, String name, IRubyObject[] args, CallType call_type, Block block )
Java: invoke(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, String name, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.CallType callType, org.jruby.runtime.Block block)
Deprecated. Use finvoke if you do not want visibility-checking or invokeFrom if you do.

This method is deprecated because it depends on having a Ruby frame pushed for checking method visibility, and there's no way to enforce that. Most users of this method probably don't need to check visibility. See https://github.com/jruby/jruby/issues/4134

invoke

IRubyObject invoke ( ThreadContext context, IRubyObject self, String name, IRubyObject arg, CallType call_type, Block block )
Java: invoke(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, String name, org.jruby.runtime.builtin.IRubyObject arg, org.jruby.runtime.CallType callType, org.jruby.runtime.Block block)
Deprecated. Use finvoke if you do not want visibility-checking or invokeFrom if you do.

This method is deprecated because it depends on having a Ruby frame pushed for checking method visibility, and there's no way to enforce that. Most users of this method probably don't need to check visibility. See https://github.com/jruby/jruby/issues/4134

invoke

IRubyObject invoke ( ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, CallType call_type, Block block )
Java: invoke(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, String name, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.CallType callType, org.jruby.runtime.Block block)
Deprecated. Use finvoke if you do not want visibility-checking or invokeFrom if you do.

This method is deprecated because it depends on having a Ruby frame pushed for checking method visibility, and there's no way to enforce that. Most users of this method probably don't need to check visibility. See https://github.com/jruby/jruby/issues/4134

invoke

IRubyObject invoke ( ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, CallType call_type, Block block )
Java: invoke(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, String name, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.builtin.IRubyObject arg2, org.jruby.runtime.CallType callType, org.jruby.runtime.Block block)
Deprecated. Use finvoke if you do not want visibility-checking or invokeFrom if you do.

This method is deprecated because it depends on having a Ruby frame pushed for checking method visibility, and there's no way to enforce that. Most users of this method probably don't need to check visibility. See https://github.com/jruby/jruby/issues/4134

invoke

IRubyObject invoke ( ThreadContext context, IRubyObject self, String name, CallType call_type )
Java: invoke(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, String name, org.jruby.runtime.CallType callType)
Deprecated. Use finvoke if you do not want visibility-checking or invokeFrom if you do.

This method is deprecated because it depends on having a Ruby frame pushed for checking method visibility, and there's no way to enforce that. Most users of this method probably don't need to check visibility. See https://github.com/jruby/jruby/issues/4134

invoke

IRubyObject invoke ( ThreadContext context, IRubyObject self, String name, IRubyObject[] args, CallType call_type )
Java: invoke(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, String name, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.CallType callType)
Deprecated. Use finvoke if you do not want visibility-checking or invokeFrom if you do.

This method is deprecated because it depends on having a Ruby frame pushed for checking method visibility, and there's no way to enforce that. Most users of this method probably don't need to check visibility. See https://github.com/jruby/jruby/issues/4134

invoke

IRubyObject invoke ( ThreadContext context, IRubyObject self, String name, IRubyObject arg, CallType call_type )
Java: invoke(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, String name, org.jruby.runtime.builtin.IRubyObject arg, org.jruby.runtime.CallType callType)
Deprecated. Use finvoke if you do not want visibility-checking or invokeFrom if you do.

This method is deprecated because it depends on having a Ruby frame pushed for checking method visibility, and there's no way to enforce that. Most users of this method probably don't need to check visibility. See https://github.com/jruby/jruby/issues/4134

invoke

IRubyObject invoke ( ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, CallType call_type )
Java: invoke(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, String name, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.CallType callType)
Deprecated. Use finvoke if you do not want visibility-checking or invokeFrom if you do.

This method is deprecated because it depends on having a Ruby frame pushed for checking method visibility, and there's no way to enforce that. Most users of this method probably don't need to check visibility. See https://github.com/jruby/jruby/issues/4134

invoke

IRubyObject invoke ( ThreadContext context, IRubyObject self, String name, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, CallType call_type )
Java: invoke(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, String name, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.builtin.IRubyObject arg2, org.jruby.runtime.CallType callType)
Deprecated. Use finvoke if you do not want visibility-checking or invokeFrom if you do.

This method is deprecated because it depends on having a Ruby frame pushed for checking method visibility, and there's no way to enforce that. Most users of this method probably don't need to check visibility. See https://github.com/jruby/jruby/issues/4134

invoke_inherited

IRubyObject invoke_inherited ( ThreadContext context, IRubyObject self, IRubyObject subclass )
Java: invokeInherited(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, org.jruby.runtime.builtin.IRubyObject subclass)

invoke_public

IRubyObject invoke_public ( ThreadContext context, IRubyObject self, String name, IRubyObject arg )
Java: invokePublic(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject self, String name, org.jruby.runtime.builtin.IRubyObject arg)

MRI: rb_funcallv_public

is_reifiable

boolean is_reifiable ( boolean[] java )
Java: isReifiable(boolean[] java)

Whether this class can be reified into a Java class. Currently only objects that descend from Object (or descend from Ruby-based classes that descend from Object) can be reified.

nametypedescription
javaboolean[]If reified from java (out param)

Returns: true if the class can be reified, false otherwise. The out param indicate if it is java concrete reification

is_reified_extended_java_class

Boolean is_reified_extended_java_class ( )
Java: getIsReifiedExtendedJavaClass() · also: get_is_reified_extended_java_class

If the current class is reified (null otherwise) and if it extends java

Returns: Null if not reified, true if a concrete extension class, and false if a ruby class

marshal

ObjectMarshal marshal ( )
Java: getMarshal() · also: get_marshal

marshal

marshal ( Object obj, MarshalStream marshal_stream )
Java: marshal(Object obj, org.jruby.runtime.marshal.MarshalStream marshalStream)

marshal

marshal ( ThreadContext context, RubyOutputStream out, Object obj, MarshalDumper marshal_stream )
Java: marshal(org.jruby.runtime.ThreadContext context, org.jruby.util.io.RubyOutputStream out, Object obj, org.jruby.runtime.marshal.MarshalDumper marshalStream)

marshal=

marshal= ( ObjectMarshal marshal )
Java: setMarshal(org.jruby.runtime.ObjectMarshal marshal) · also: set_marshal
Deprecated. Use org.jruby.RubyClass#marshalWith(ObjectMarshal) instead.

marshal_with

T marshal_with ( ObjectMarshal marshal )
Java: marshalWith(org.jruby.runtime.ObjectMarshal marshal)

Set what marshaller we use or generally use this to specify the typw cannot Marshal data.

nametypedescription
marshalorg.jruby.runtime.ObjectMarshalthe marshaller

Returns: itself for composable API

method_annotations

Map<String,Map<Class<?>,Map<String,Object>>> method_annotations ( )
Java: getMethodAnnotations() · also: get_method_annotations

method_signatures

Map<String,Class<?>[]> method_signatures ( )
Java: getMethodSignatures() · also: get_method_signatures

module?

boolean module? ( )
Java: isModule() · also: is_module

native_class_index

ClassIndex native_class_index ( )
Java: getNativeClassIndex() · also: get_native_class_index

new_instance

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

rb_class_new_instance

new_instance

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

new_instance

IRubyObject new_instance ( ThreadContext context, IRubyObject arg0 )
Java: newInstance(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0)

new_instance

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

new_instance

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

new_instance

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

object_group_accessor_field

VariableAccessorField object_group_accessor_field ( )
Java: getObjectGroupAccessorField() · also: get_object_group_accessor_field

object_group_accessor_for_read

VariableAccessor object_group_accessor_for_read ( )
Java: getObjectGroupAccessorForRead() · also: get_object_group_accessor_for_read

object_group_accessor_for_write

VariableAccessor object_group_accessor_for_write ( )
Java: getObjectGroupAccessorForWrite() · also: get_object_group_accessor_for_write

object_id_accessor_field

VariableAccessorField object_id_accessor_field ( )
Java: getObjectIdAccessorField() · also: get_object_id_accessor_field

parameter_annotations

Map<String,List<Map<Class<?>,Map<String,Object>>>> parameter_annotations ( )
Java: getParameterAnnotations() · also: get_parameter_annotations

real_class

RubyClass real_class ( )
Java: getRealClass() · also: get_real_class

Get the "real" class, either the current one or the nearest ancestor that is not a singleton or include wrapper.

Returns: the nearest non-singleton non-include class

real_module

RubyModule real_module ( )
Java: getRealModule() · also: get_real_module

Equivalent to #getRealClass().

Returns: the nearest non-singleton non-include class

reified_class

T reified_class ( Class<? extends IRubyObject> reified_class )
Java: reifiedClass(Class<? extends org.jruby.runtime.builtin.IRubyObject> reifiedClass)

Sets reified class to use.

nametypedescription
reified_classClass<? extends org.jruby.runtime.builtin.IRubyObject>the java type to use

Returns: itself for composable API

reified_class

Class<? extends Reified> reified_class ( )
Java: getReifiedClass() · also: get_reified_class
Deprecated. Use RubyClass#reifiedClass() instead.

reified_class

Class<? extends Reified> reified_class ( )
Java: reifiedClass()

Gets a reified Ruby or Java class. To ensure a specific type, see #getReifiedRubyClass() or #getReifiedJavaClass()

reified_class=

reified_class= ( Class<? extends IRubyObject> reified_class )
Java: setReifiedClass(Class<? extends org.jruby.runtime.builtin.IRubyObject> reifiedClass) · also: set_reified_class
Deprecated. Use org.jruby.RubyClass#reifiedClass(Class) instead.

reified_java_class

Class<? extends ReifiedJavaProxy> reified_java_class ( )
Java: getReifiedJavaClass() · also: get_reified_java_class

Gets a reified Java class. Throws if this is a Ruby class

reified_ruby_class

Class<? extends IRubyObject> reified_ruby_class ( )
Java: getReifiedRubyClass() · also: get_reified_ruby_class

Gets a reified Ruby class. Throws if this is a Java class

reify

reify ( )
Java: reify()

reify

reify ( String class_dump_dir )
Java: reify(String classDumpDir)

reify

reify ( boolean use_child_loader )
Java: reify(boolean useChildLoader)

reify

reify ( String class_dump_dir, boolean use_child_loader )
Java: reify(String classDumpDir, boolean useChildLoader)

Stand up a real Java class for the backing store of this object

nametypedescription
class_dump_dirStringDirectory to save reified java class

reify_with_ancestors

reify_with_ancestors ( )
Java: reifyWithAncestors()

reify_with_ancestors

reify_with_ancestors ( String class_dump_dir )
Java: reifyWithAncestors(String classDumpDir)

reify_with_ancestors

reify_with_ancestors ( boolean use_child_loader )
Java: reifyWithAncestors(boolean useChildLoader)

reify_with_ancestors

reify_with_ancestors ( String class_dump_dir, boolean use_child_loader )
Java: reifyWithAncestors(String classDumpDir, boolean useChildLoader)

Reify this class, first reifying all its ancestors. This causes the reified class and all ancestors' reified classes to come into existence, so any future changes will not be reflected. This form also accepts a string argument indicating a path in which to dump the intermediate reified class bytes.

nametypedescription
class_dump_dirStringthe path in which to dump reified class bytes
use_child_loaderbooleanwhether to load the class into its own child classloader

remove_subclass

remove_subclass ( RubyClass subclass )
Java: removeSubclass(org.jruby.RubyClass subclass)

Remove a subclass from the weak set of subclasses.

nametypedescription
subclassorg.jruby.RubyClassThe subclass to remove

replace_subclass

replace_subclass ( RubyClass subclass, RubyClass new_subclass )
Java: replaceSubclass(org.jruby.RubyClass subclass, org.jruby.RubyClass newSubclass)

Replace an existing subclass with a new one.

nametypedescription
subclassorg.jruby.RubyClassThe subclass to remove
new_subclassorg.jruby.RubyClassThe subclass to replace it with

ruby_class_allocator=

ruby_class_allocator= ( Class<? extends IRubyObject> clazz )
Java: setRubyClassAllocator(Class<? extends org.jruby.runtime.builtin.IRubyObject> clazz) · also: set_ruby_class_allocator

Set a reflective allocator that calls the "standard" Ruby object constructor (Ruby, RubyClass) on the given class.

nametypedescription
clazzClass<? extends org.jruby.runtime.builtin.IRubyObject>The class from which to grab a standard Ruby constructor

ruby_static_allocator=

ruby_static_allocator= ( Class<?> clazz )
Java: setRubyStaticAllocator(Class<?> clazz) · also: set_ruby_static_allocator

Set a reflective allocator that calls the "standard" Ruby object constructor (Ruby, RubyClass) on the given class via a static __allocate__ method intermediate.

nametypedescription
clazzClass<?>The class from which to grab a standard Ruby __allocate__ method.

Note: Used with `jrubyc --java` generated (interoperability) class files.

Note: Used with new concrete extension.

singleton?

boolean singleton? ( )
Java: isSingleton() · also: is_singleton

smart_dump

smart_dump ( MarshalStream stream, IRubyObject target )
Java: smartDump(org.jruby.runtime.marshal.MarshalStream stream, org.jruby.runtime.builtin.IRubyObject target)

Marshal the given object to the marshaling stream, being "smart" and caching how to do that marshaling. If the class defines a custom "respond_to?" method, then the behavior of dumping could vary without our class structure knowing it. As a result, we do only the slow-path classic behavior. If the class defines a real "marshal_dump" method, we cache and use that. If the class defines a real "_dump" method, we cache and use that. If the class neither defines none of the above methods, we use a fast path directly to the default dumping logic.

nametypedescription
streamorg.jruby.runtime.marshal.MarshalStreamThe stream to which to marshal the data
targetorg.jruby.runtime.builtin.IRubyObjectThe object whose data should be marshaled

Throws

IOException If there is an IO exception while writing to the stream.

smart_dump

smart_dump ( ThreadContext context, RubyOutputStream out, MarshalDumper stream, IRubyObject target )
Java: smartDump(org.jruby.runtime.ThreadContext context, org.jruby.util.io.RubyOutputStream out, org.jruby.runtime.marshal.MarshalDumper stream, org.jruby.runtime.builtin.IRubyObject target)

smart_load_new_user

IRubyObject smart_load_new_user ( IRubyObject target, IRubyObject data )
Java: smartLoadNewUser(org.jruby.runtime.builtin.IRubyObject target, org.jruby.runtime.builtin.IRubyObject data)

Load marshaled data into a blank target object using marshal_load, being "smart" and caching the mechanism for invoking marshal_load. If the class implements a custom respond_to?, cache nothing and go slow path invocation of respond_to? and marshal_load every time. Raise error if respond_to? :marshal_load returns true and no :marshal_load is defined. If the class implements marshal_load, cache and use that. Otherwise, error, since marshal_load is not present.

nametypedescription
targetorg.jruby.runtime.builtin.IRubyObjectThe blank target object into which marshal_load will deserialize the given data
dataorg.jruby.runtime.builtin.IRubyObjectThe marshaled data

Returns: The fully-populated target object

smart_load_old_user

IRubyObject smart_load_old_user ( IRubyObject data )
Java: smartLoadOldUser(org.jruby.runtime.builtin.IRubyObject data)

Load marshaled data into a blank target object using _load, being "smart" and caching the mechanism for invoking _load. If the metaclass implements custom respond_to?, cache nothing and go slow path invocation of respond_to? and _load every time. Raise error if respond_to? :_load returns true and no :_load is defined. If the metaclass implements _load, cache and use that. Otherwise, error, since _load is not present.

nametypedescription
dataorg.jruby.runtime.builtin.IRubyObjectThe marshaled data, to be reconstituted into an object by _load

Returns: The fully-populated target object

subclasses

IRubyObject subclasses ( ThreadContext context )
Java: subclasses(org.jruby.runtime.ThreadContext context)

subclasses

Collection<RubyClass> subclasses ( )
Java: subclasses()

subclasses

Collection<RubyClass> subclasses ( boolean include_descendants )
Java: subclasses(boolean includeDescendants)

subclasses_for_read

RubyClass.RubyClassSet subclasses_for_read ( )
Java: getSubclassesForRead() · also: get_subclasses_for_read

superclass

IRubyObject superclass ( ThreadContext context )
Java: superclass(org.jruby.runtime.ThreadContext context)

Return the real super class of this class. rb_class_superclass

to_java

T to_java ( Class<T> target )
Java: toJava(Class<T> target)

unmarshal

Object unmarshal ( UnmarshalStream unmarshal_stream )
Java: unmarshal(org.jruby.runtime.marshal.UnmarshalStream unmarshalStream)

unmarshal

Object unmarshal ( ThreadContext context, RubyInputStream in, MarshalLoader loader )
Java: unmarshal(org.jruby.runtime.ThreadContext context, org.jruby.util.io.RubyInputStream in, org.jruby.runtime.marshal.MarshalLoader loader)

variable_accessors_for_read

Map<String,VariableAccessor> variable_accessors_for_read ( )
Java: getVariableAccessorsForRead() · also: get_variable_accessors_for_read

variable_names

String[] variable_names ( )
Java: getVariableNames() · also: get_variable_names

Get an array of all the known instance variable names. The offset into the array indicates the offset of the variable's value in the per-object variable array.

Returns: a copy of the array of known instance variable names

variable_table_copy

Map<String,VariableAccessor> variable_table_copy ( )
Java: getVariableTableCopy() · also: get_variable_table_copy

variable_table_manager

VariableTableManager variable_table_manager ( )
Java: getVariableTableManager() · also: get_variable_table_manager

variable_table_size

int variable_table_size ( )
Java: getVariableTableSize() · also: get_variable_table_size

variable_table_size_with_extras

int variable_table_size_with_extras ( )
Java: getVariableTableSizeWithExtras() · also: get_variable_table_size_with_extras

Inherited

from IRubyObject

fieldtypenote
NULL_ARRAY IRubyObject[]

check_string_type19

IRubyObject check_string_type19 ( )
Java: checkStringType19()
Deprecated. Use #checkStringType() instead.

is this a string?

Returns: the string if so

dup

IRubyObject dup ( ThreadContext context )
Java: dup(org.jruby.runtime.ThreadContext context)

RubyMethod dup.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context

Returns: a dup-ed object

marshal_live_variables

marshal_live_variables ( MarshalDumper stream, ThreadContext context, RubyOutputStream out )
Java: marshalLiveVariables(org.jruby.runtime.marshal.MarshalDumper stream, org.jruby.runtime.ThreadContext context, org.jruby.util.io.RubyOutputStream out)

from RubyBasicObject

fieldtypenote
ALL_F int
BASICOBJECT_ALLOCATOR ObjectAllocator Default allocator instance for all Ruby objects. The only reason to not use this allocator is if you actually need to have all instances of something be a subclass of RubyObject.
ERR_INSECURE_SET_INST_VAR String The error message used when some one tries to modify an instance variable in a high security setting.
FALSE_F int
FROZEN_F int
NEVER IRubyObject A value that is used as a null sentinel in among other places the RubyArray implementation. It will cause large problems to call any methods on this object.
NIL_F int This flag is a bit funny. It's used to denote that this value is nil. It's a bit counterintuitive for a Java programmer to not use subclassing to handle this case, since we have a RubyNil subclass anyway. Well, the reason for it being a flag is that the #isNil() method is called extremely often. So often that it gives a good speed boost to make it monomorphic and final. It turns out using a flag for this actually gives us better performance than having a polymorphic #isNil() method.
STAMP_OFFSET long
TAINTED_F int
UNDEF IRubyObject A value that specifies an undefined value. This value is used as a sentinel for undefined constant values, and other places where neither null nor NEVER makes sense.
VAR_TABLE_OFFSET long
varTable Object[] variable table, lazily allocated as needed (if needed)
varTableStamp byte locking stamp for Unsafe ops updating the vartable

__id__

RubyInteger __id__ ( ThreadContext context )
Java: __id__(org.jruby.runtime.ThreadContext context)

rb_obj_id Return the internal id of an object.

add_finalizer

add_finalizer ( IRubyObject f )
Java: addFinalizer(org.jruby.runtime.builtin.IRubyObject f)

add_finalizer

IRubyObject add_finalizer ( ThreadContext context, IRubyObject f )
Java: addFinalizer(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject f)

Adds the specified object as a finalizer for this object.

any_to_string

IRubyObject any_to_string ( )
Java: anyToString()

Internal method that helps to convert any object into the format of a class name and a hex string inside of #<>.

as_java_string

String as_java_string ( )
Java: asJavaString()

rb_to_id Will try to convert this object to a String using the Ruby "to_str" if the object isn't already a String. If this still doesn't work, will throw a Ruby TypeError.

Returns: a (Java) string

as_string

RubyString as_string ( )
Java: asString()

rb_obj_as_string First converts this object into a String using the "to_s" method and returns it. If to_s doesn't return a Ruby String, Convert#anyToString is used instead.

call_method

IRubyObject call_method ( ThreadContext context, String name )
Java: callMethod(org.jruby.runtime.ThreadContext context, String name)

Will invoke a named method with no arguments and no block.

call_method

IRubyObject call_method ( ThreadContext context, String name, IRubyObject arg )
Java: callMethod(org.jruby.runtime.ThreadContext context, String name, org.jruby.runtime.builtin.IRubyObject arg)

Will invoke a named method with one argument and no block with functional invocation.

call_method

IRubyObject call_method ( ThreadContext context, String name, IRubyObject[] args )
Java: callMethod(org.jruby.runtime.ThreadContext context, String name, org.jruby.runtime.builtin.IRubyObject[] args)

Will invoke a named method with the supplied arguments and no block with functional invocation.

call_method

IRubyObject call_method ( String name, IRubyObject[] args )
Java: callMethod(String name, org.jruby.runtime.builtin.IRubyObject[] args)

call_method

IRubyObject call_method ( String name, IRubyObject arg )
Java: callMethod(String name, org.jruby.runtime.builtin.IRubyObject arg)

call_method

IRubyObject call_method ( String name )
Java: callMethod(String name)

call_method

IRubyObject call_method ( ThreadContext context, String name, IRubyObject[] args, Block block )
Java: callMethod(org.jruby.runtime.ThreadContext context, String name, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Block block)

Will invoke a named method with the supplied arguments and supplied block with functional invocation.

check_array_type

IRubyObject check_array_type ( )
Java: checkArrayType()

rb_check_array_type Returns the result of trying to convert this object to an Array with "to_ary".

check_call_method

IRubyObject check_call_method ( ThreadContext context, String name )
Java: checkCallMethod(org.jruby.runtime.ThreadContext context, String name)

Will invoke a named method with no arguments and no block if that method or a custom method missing exists. Otherwise returns null. 1.9: rb_check_funcall

check_call_method

IRubyObject check_call_method ( ThreadContext context, JavaSites.CheckedSites sites )
Java: checkCallMethod(org.jruby.runtime.ThreadContext context, org.jruby.runtime.JavaSites.CheckedSites sites)

Will invoke a named method with no arguments and no block if that method or a custom method missing exists. Otherwise returns null. 1.9: rb_check_funcall

check_string_type

IRubyObject check_string_type ( )
Java: checkStringType()

rb_check_string_type Tries to return a coerced string representation of this object, using "to_str". If that returns something other than a String or nil, an empty String will be returned.

compare_to

int compare_to ( IRubyObject other )
Java: compareTo(org.jruby.runtime.builtin.IRubyObject other)

Compares this Ruby object with another.

nametypedescription
otherorg.jruby.runtime.builtin.IRubyObjectanother IRubyObject

Returns: 0 if equal, < 0 if this is less than other, > 0 if this is greater than other

convert_to_array

RubyArray convert_to_array ( )
Java: convertToArray()

Tries to convert this object to a Ruby Array using the "to_ary" method.

Returns: array representation of this

convert_to_float

RubyFloat convert_to_float ( )
Java: convertToFloat()

Tries to convert this object to a Ruby Float using the "to_f" method.

Returns: float representation of this

convert_to_hash

RubyHash convert_to_hash ( )
Java: convertToHash()

Tries to convert this object to a Ruby Hash using the "to_hash" method.

Returns: hash representation of this

convert_to_integer

RubyInteger convert_to_integer ( )
Java: convertToInteger()

Tries to convert this object to a Ruby Integer using the "to_int" method.

Returns: an integer representation of this

convert_to_integer

RubyInteger convert_to_integer ( String convert_method )
Java: convertToInteger(String convertMethod)

Tries to convert this object to a Ruby Integer using the supplied conversion method.

nametypedescription
convert_methodStringconversion method to use e.g. "to_i"

Returns: an integer representation of this

convert_to_string

RubyString convert_to_string ( )
Java: convertToString()

Tries to convert this object to a Ruby String using the "to_str" method.

Returns: a string representation of this

copy_instance_variables_into

copy_instance_variables_into ( InstanceVariables other )
Java: copyInstanceVariablesInto(org.jruby.runtime.builtin.InstanceVariables other)

copy_special_instance_variables

copy_special_instance_variables ( IRubyObject clone )
Java: copySpecialInstanceVariables(org.jruby.runtime.builtin.IRubyObject clone)

Lots of MRI objects keep their state in non-lookupable ivars (e:g. Range, Struct, etc). This method is responsible for dupping our java field equivalents

current_context

ThreadContext current_context ( )
Java: getCurrentContext() · also: get_current_context

data_get_struct

Object data_get_struct ( )
Java: dataGetStruct()

data_wrap_struct

data_wrap_struct ( Object obj )
Java: dataWrapStruct(Object obj)

decode

RubyString decode ( String id )
Java: decode(String id)

raw (id) strings are not properly encoded but in an iso_8859_1 form. This method will lookup properly encoded string from the symbol table.

nametypedescription
idStringthe id of the string

Returns: the string of the symbol found from id

display

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

dup

IRubyObject dup ( )
Java: dup()

ensure_instance_variables_settable

ensure_instance_variables_settable ( )
Java: ensureInstanceVariablesSettable()

Makes sure that instance variables can be set on this object, including information about whether this object is frozen. Will throw a suitable exception in that case.

eql

boolean eql ( IRubyObject other )
Java: eql(org.jruby.runtime.builtin.IRubyObject other)

method used for Hash key comparison (specialized for String, Symbol and Fixnum)

Returns: Will by default just call the Ruby method "eql?"

eql_p

IRubyObject eql_p ( IRubyObject obj )
Java: eql_p(org.jruby.runtime.builtin.IRubyObject obj)

eql_p

IRubyObject eql_p ( ThreadContext context, IRubyObject obj )
Java: eql_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj)

equal_p

IRubyObject equal_p ( ThreadContext context, IRubyObject other )
Java: equal_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject other)

rb_obj_equal Will use Java identity equality.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
otherorg.jruby.runtime.builtin.IRubyObjectto compare with

Returns: are they equal?

eval_under

IRubyObject eval_under ( ThreadContext context, RubyModule under, RubyString src, String file, int line, EvalType eval_type )
Java: evalUnder(org.jruby.runtime.ThreadContext context, org.jruby.RubyModule under, org.jruby.RubyString src, String file, int line, org.jruby.EvalType evalType)

extend

IRubyObject extend ( IRubyObject[] args )
Java: extend(org.jruby.runtime.builtin.IRubyObject[] args)

rb_obj_extend call-seq: obj.extend(module, ...) => obj Adds to _obj_ the instance methods from each module given as a parameter. module Mod def hello "Hello from Mod.\n" end end class Klass def hello "Hello from Klass.\n" end end k = Klass.new k.hello #=> "Hello from Klass.\n" k.extend(Mod) #=> #<Klass:0x401b3bc8> k.hello #=> "Hello from Mod.\n"

nametypedescription
argsorg.jruby.runtime.builtin.IRubyObject[]to use as modules to extend

Returns: itself

false?

boolean false? ( )
Java: isFalse() · also: is_false

Is this value a falsey value or not?

Returns: true if falsey

ffi_handle

Object ffi_handle ( )
Java: getFFIHandle() · also: get_ffi_handle

ffi_handle=

ffi_handle= ( Object value )
Java: setFFIHandle(Object value) · also: set_ffi_handle

for_each_instance_variable

for_each_instance_variable ( BiConsumer<String,IRubyObject> accessor )
Java: forEachInstanceVariable(java.util.function.BiConsumer<String,org.jruby.runtime.builtin.IRubyObject> accessor)

for_each_instance_variable_name

for_each_instance_variable_name ( Consumer<String> consumer )
Java: forEachInstanceVariableName(java.util.function.Consumer<String> consumer)

frozen=

frozen= ( boolean frozen )
Java: setFrozen(boolean frozen) · also: set_frozen

Sets whether this object is frozen or not.

nametypedescription
frozenbooleanshould this object be frozen?

frozen?

boolean frozen? ( )
Java: isFrozen() · also: is_frozen

Is this value frozen or not?

Returns: true if this object is frozen, false otherwise

frozen_p

RubyBoolean frozen_p ( ThreadContext context )
Java: frozen_p(org.jruby.runtime.ThreadContext context)

get_flag

boolean get_flag ( int flag )
Java: getFlag(int flag)
Deprecated. external access to global object flags is going away

get_instance_variable

IRubyObject get_instance_variable ( String name )
Java: getInstanceVariable(String name)

get_internal_variable

Object get_internal_variable ( String name )
Java: getInternalVariable(String name)

get_variable

Object get_variable ( int index )
Java: getVariable(int index)

has_instance_variable

boolean has_instance_variable ( String name )
Java: hasInstanceVariable(String name)

has_internal_variable

boolean has_internal_variable ( String name )
Java: hasInternalVariable(String name)

has_variables?

boolean has_variables? ( )
Java: hasVariables() · also: has_variables

Returns true if object has any variables

hash

RubyFixnum hash ( )
Java: hash()
Deprecated. Use RubyBasicObject#hash(ThreadContext) instead.

Will return the hash code of this object. In comparison to MRI, this method will use the Java identity hash code instead of using rb_obj_id, since the usage of id in JRuby will incur the cost of some. ObjectSpace maintenance.

Returns: hash value

hashy_inspect

IRubyObject hashy_inspect ( )
Java: hashyInspect()

hashy_inspect

IRubyObject hashy_inspect ( ThreadContext context )
Java: hashyInspect(org.jruby.runtime.ThreadContext context)

id

IRubyObject id ( )
Java: id()

immediate?

boolean immediate? ( )
Java: isImmediate() · also: is_immediate

Is object immediate (def: Fixnum, Symbol, true, false, nil?).

infect_by

IRubyObject infect_by ( IRubyObject obj )
Java: infectBy(org.jruby.runtime.builtin.IRubyObject obj)

initialize

IRubyObject initialize ( ThreadContext context )
Java: initialize(org.jruby.runtime.ThreadContext context)

initialize_copy

IRubyObject initialize_copy ( IRubyObject original )
Java: initialize_copy(org.jruby.runtime.builtin.IRubyObject original)
Deprecated. Use org.jruby.RubyBasicObject#initialize_copy(ThreadContext, IRubyObject) instead.
nametypedescription
originalorg.jruby.runtime.builtin.IRubyObjectobject

Returns: a copy

initialize_copy

IRubyObject initialize_copy ( ThreadContext context, IRubyObject original )
Java: initialize_copy(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject original)

Initializes this object as a copy of the original, that is the parameter to this object. Will make sure that the argument actually has the same real class as this object. It shouldn't be possible to initialize an object with something totally different.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
originalorg.jruby.runtime.builtin.IRubyObjectthe original

Returns: a copy unless the same thing

inspect

IRubyObject inspect ( )
Java: inspect()

inspect

IRubyObject inspect ( ThreadContext context )
Java: inspect(org.jruby.runtime.ThreadContext context)

Returns a string containing a human-readable representation of obj. If not overridden, uses the to_s method to generate the string. [ 1, 2, 3..4, 'five' ].inspect #=> "[1, 2, 3..4, \"five\"]" Time.new.inspect #=> "Wed Apr 09 08:54:39 CDT 2003"

instance_eval

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

instance_eval

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

instance_eval

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

instance_eval

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

instance_eval

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

instance_exec

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

rb_obj_instance_exec call-seq: obj.instance_exec(arg...) {|var...| block } => obj Executes the given block within the context of the receiver (_obj_). In order to set the context, the variable +self+ is set to _obj_ while the code is executing, giving the code access to _obj_'s instance variables. Arguments are passed as block parameters. class Klass def initialize @secret = 99 end end k = Klass.new k.instance_exec(5) {|x| @secret+x } #=> 104

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
argsorg.jruby.runtime.builtin.IRubyObject[]the args
blockorg.jruby.runtime.Blockblock

Returns: the result

instance_of_p

RubyBoolean instance_of_p ( ThreadContext context, IRubyObject type )
Java: instance_of_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject type)

rb_obj_is_instance_of call-seq: obj.instance_of?(class) => true or false Returns true if obj is an instance of the given class. See also Object#kind_of?.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
typeorg.jruby.runtime.builtin.IRubyObjectthe type

Returns: true if this is instance of type

instance_variable_defined_p

IRubyObject instance_variable_defined_p ( ThreadContext context, IRubyObject name )
Java: instance_variable_defined_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject name)

rb_obj_ivar_defined call-seq: obj.instance_variable_defined?(symbol) => true or false Returns true if the given instance variable is defined in obj. class Fred def initialize(p1, p2) @a, @b = p1, p2 end end fred = Fred.new('cat', 99) fred.instance_variable_defined?(:@a) #=> true fred.instance_variable_defined?("@b") #=> true fred.instance_variable_defined?("@c") #=> false

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
nameorg.jruby.runtime.builtin.IRubyObjectof ivar

Returns: true if defined

instance_variable_get

IRubyObject instance_variable_get ( ThreadContext context, IRubyObject name )
Java: instance_variable_get(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject name)

rb_obj_ivar_get call-seq: obj.instance_variable_get(symbol) => obj Returns the value of the given instance variable, or nil if the instance variable is not set. The @ part of the variable name should be included for regular instance variables. Throws a NameError exception if the supplied symbol is not valid as an instance variable name. class Fred def initialize(p1, p2) @a, @b = p1, p2 end end fred = Fred.new('cat', 99) fred.instance_variable_get(:@a) #=> "cat" fred.instance_variable_get("@b") #=> 99

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
nameorg.jruby.runtime.builtin.IRubyObjectof ivar

Returns: value of ivar

instance_variable_list

List<Variable<IRubyObject>> instance_variable_list ( )
Java: getInstanceVariableList() · also: get_instance_variable_list

Gets a list of all variables in this object.

instance_variable_name_list

List<String> instance_variable_name_list ( )
Java: getInstanceVariableNameList() · also: get_instance_variable_name_list

Gets a name list of all variables in this object.

instance_variable_set

IRubyObject instance_variable_set ( IRubyObject name, IRubyObject value )
Java: instance_variable_set(org.jruby.runtime.builtin.IRubyObject name, org.jruby.runtime.builtin.IRubyObject value)

rb_obj_ivar_set call-seq: obj.instance_variable_set(symbol, obj) => obj Sets the instance variable names by symbol to object, thereby frustrating the efforts of the class's author to attempt to provide proper encapsulation. The variable did not have to exist prior to this call. class Fred def initialize(p1, p2) @a, @b = p1, p2 end end fred = Fred.new('cat', 99) fred.instance_variable_set(:@a, 'dog') #=> "dog" fred.instance_variable_set(:@c, 'cat') #=> "cat" fred.inspect #=> "#<Fred:0x401b3da8 @a=\"dog\", @b=99, @c=\"cat\">"

nametypedescription
nameorg.jruby.runtime.builtin.IRubyObjectof ivar
valueorg.jruby.runtime.builtin.IRubyObjectto set

Returns: value of old set ivar

instance_variables

InstanceVariables instance_variables ( )
Java: getInstanceVariables() · also: get_instance_variables

Dummy method to avoid a cast, and to avoid polluting the IRubyObject interface with all the instance variable management methods.

instance_variables

RubyArray instance_variables ( ThreadContext context )
Java: instance_variables(org.jruby.runtime.ThreadContext context)

rb_obj_instance_variables call-seq: obj.instance_variables => array Returns an array of instance variable names for the receiver. Note that simply defining an accessor does not create the corresponding instance variable. class Fred attr_accessor :a1 def initialize @iv = 3 end end Fred.new.instance_variables #=> [:"@iv"]

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context

Returns: list of ivars

internal_variables

InternalVariables internal_variables ( )
Java: getInternalVariables() · also: get_internal_variables

Dummy method to avoid a cast, and to avoid polluting the IRubyObject interface with all the instance variable management methods.

is_builtin

boolean is_builtin ( String method_name )
Java: isBuiltin(String methodName)

A method to determine whether the method named by methodName is a builtin method, i.e. a method built-in to JRuby and loaded during its core boot process.

nametypedescription
method_nameStringto look for.

Returns: true if so

java_class

Class<?> java_class ( )
Java: getJavaClass() · also: get_java_class

Will return the Java interface that most closely can represent this object, when working through Java integration translations.

Returns: the true Java class of this (Ruby) object

kind_of_p

RubyBoolean kind_of_p ( ThreadContext context, IRubyObject type )
Java: kind_of_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject type)

rb_obj_is_kind_of call-seq: obj.is_a?(class) => true or false obj.kind_of?(class) => true or false Returns true if class is the class of obj, or if class is one of the superclasses of obj or modules included in obj. module M; end class A include M end class B < A; end class C < B; end b = B.new b.instance_of? A #=> false b.instance_of? B #=> true b.instance_of? C #=> false b.instance_of? M #=> false b.kind_of? A #=> true b.kind_of? B #=> true b.kind_of? C #=> false b.kind_of? M #=> true

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
typeorg.jruby.runtime.builtin.IRubyObjectthe type

Returns: true if this is kind of type

make_meta_class

RubyClass make_meta_class ( RubyClass super_class )
Java: makeMetaClass(org.jruby.RubyClass superClass)

make_meta_class

RubyClass make_meta_class ( ThreadContext context, RubyClass super_class )
Java: makeMetaClass(org.jruby.runtime.ThreadContext context, org.jruby.RubyClass superClass)

rb_make_metaclass Will create a new meta class, insert this in the chain of classes for this specific object, and return the generated meta class.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
super_classorg.jruby.RubyClassthe super class

Returns: the new meta class

make_meta_class_bootstrap

RubyClass make_meta_class_bootstrap ( Ruby runtime, RubyClass super_class, RubyClass class )
Java: makeMetaClassBootstrap(org.jruby.Ruby runtime, org.jruby.RubyClass superClass, org.jruby.RubyClass Class)

This will create a new metaclass. This is only used during bootstrapping before the initial ThreadContext is defined. Normal needs of making a metaclass should use RubyBasicObject#makeMetaClass(ThreadContext, RubyClass)

nametypedescription
runtimeorg.jruby.Rubythe runtime
super_classorg.jruby.RubyClassof the metaclass
classorg.jruby.RubyClassa reference to Ruby Class

Returns: the new metaclass

marshal_variable_list

List<Variable<Object>> marshal_variable_list ( )
Java: getMarshalVariableList() · also: get_marshal_variable_list

meta_class

RubyClass meta_class ( )
Java: getMetaClass() · also: get_meta_class

if exist return the meta-class else return the type of the object.

meta_class=

meta_class= ( RubyClass meta_class )
Java: setMetaClass(org.jruby.RubyClass metaClass) · also: set_meta_class

Makes it possible to change the metaclass of an object. In practice, this is a simple version of Smalltalks Become, except that it doesn't work when we're dealing with subclasses. In practice it's used to change the singleton/meta class used, without changing the "real" inheritance chain.

nametypedescription
meta_classorg.jruby.RubyClassthe meta class to set

method

IRubyObject method ( IRubyObject name )
Java: method(org.jruby.runtime.builtin.IRubyObject name)

method

IRubyObject method ( IRubyObject name, StaticScope refined_scope )
Java: method(org.jruby.runtime.builtin.IRubyObject name, org.jruby.parser.StaticScope refinedScope)

method

IRubyObject method ( ThreadContext context, IRubyObject name, StaticScope refined_scope )
Java: method(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject name, org.jruby.parser.StaticScope refinedScope)

Like #method(IRubyObject) but using the given refinement scope to search for the method.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
nameorg.jruby.runtime.builtin.IRubyObjectthe name of the method
refined_scopeorg.jruby.parser.StaticScopethe static scope for the caller method

Returns: method instance

methods

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

rb_obj_methods call-seq: obj.methods => array Returns a list of the names of methods publicly accessible in obj. This will include all the methods accessible in obj's ancestors. class Klass def kMethod() end end k = Klass.new k.methods[0..9] #=> ["kMethod", "freeze", "nil?", "is_a?", "class", "instance_variable_set", "methods", "extend", "__send__", "instance_eval"] k.methods.length #=> 42

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
argsorg.jruby.runtime.builtin.IRubyObject[]include ancestors

Returns: methods

nil?

boolean nil? ( )
Java: isNil() · also: is_nil

Does this object represent nil?

Returns: true if nil

nil_p

IRubyObject nil_p ( ThreadContext context )
Java: nil_p(org.jruby.runtime.ThreadContext context)

rb_false call_seq: nil.nil? => true <anything_else>.nil? => false Only the object nil responds true to nil?.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context

Returns: true if nil

op_match

IRubyObject op_match ( ThreadContext context, IRubyObject arg )
Java: op_match(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg)

rb_obj_pattern_match call-seq: obj =~ other => nil Pattern Match---Overridden by descendents (notably Regexp and String) to provide meaningful pattern-match semantics.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
argorg.jruby.runtime.builtin.IRubyObjectarg

Returns: true if matches (always nil)

op_not

IRubyObject op_not ( ThreadContext context )
Java: op_not(org.jruby.runtime.ThreadContext context)

op_not_equal

IRubyObject op_not_equal ( ThreadContext context, IRubyObject other )
Java: op_not_equal(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject other)

The != method implemented for BasicObject.

nametypedescription
contextorg.jruby.runtime.ThreadContextthread context
otherorg.jruby.runtime.builtin.IRubyObjectother object

Returns: false if this == other, true otherwise

op_not_match

IRubyObject op_not_match ( ThreadContext context, IRubyObject arg )
Java: op_not_match(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg)

Invert the match operator.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
argorg.jruby.runtime.builtin.IRubyObjectarg

Returns: true if they do not match

private_methods

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

protected_methods

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

public_methods

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

rb_clone

IRubyObject rb_clone ( )
Java: rbClone()

rb_clone

IRubyObject rb_clone ( ThreadContext context, IRubyObject maybe_opts )
Java: rbClone(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject maybeOpts)

remove_finalizers

remove_finalizers ( )
Java: removeFinalizers()

Remove all the finalizers for this object.

remove_instance_variable

IRubyObject remove_instance_variable ( String name )
Java: removeInstanceVariable(String name)

remove_instance_variable

IRubyObject remove_instance_variable ( ThreadContext context, IRubyObject name, Block block )
Java: remove_instance_variable(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject name, org.jruby.runtime.Block block)

rb_obj_remove_instance_variable call-seq: obj.remove_instance_variable(symbol) => obj Removes the named instance variable from obj, returning that variable's value. class Dummy attr_reader :var def initialize @var = 99 end def remove remove_instance_variable(:@var) end end d = Dummy.new d.var #=> 99 d.remove #=> 99 d.var #=> nil

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
nameorg.jruby.runtime.builtin.IRubyObjectof ivar
blockorg.jruby.runtime.Blockthe block (not used)

Returns: value of removed ivar

remove_internal_variable

Object remove_internal_variable ( String name )
Java: removeInternalVariable(String name)

respond_to_p

RubyBoolean respond_to_p ( IRubyObject mname )
Java: respond_to_p(org.jruby.runtime.builtin.IRubyObject mname)

responds_to

boolean responds_to ( String name )
Java: respondsTo(String name)

Does this object respond to the specified message? Uses a shortcut if it can be proved that respond_to? and respond_to_missing? haven't been overridden.

responds_to_missing

boolean responds_to_missing ( String name )
Java: respondsToMissing(String name)

Does this object respond to the specified message via "method_missing?"

responds_to_missing

boolean responds_to_missing ( String name, boolean inc_private )
Java: respondsToMissing(String name, boolean incPrivate)

Does this object respond to the specified message via "method_missing?"

runtime

Ruby runtime ( )
Java: getRuntime() · also: get_runtime

Will return the runtime that this object is associated with.

Returns: current runtime

send

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

send

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

send

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

send

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

send

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

set_flag

set_flag ( int flag, boolean set )
Java: setFlag(int flag, boolean set)
Deprecated. external access to global object flags is going away

set_instance_variable

IRubyObject set_instance_variable ( String name, IRubyObject value )
Java: setInstanceVariable(String name, org.jruby.runtime.builtin.IRubyObject value)

rb_iv_set / rb_ivar_set

set_internal_variable

set_internal_variable ( String name, Object value )
Java: setInternalVariable(String name, Object value)

set_variable

set_variable ( int index, Object value )
Java: setVariable(int index, Object value)

singleton_class

RubyClass singleton_class ( )
Java: getSingletonClass() · also: get_singleton_class

singleton_class

RubyClass singleton_class ( ThreadContext context )
Java: singletonClass(org.jruby.runtime.ThreadContext context)

Will either return the existing singleton class for this object, or create a new one and return that. For a few types a singleton class is not possible so it will throw an error.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe current thread context

Returns: the singleton of this type

singleton_method

IRubyObject singleton_method ( IRubyObject name )
Java: singleton_method(org.jruby.runtime.builtin.IRubyObject name)

singleton_method

IRubyObject singleton_method ( ThreadContext context, IRubyObject name )
Java: singleton_method(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject name)

singleton_methods

RubyArray singleton_methods ( ThreadContext context, IRubyObject[] args )
Java: singleton_methods(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

special_const?

boolean special_const? ( )
Java: isSpecialConst() · also: is_special_const

special_object?

boolean special_object? ( )
Java: isSpecialObject() · also: is_special_object

specific_eval

IRubyObject specific_eval ( ThreadContext context, RubyModule mod, Block block, EvalType eval_type )
Java: specificEval(org.jruby.runtime.ThreadContext context, org.jruby.RubyModule mod, org.jruby.runtime.Block block, org.jruby.EvalType evalType)

specific_eval Evaluates the block or string inside of the context of this object, using the supplied arguments. If a block is given, this will be yielded in the specific context of this object. If no block is given then a String-like object needs to be the first argument, and this string will be evaluated. Second and third arguments in the args-array is optional, but can contain the filename and line of the string under evaluation.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
modorg.jruby.RubyModulemodule to yield in
blockorg.jruby.runtime.Blockto call
eval_typeorg.jruby.EvalTypetype of evaal to perform

Returns: the result

specific_eval

IRubyObject specific_eval ( ThreadContext context, RubyModule mod, IRubyObject arg, Block block, EvalType eval_type )
Java: specificEval(org.jruby.runtime.ThreadContext context, org.jruby.RubyModule mod, org.jruby.runtime.builtin.IRubyObject arg, org.jruby.runtime.Block block, org.jruby.EvalType evalType)

specific_eval Evaluates the block or string inside of the context of this object, using the supplied arguments. If a block is given, this will be yielded in the specific context of this object. If no block is given then a String-like object needs to be the first argument, and this string will be evaluated. Second and third arguments in the args-array is optional, but can contain the filename and line of the string under evaluation.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
modorg.jruby.RubyModulemodule to yield in
argorg.jruby.runtime.builtin.IRubyObjectto pass to block
blockorg.jruby.runtime.Blockto call
eval_typeorg.jruby.EvalTypetype of evaal to perform

Returns: the result

specific_eval

IRubyObject specific_eval ( ThreadContext context, RubyModule mod, IRubyObject arg0, IRubyObject arg1, Block block, EvalType eval_type )
Java: specificEval(org.jruby.runtime.ThreadContext context, org.jruby.RubyModule mod, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.Block block, org.jruby.EvalType evalType)

specific_eval Evaluates the block or string inside of the context of this object, using the supplied arguments. If a block is given, this will be yielded in the specific context of this object. If no block is given then a String-like object needs to be the first argument, and this string will be evaluated. Second and third arguments in the args-array is optional, but can contain the filename and line of the string under evaluation.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
modorg.jruby.RubyModulemodule to yield in
arg0org.jruby.runtime.builtin.IRubyObjectto pass to block
arg1org.jruby.runtime.builtin.IRubyObjectto pass to block
blockorg.jruby.runtime.Blockto call
eval_typeorg.jruby.EvalTypetype of evaal to perform

Returns: the result

specific_eval

IRubyObject specific_eval ( ThreadContext context, RubyModule mod, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block, EvalType eval_type )
Java: specificEval(org.jruby.runtime.ThreadContext context, org.jruby.RubyModule mod, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.builtin.IRubyObject arg2, org.jruby.runtime.Block block, org.jruby.EvalType evalType)

specific_eval Evaluates the block or string inside of the context of this object, using the supplied arguments. If a block is given, this will be yielded in the specific context of this object. If no block is given then a String-like object needs to be the first argument, and this string will be evaluated. Second and third arguments in the args-array is optional, but can contain the filename and line of the string under evaluation.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context
modorg.jruby.RubyModulemodule to yield in
arg0org.jruby.runtime.builtin.IRubyObjectto pass to block
arg1org.jruby.runtime.builtin.IRubyObjectto pass to block
arg2org.jruby.runtime.builtin.IRubyObjectto pass to block
blockorg.jruby.runtime.Blockto call
eval_typeorg.jruby.EvalTypetype of evaal to perform

Returns: the result

sync_variables

sync_variables ( IRubyObject other )
Java: syncVariables(org.jruby.runtime.builtin.IRubyObject other)

Sync one this object's variables with other's - this is used to make rbClone work correctly.

taint

IRubyObject taint ( ThreadContext context )
Java: taint(org.jruby.runtime.ThreadContext context)

taint=

taint= ( boolean taint )
Java: setTaint(boolean taint) · also: set_taint

taint?

boolean taint? ( )
Java: isTaint() · also: is_taint

tainted_p

RubyBoolean tainted_p ( ThreadContext context )
Java: tainted_p(org.jruby.runtime.ThreadContext context)

to_a

RubyArray to_a ( ThreadContext context )
Java: to_a(org.jruby.runtime.ThreadContext context)

true?

boolean true? ( )
Java: isTrue() · also: is_true

Is this value a truthy value or not?

Returns: true if truthy

type

RubyClass type ( )
Java: getType() · also: get_type

type

RubyClass type ( )
Java: type()

rb_obj_class Returns the real class of this object, excluding any singleton/meta class in the inheritance chain.

Returns: the real class

untaint

IRubyObject untaint ( ThreadContext context )
Java: untaint(org.jruby.runtime.ThreadContext context)

variable_list

List<Variable<Object>> variable_list ( )
Java: getVariableList() · also: get_variable_list

Gets a list of all variables in this object.

variable_name_list

List<String> variable_name_list ( )
Java: getVariableNameList() · also: get_variable_name_list

Gets a name list of all variables in this object.

from RubyObject

fieldtypenote
IVAR_INSPECTING_OBJECT_ALLOCATOR ObjectAllocator Allocator that inspects all methods for instance variables and chooses a concrete class to construct based on that. This allows using specialized subclasses to hold instance variables in fields rather than always holding them in an array.
OBJECT_ALLOCATOR ObjectAllocator Default allocator instance for all Ruby objects. The only reason to not use this allocator is if you actually need to have all instances of something be a subclass of RubyObject.
REIFYING_OBJECT_ALLOCATOR ObjectAllocator

attach_to_object_space

attach_to_object_space ( )
Java: attachToObjectSpace()

Will make sure that this object is added to the current object space.

call_init

call_init ( IRubyObject[] args, Block block )
Java: callInit(org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Block block)

Call the Ruby initialize method with the supplied arguments and block.

nametypedescription
argsorg.jruby.runtime.builtin.IRubyObject[]args
blockorg.jruby.runtime.Blockblock

call_init

call_init ( Block block )
Java: callInit(org.jruby.runtime.Block block)

Call the Ruby initialize method with the supplied arguments and block.

nametypedescription
blockorg.jruby.runtime.Blockblock

call_init

call_init ( IRubyObject arg0, Block block )
Java: callInit(org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.Block block)

Call the Ruby initialize method with the supplied arguments and block.

nametypedescription
arg0org.jruby.runtime.builtin.IRubyObjectarg0
blockorg.jruby.runtime.Blockblock

call_init

call_init ( IRubyObject arg0, IRubyObject arg1, Block block )
Java: callInit(org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.Block block)

Call the Ruby initialize method with the supplied arguments and block.

nametypedescription
arg0org.jruby.runtime.builtin.IRubyObjectarg0
arg1org.jruby.runtime.builtin.IRubyObjectarg1
blockorg.jruby.runtime.Blockblock

call_init

call_init ( IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block )
Java: callInit(org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.builtin.IRubyObject arg2, org.jruby.runtime.Block block)

call_init

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

call_init

call_init ( ThreadContext context, Block block )
Java: callInit(org.jruby.runtime.ThreadContext context, org.jruby.runtime.Block block)

call_init

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

call_init

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

call_init

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

to_ruby_string

RubyString to_ruby_string ( ThreadContext context )
Java: toRubyString(org.jruby.runtime.ThreadContext context)

The default toString method is just a wrapper that calls the Ruby "to_s" method. This will raise if it is not actually a Ruby String.

nametypedescription
contextorg.jruby.runtime.ThreadContextthread context this is executing on.

Returns: the string.

to_string

String to_string ( )
Java: toString()

The default toString method is just a wrapper that calls the Ruby "to_s" method.

Returns: string representation

from RubyModule

fieldtypenote
BUILTIN_CONSTANT String
CACHEPROXY_F int
INCLUDED_INTO_REFINEMENT int
IS_OVERLAID_F int
MODULE_ALLOCATOR ObjectAllocator
NEEDSIMPL_F int
OMOD_SHARED int
REFINED_MODULE_F int
TEMPORARY_NAME int
id int
kindOf RubyModule.KindOf
parent RubyModule The class/module within whose namespace this class/module resides.

_module_function

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

rb_mod_modfunc

_private

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

rb_mod_private

_protected

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

rb_mod_protected

_public

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

rb_mod_public

add_class_provider

add_class_provider ( ClassProvider provider )
Java: addClassProvider(org.jruby.util.ClassProvider provider)

add_including_hierarchy

add_including_hierarchy ( IncludedModule hierarchy )
Java: addIncludingHierarchy(org.jruby.IncludedModule hierarchy)

add_method

add_method ( String id, DynamicMethod method )
Java: addMethod(String id, org.jruby.internal.runtime.methods.DynamicMethod method)

add_method

add_method ( ThreadContext context, String id, DynamicMethod method )
Java: addMethod(org.jruby.runtime.ThreadContext context, String id, org.jruby.internal.runtime.methods.DynamicMethod method)

add_method_internal

add_method_internal ( String name, DynamicMethod method )
Java: addMethodInternal(String name, org.jruby.internal.runtime.methods.DynamicMethod method)

add_method_internal

add_method_internal ( ThreadContext context, String name, DynamicMethod method )
Java: addMethodInternal(org.jruby.runtime.ThreadContext context, String name, org.jruby.internal.runtime.methods.DynamicMethod method)

add_module_function

add_module_function ( String name, DynamicMethod method )
Java: addModuleFunction(String name, org.jruby.internal.runtime.methods.DynamicMethod method)

add_read_attribute

add_read_attribute ( ThreadContext context, String name )
Java: addReadAttribute(org.jruby.runtime.ThreadContext context, String name)

add_read_write_attribute

add_read_write_attribute ( ThreadContext context, String name )
Java: addReadWriteAttribute(org.jruby.runtime.ThreadContext context, String name)

add_write_attribute

add_write_attribute ( ThreadContext context, String name )
Java: addWriteAttribute(org.jruby.runtime.ThreadContext context, String name)

alias_method

IRubyObject alias_method ( ThreadContext context, IRubyObject new_id, IRubyObject old_id )
Java: aliasMethod(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject newId, org.jruby.runtime.builtin.IRubyObject oldId)

Add an alias under the name newId pointing at the method under the name oldId.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe current context
new_idorg.jruby.runtime.builtin.IRubyObjectthe new name for the alias
old_idorg.jruby.runtime.builtin.IRubyObjectthe current name of the method

Returns: the new name

alias_method

RubyModule alias_method ( ThreadContext context, IRubyObject new_id, IRubyObject old_id )
Java: alias_method(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject newId, org.jruby.runtime.builtin.IRubyObject oldId)

Old version of #aliasMethod(ThreadContext, IRubyObject, IRubyObject) that returns this module. The Ruby alias_method method was updated in 3.0 to return the new name.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe current context
new_idorg.jruby.runtime.builtin.IRubyObjectthe new name for the alias
old_idorg.jruby.runtime.builtin.IRubyObjectthe current name of the method

Returns: this module

ancestor_list

List<IRubyObject> ancestor_list ( )
Java: getAncestorList() · also: get_ancestor_list

ancestors

RubyArray ancestors ( ThreadContext context )
Java: ancestors(org.jruby.runtime.ThreadContext context)

rb_mod_ancestors

ancestors

RubyArray ancestors ( )
Java: ancestors()

append_features

RubyModule append_features ( IRubyObject include )
Java: append_features(org.jruby.runtime.builtin.IRubyObject include)

append_features

RubyModule append_features ( ThreadContext context, IRubyObject include )
Java: append_features(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject include)

rb_mod_append_features

attr

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

rb_mod_attr

attr_accessor

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

rb_mod_attr_accessor Note: this method should not be called from Java in most cases, since it depends on Ruby frame state for visibility. Use add[Read/Write]Attribute instead.

attr_reader

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

rb_mod_attr_reader

attr_writer

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

rb_mod_attr_writer

autoload

IRubyObject autoload ( ThreadContext context, IRubyObject symbol, IRubyObject file )
Java: autoload(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject symbol, org.jruby.runtime.builtin.IRubyObject file)

autoload_p

IRubyObject autoload_p ( ThreadContext context, IRubyObject symbol )
Java: autoload_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject symbol)

autoload_p

IRubyObject autoload_p ( ThreadContext context, IRubyObject symbol, IRubyObject inherit )
Java: autoload_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject symbol, org.jruby.runtime.builtin.IRubyObject inherit)

autoloading_value

boolean autoloading_value ( Ruby runtime, String name )
Java: autoloadingValue(org.jruby.Ruby runtime, String name)

autoloading_value

boolean autoloading_value ( ThreadContext context, String name )
Java: autoloadingValue(org.jruby.runtime.ThreadContext context, String name)

base_name

String base_name ( )
Java: getBaseName() · also: get_base_name

Get the base name of this class, or null if it is an anonymous class.

Returns: base name of the class

base_name

T base_name ( String name )
Java: baseName(String name)

Set the base name of the class. If null, the class effectively becomes anonymous (though constants elsewhere may reference it).

nametypedescription
nameStringthe new base name of the class

Returns: itself for a composable API.

base_name=

base_name= ( String name )
Java: setBaseName(String name) · also: set_base_name
Deprecated. Use org.jruby.RubyModule#baseName(String) instead.

Set the base name of the class. If null, the class effectively becomes anonymous (though constants elsewhere may reference it).

nametypedescription
nameStringthe new base name of the class

cache_proxy

boolean cache_proxy ( )
Java: getCacheProxy() · also: get_cache_proxy

Get whether this Java proxy class should try to keep its instances idempotent and alive using the ObjectProxyCache.

cache_proxy=

cache_proxy= ( boolean cache_proxy )
Java: setCacheProxy(boolean cacheProxy) · also: set_cache_proxy

Set whether this Java proxy class should try to keep its instances idempotent and alive using the ObjectProxyCache.

check_frozen

check_frozen ( )
Java: checkFrozen()

check_valid_bind_target_from

check_valid_bind_target_from ( ThreadContext context, RubyModule origin_module, boolean from_bind )
Java: checkValidBindTargetFrom(org.jruby.runtime.ThreadContext context, org.jruby.RubyModule originModule, boolean fromBind)

class_index

ClassIndex class_index ( )
Java: getClassIndex() · also: get_class_index

Get the ClassIndex for this class. Will be NO_CLASS for non-core types.

class_index

T class_index ( ClassIndex class_index )
Java: classIndex(org.jruby.runtime.ClassIndex classIndex)

Sets the ClassIndex for this type

nametypedescription
class_indexorg.jruby.runtime.ClassIndexto be set

Returns: itself for composable API

class_variable_defined_p

IRubyObject class_variable_defined_p ( ThreadContext context, IRubyObject var )
Java: class_variable_defined_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject var)

class_variable_get

IRubyObject class_variable_get ( IRubyObject name )
Java: class_variable_get(org.jruby.runtime.builtin.IRubyObject name)

class_variable_get

IRubyObject class_variable_get ( ThreadContext context, IRubyObject name )
Java: class_variable_get(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject name)

rb_mod_cvar_get

class_variable_get19

IRubyObject class_variable_get19 ( IRubyObject name )
Java: class_variable_get19(org.jruby.runtime.builtin.IRubyObject name)

class_variable_name_list

List<String> class_variable_name_list ( )
Java: getClassVariableNameList() · also: get_class_variable_name_list

class_variable_set

IRubyObject class_variable_set ( IRubyObject name, IRubyObject value )
Java: class_variable_set(org.jruby.runtime.builtin.IRubyObject name, org.jruby.runtime.builtin.IRubyObject value)

class_variable_set

IRubyObject class_variable_set ( ThreadContext context, IRubyObject name, IRubyObject value )
Java: class_variable_set(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject name, org.jruby.runtime.builtin.IRubyObject value)

rb_mod_cvar_set

class_variable_set19

IRubyObject class_variable_set19 ( IRubyObject name, IRubyObject value )
Java: class_variable_set19(org.jruby.runtime.builtin.IRubyObject name, org.jruby.runtime.builtin.IRubyObject value)

class_variables

RubyArray class_variables ( ThreadContext context )
Java: class_variables(org.jruby.runtime.ThreadContext context)

class_variables

RubyArray class_variables ( ThreadContext context, IRubyObject inherit )
Java: class_variables(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject inherit)

const_added

IRubyObject const_added ( ThreadContext context, IRubyObject _new_constant )
Java: const_added(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject _newConstant)

const_defined

boolean const_defined ( String name )
Java: constDefined(String name)

const_defined

boolean const_defined ( ThreadContext context, String name )
Java: constDefined(org.jruby.runtime.ThreadContext context, String name)

const_defined_at

boolean const_defined_at ( String name )
Java: constDefinedAt(String name)

const_defined_at

boolean const_defined_at ( ThreadContext context, String name )
Java: constDefinedAt(org.jruby.runtime.ThreadContext context, String name)

const_defined_from

boolean const_defined_from ( String name )
Java: constDefinedFrom(String name)

const_defined_from

boolean const_defined_from ( ThreadContext context, String name )
Java: constDefinedFrom(org.jruby.runtime.ThreadContext context, String name)

const_defined_p

RubyBoolean const_defined_p ( ThreadContext context, IRubyObject name )
Java: const_defined_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject name)

rb_mod_const_defined

const_defined_p

RubyBoolean const_defined_p ( ThreadContext context, IRubyObject name, IRubyObject recurse )
Java: const_defined_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject name, org.jruby.runtime.builtin.IRubyObject recurse)

const_get

IRubyObject const_get ( ThreadContext context, IRubyObject arg0 )
Java: const_get(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0)

const_get

IRubyObject const_get ( ThreadContext context, IRubyObject arg0, IRubyObject arg1 )
Java: const_get(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1)

const_get

IRubyObject const_get ( IRubyObject symbol )
Java: const_get(org.jruby.runtime.builtin.IRubyObject symbol)

const_get

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

const_get_1_9

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

const_get_2_0

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

const_missing

IRubyObject const_missing ( ThreadContext context, IRubyObject ruby_name, Block block )
Java: const_missing(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject rubyName, org.jruby.runtime.Block block)

Base implementation of Module#const_missing, throws NameError for specific missing constant.

nametypedescription
ruby_nameorg.jruby.runtime.builtin.IRubyObjectThe constant name which was found to be missing

Returns: Nothing! Absolutely nothing! (though subclasses might choose to return something)

const_set

IRubyObject const_set ( IRubyObject name, IRubyObject value )
Java: const_set(org.jruby.runtime.builtin.IRubyObject name, org.jruby.runtime.builtin.IRubyObject value)

const_set

IRubyObject const_set ( ThreadContext context, IRubyObject name, IRubyObject value )
Java: const_set(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject name, org.jruby.runtime.builtin.IRubyObject value)

rb_mod_const_set

const_source_location

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

constant_map

Map<String,RubyModule.ConstantEntry> constant_map ( )
Java: getConstantMap() · also: get_constant_map

constant_map_for_write

Map<String,RubyModule.ConstantEntry> constant_map_for_write ( )
Java: getConstantMapForWrite() · also: get_constant_map_for_write

constant_names

Collection<String> constant_names ( )
Java: getConstantNames() · also: get_constant_names

Returns: a list of constant names that exists at time this was called

constants

RubyArray constants ( ThreadContext context )
Java: constants(org.jruby.runtime.ThreadContext context)

constants

RubyArray constants ( ThreadContext context, IRubyObject all_constants )
Java: constants(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject allConstants)

constants_common

Collection<String> constants_common ( Ruby runtime, boolean replace_module, boolean all_constants )
Java: constantsCommon(org.jruby.Ruby runtime, boolean replaceModule, boolean allConstants)

rb_mod_constants

constants_common

Collection<String> constants_common ( Ruby runtime, boolean replace_module, boolean all_constants, boolean include_private )
Java: constantsCommon(org.jruby.Ruby runtime, boolean replaceModule, boolean allConstants, boolean includePrivate)

define_alias

define_alias ( String name, String old_name )
Java: defineAlias(String name, String oldName)
Deprecated. Use RubyModule#aliasMethod(ThreadContext, IRubyObject, IRubyObject) instead

define_alias

T define_alias ( ThreadContext context, String name, String old_name )
Java: defineAlias(org.jruby.runtime.ThreadContext context, String name, String oldName)

Define an alias on this module/class.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe current thread context
nameStringthe new alias name
old_nameStringthe existing method name

Returns: itself for composable API

define_annotated_constant

boolean define_annotated_constant ( Field field )
Java: defineAnnotatedConstant(java.lang.reflect.Field field)
Deprecated. Use RubyModule#defineAnnotatedConstant(ThreadContext, Field) instead.

Returns: ""

define_annotated_constants

define_annotated_constants ( Class clazz )
Java: defineAnnotatedConstants(Class clazz)
Deprecated. Use RubyModule#defineConstants(ThreadContext, Class) instead.

define_annotated_method

define_annotated_method ( Class clazz, String name )
Java: defineAnnotatedMethod(Class clazz, String name)
Deprecated. Use RubyModule#defineMethods(ThreadContext, Class[]) and organize your method definitions where you only specify the .class and not needing to add a name as a discriminator. This method is fairly inefficient since it is rescanning the class for all methods to find a single version.

define_annotated_method

boolean define_annotated_method ( String name, List<JavaMethodDescriptor> methods, MethodFactory method_factory )
Java: defineAnnotatedMethod(String name, List<org.jruby.anno.JavaMethodDescriptor> methods, org.jruby.runtime.MethodFactory methodFactory)
Deprecated. Use RubyModule#defineMethods(ThreadContext, Class[]) instead and organize your code around all JRubyMethod annotations in that .class being defined.

Note: it is your responsibility to only pass methods which are annotated with @JRubyMethod. It will perform this check when only a single method is passed in but has never checked when more than one.

define_annotated_method

define_annotated_method ( ThreadContext context, String name, List<JavaMethodDescriptor> methods, MethodFactory method_factory )
Java: defineAnnotatedMethod(org.jruby.runtime.ThreadContext context, String name, List<org.jruby.anno.JavaMethodDescriptor> methods, org.jruby.runtime.MethodFactory methodFactory)

This is an internal API used by the type populator. This method takes a list of overloads for a static or non-static method and generates the

nametypedescription
contextorg.jruby.runtime.ThreadContextthe current method context

define_annotated_method

boolean define_annotated_method ( Method method, MethodFactory method_factory )
Java: defineAnnotatedMethod(java.lang.reflect.Method method, org.jruby.runtime.MethodFactory methodFactory)

define_annotated_method

boolean define_annotated_method ( String name, JavaMethodDescriptor desc, MethodFactory method_factory )
Java: defineAnnotatedMethod(String name, org.jruby.anno.JavaMethodDescriptor desc, org.jruby.runtime.MethodFactory methodFactory)

define_annotated_methods

define_annotated_methods ( Class clazz )
Java: defineAnnotatedMethods(Class clazz)
Deprecated. Use RubyModule#defineMethods(ThreadContext, Class[]) instead.

define_annotated_methods_individually

define_annotated_methods_individually ( Class clazz )
Java: defineAnnotatedMethodsIndividually(Class clazz)

define_class_under

T define_class_under ( ThreadContext context, String name, RubyClass super_class, ObjectAllocator allocator )
Java: defineClassUnder(org.jruby.runtime.ThreadContext context, String name, org.jruby.RubyClass superClass, org.jruby.runtime.ObjectAllocator allocator)

Define a Class under this Class/Module.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe current thread context
nameStringname of the new class
super_classorg.jruby.RubyClasssuperclass of this new class
allocatororg.jruby.runtime.ObjectAllocatorhow to allocate an instance of this class

Returns: the new class

define_class_under

RubyClass define_class_under ( ThreadContext context, String name, RubyClass super_clazz, ObjectAllocator allocator, String file, int line )
Java: defineClassUnder(org.jruby.runtime.ThreadContext context, String name, org.jruby.RubyClass superClazz, org.jruby.runtime.ObjectAllocator allocator, String file, int line)

Internal API only used by our IR runtime helpers in setting up Ruby-defined classes or re-accessing them if they already exist. Look at RubyModule#defineClassUnder(ThreadContext, String, RubyClass, ObjectAllocator) for native extensions.

nametypedescription
nameStringto be defined
super_clazzorg.jruby.RubyClassthe super class of this new class
allocatororg.jruby.runtime.ObjectAllocatorhow to allocate it
fileStringlocation where it was defined from
lineintlocation where it was defined from

Returns: the new class.

define_class_under

RubyClass define_class_under ( String name, RubyClass super_class, ObjectAllocator allocator )
Java: defineClassUnder(String name, org.jruby.RubyClass superClass, org.jruby.runtime.ObjectAllocator allocator)
Deprecated. Use RubyModule#defineClassUnder(ThreadContext, String, RubyClass, ObjectAllocator) instead.

Returns: ""

define_constant

T define_constant ( ThreadContext context, String name, IRubyObject value )
Java: defineConstant(org.jruby.runtime.ThreadContext context, String name, org.jruby.runtime.builtin.IRubyObject value)

Define a constant when you are defining your Ruby class/module.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe current thread context
nameStringthe name of the constant
valueorg.jruby.runtime.builtin.IRubyObjectthe value for the constant

Returns: itself for a composable API

define_constant

T define_constant ( ThreadContext context, String name, IRubyObject value, boolean hidden )
Java: defineConstant(org.jruby.runtime.ThreadContext context, String name, org.jruby.runtime.builtin.IRubyObject value, boolean hidden)

Define a constant when you are defining your Ruby class/module.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe current thread context
nameStringthe name of the constant
valueorg.jruby.runtime.builtin.IRubyObjectthe value for the constant
hiddenbooleanshould this be a hidden constant

Returns: itself for a composable API

define_constant

define_constant ( String name, IRubyObject value )
Java: defineConstant(String name, org.jruby.runtime.builtin.IRubyObject value)

rb_define_const

define_constant_bootstrap

define_constant_bootstrap ( String name, IRubyObject value )
Java: defineConstantBootstrap(String name, org.jruby.runtime.builtin.IRubyObject value)

This is an internal API which is only used during runtime creation but BEFORE the first ThreadContext is created. Nothing other that a few constants in the Ruby constructor should be calling this. This method has no error checks. A secondary goal of this method is that it does not access Ruby or ThreadContext in any way.

nametypedescription
nameStringof the constant
valueorg.jruby.runtime.builtin.IRubyObjectof the constant

define_constants

T define_constants ( ThreadContext context, Class constant_source )
Java: defineConstants(org.jruby.runtime.ThreadContext context, Class constantSource)

Define constant for your module/class with the supplied Class which contains @JRubyMethod annotations.

nametypedescription
constant_sourceClassclass containing the method annotations

Returns: itself for composable API

define_constants_from

T define_constants_from ( ThreadContext context, Class<C> enum_class )
Java: defineConstantsFrom(org.jruby.runtime.ThreadContext context, Class<C> enumClass)

Define all constants from the given jnr-constants enum which are defined on the current platform.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe current thread context
enum_classClass<C>the enum class of the constants to define

Returns: itself for composable API

define_method

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

define_method

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

define_method_from_block

IRubyObject define_method_from_block ( ThreadContext context, IRubyObject arg0, Block block, Visibility visibility )
Java: defineMethodFromBlock(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.Block block, org.jruby.runtime.Visibility visibility)

define_method_from_callable

IRubyObject define_method_from_callable ( ThreadContext context, IRubyObject arg0, IRubyObject arg1, Visibility visibility )
Java: defineMethodFromCallable(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.Visibility visibility)

define_methods

T define_methods ( ThreadContext context, Class[] method_sources )
Java: defineMethods(org.jruby.runtime.ThreadContext context, Class[] methodSources)

Define methods for your module/class with the supplied Class which contains @JRubyMethod annotations.

nametypedescription
method_sourcesClass[]class containing the method annotations

Returns: itself for composable API

define_module_under

RubyModule define_module_under ( ThreadContext context, String name )
Java: defineModuleUnder(org.jruby.runtime.ThreadContext context, String name)

Define a module under this module.

Returns: itself for a composable API

define_module_under

RubyModule define_module_under ( String name )
Java: defineModuleUnder(String name)

define_or_get_class_under

RubyClass define_or_get_class_under ( String name, RubyClass super_clazz )
Java: defineOrGetClassUnder(String name, org.jruby.RubyClass superClazz)

define_or_get_class_under

RubyClass define_or_get_class_under ( String name, RubyClass super_clazz, String file, int line )
Java: defineOrGetClassUnder(String name, org.jruby.RubyClass superClazz, String file, int line)

define_or_get_class_under

RubyClass define_or_get_class_under ( String name, RubyClass super_clazz, ObjectAllocator allocator )
Java: defineOrGetClassUnder(String name, org.jruby.RubyClass superClazz, org.jruby.runtime.ObjectAllocator allocator)

define_or_get_class_under

RubyClass define_or_get_class_under ( String name, RubyClass super_clazz, ObjectAllocator allocator, String file, int line )
Java: defineOrGetClassUnder(String name, org.jruby.RubyClass superClazz, org.jruby.runtime.ObjectAllocator allocator, String file, int line)

define_or_get_module_under

RubyModule define_or_get_module_under ( String name )
Java: defineOrGetModuleUnder(String name)

this method should be used only by interpreter or compiler

define_or_get_module_under

RubyModule define_or_get_module_under ( String name, String file, int line )
Java: defineOrGetModuleUnder(String name, String file, int line)

define_or_get_module_under

RubyModule define_or_get_module_under ( ThreadContext context, String name, String file, int line )
Java: defineOrGetModuleUnder(org.jruby.runtime.ThreadContext context, String name, String file, int line)

delegate

RubyModule delegate ( )
Java: getDelegate() · also: get_delegate

delete_class_variable

IRubyObject delete_class_variable ( String name )
Java: deleteClassVariable(String name)

delete_constant

IRubyObject delete_constant ( String name )
Java: deleteConstant(String name)

delete_constant

IRubyObject delete_constant ( ThreadContext context, String name )
Java: deleteConstant(org.jruby.runtime.ThreadContext context, String name)

deprecate_constant

deprecate_constant ( Ruby runtime, String name )
Java: deprecateConstant(org.jruby.Ruby runtime, String name)

deprecate_constant

deprecate_constant ( ThreadContext context, String name )
Java: deprecateConstant(org.jruby.runtime.ThreadContext context, String name)

Mark the named constant as deprecated.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe current thread context
nameStringthe name of the constant

deprecate_constant

IRubyObject deprecate_constant ( ThreadContext context, IRubyObject name )
Java: deprecate_constant(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject name)

deprecate_constant

IRubyObject deprecate_constant ( ThreadContext context, IRubyObject[] names )
Java: deprecate_constant(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] names)

discover_instance_variables

Set<String> discover_instance_variables ( )
Java: discoverInstanceVariables()

equals

boolean equals ( Object other )
Java: equals(Object other)

We override equals here to provide a faster path, since equality for modules is pretty cut and dried.

nametypedescription
otherObjectThe object to check for equality

Returns: true if reference equality, false otherwise

export_method

export_method ( String name, Visibility visibility )
Java: exportMethod(String name, org.jruby.runtime.Visibility visibility)

extend_object

IRubyObject extend_object ( IRubyObject obj )
Java: extend_object(org.jruby.runtime.builtin.IRubyObject obj)

extend_object

IRubyObject extend_object ( ThreadContext context, IRubyObject obj )
Java: extend_object(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj)

rb_mod_extend_object

extend_object

RubyModule extend_object ( ThreadContext context, IRubyObject obj )
Java: extendObject(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj)

extended

IRubyObject extended ( ThreadContext context, IRubyObject other, Block block )
Java: extended(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject other, org.jruby.runtime.Block block)

fast_set_constant

IRubyObject fast_set_constant ( String interned_name, IRubyObject value )
Java: fastSetConstant(String internedName, org.jruby.runtime.builtin.IRubyObject value)

fetch_class_variable

IRubyObject fetch_class_variable ( String name )
Java: fetchClassVariable(String name)

fetch_constant

IRubyObject fetch_constant ( String name )
Java: fetchConstant(String name)

fetch_constant

IRubyObject fetch_constant ( ThreadContext context, String name )
Java: fetchConstant(org.jruby.runtime.ThreadContext context, String name)

fetch_constant

IRubyObject fetch_constant ( String name, boolean include_private )
Java: fetchConstant(String name, boolean includePrivate)

fetch_constant

IRubyObject fetch_constant ( ThreadContext context, String name, boolean include_private )
Java: fetchConstant(org.jruby.runtime.ThreadContext context, String name, boolean includePrivate)

fetch_constant_entry

RubyModule.ConstantEntry fetch_constant_entry ( String name, boolean include_private )
Java: fetchConstantEntry(String name, boolean includePrivate)

fetch_constant_entry

RubyModule.ConstantEntry fetch_constant_entry ( ThreadContext context, String name, boolean include_private )
Java: fetchConstantEntry(org.jruby.runtime.ThreadContext context, String name, boolean includePrivate)

The equivalent for fetchConstant but is useful for extra state like whether the constant is private or not.

nametypedescription
nameStringof the constant.
include_privatebooleaninclude private/hidden constants

Returns: the entry for the constant.

find_implementer

RubyModule find_implementer ( RubyModule clazz )
Java: findImplementer(org.jruby.RubyModule clazz)

Find the given class in this hierarchy, considering modules along the way.

nametypedescription
clazzorg.jruby.RubyModulethe class to find

Returns: The method, or UndefinedMethod if not found

freeze

IRubyObject freeze ( ThreadContext context )
Java: freeze(org.jruby.runtime.ThreadContext context)

rb_mod_freeze

generation

int generation ( )
Java: getGeneration() · also: get_generation

generation_object

Integer generation_object ( )
Java: getGenerationObject() · also: get_generation_object

get_autoload_constant

IRubyObject get_autoload_constant ( String name )
Java: getAutoloadConstant(String name)

get_autoload_constant

IRubyObject get_autoload_constant ( ThreadContext context, String name )
Java: getAutoloadConstant(org.jruby.runtime.ThreadContext context, String name)

Get autoload constant. If it's first resolution for the constant, it tries to require the defined feature and returns the defined value. Multi-threaded accesses are blocked and processed sequentially except if the caller is the autoloading thread.

get_class

RubyClass get_class ( String name )
Java: getClass(String name)

get_class

RubyClass get_class ( ThreadContext context, String name )
Java: getClass(org.jruby.runtime.ThreadContext context, String name)

Finds a class that is within the current module/class. Also consider using the various methods in org.jruby.api.Access when they are core types to avoid a hash lookup.

nametypedescription
contextorg.jruby.runtime.ThreadContextthe current thread context
nameStringto be found in this module (or class)

Returns: the class or null if no such class

get_class_var

IRubyObject get_class_var ( String name )
Java: getClassVar(String name)

get_class_var

IRubyObject get_class_var ( ThreadContext context, String name )
Java: getClassVar(org.jruby.runtime.ThreadContext context, String name)

Retrieve the specified class variable, searching through this module, included modules, and supermodules. Ruby C equivalent = "rb_cvar_get"

nametypedescription
nameStringThe name of the variable to retrieve

Returns: The variable's value, or throws NameError if not found

get_class_var

IRubyObject get_class_var ( IRubyObject name_object, String name )
Java: getClassVar(org.jruby.runtime.builtin.IRubyObject nameObject, String name)

get_class_var

IRubyObject get_class_var ( ThreadContext context, IRubyObject name_object, String name )
Java: getClassVar(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject nameObject, String name)

get_class_var_quiet

IRubyObject get_class_var_quiet ( String name )
Java: getClassVarQuiet(String name)

get_constant

IRubyObject get_constant ( String name )
Java: getConstant(String name)

get_constant

IRubyObject get_constant ( ThreadContext context, String name )
Java: getConstant(org.jruby.runtime.ThreadContext context, String name)

Retrieve the named constant, invoking 'const_missing' should that be appropriate.

nametypedescription
nameStringThe constant to retrieve

Returns: The value for the constant, or null if not found

get_constant

IRubyObject get_constant ( String name, boolean inherit )
Java: getConstant(String name, boolean inherit)

get_constant

IRubyObject get_constant ( ThreadContext context, String name, boolean inherit )
Java: getConstant(org.jruby.runtime.ThreadContext context, String name, boolean inherit)

get_constant

IRubyObject get_constant ( String name, boolean inherit, boolean include_object )
Java: getConstant(String name, boolean inherit, boolean includeObject)

get_constant

IRubyObject get_constant ( ThreadContext context, String name, boolean inherit, boolean include_object )
Java: getConstant(org.jruby.runtime.ThreadContext context, String name, boolean inherit, boolean includeObject)

get_constant_at

IRubyObject get_constant_at ( String name )
Java: getConstantAt(String name)

get_constant_at

IRubyObject get_constant_at ( ThreadContext context, String name )
Java: getConstantAt(org.jruby.runtime.ThreadContext context, String name)

get_constant_at

IRubyObject get_constant_at ( String name, boolean include_private )
Java: getConstantAt(String name, boolean includePrivate)

get_constant_at

IRubyObject get_constant_at ( ThreadContext context, String name, boolean include_private )
Java: getConstantAt(org.jruby.runtime.ThreadContext context, String name, boolean includePrivate)

get_constant_at_special

IRubyObject get_constant_at_special ( String name )
Java: getConstantAtSpecial(String name)

get_constant_at_special

IRubyObject get_constant_at_special ( ThreadContext context, String name )
Java: getConstantAtSpecial(org.jruby.runtime.ThreadContext context, String name)

This version searches superclasses if we're starting with Object. This corresponds to logic in rb_const_defined_0 that recurses for Object only.

nametypedescription
nameStringthe constant name to find

Returns: the constant, or null if it was not found

get_constant_from

IRubyObject get_constant_from ( String name )
Java: getConstantFrom(String name)

get_constant_from

IRubyObject get_constant_from ( ThreadContext context, String name )
Java: getConstantFrom(org.jruby.runtime.ThreadContext context, String name)

get_constant_from_const_missing

IRubyObject get_constant_from_const_missing ( String name )
Java: getConstantFromConstMissing(String name)

get_constant_from_const_missing

IRubyObject get_constant_from_const_missing ( ThreadContext context, String name )
Java: getConstantFromConstMissing(org.jruby.runtime.ThreadContext context, String name)

get_constant_from_no_const_missing

IRubyObject get_constant_from_no_const_missing ( String name )
Java: getConstantFromNoConstMissing(String name)

get_constant_from_no_const_missing

IRubyObject get_constant_from_no_const_missing ( ThreadContext context, String name )
Java: getConstantFromNoConstMissing(org.jruby.runtime.ThreadContext context, String name)

get_constant_from_no_const_missing

IRubyObject get_constant_from_no_const_missing ( String name, boolean include_private )
Java: getConstantFromNoConstMissing(String name, boolean includePrivate)

get_constant_from_no_const_missing

IRubyObject get_constant_from_no_const_missing ( ThreadContext context, String name, boolean include_private )
Java: getConstantFromNoConstMissing(org.jruby.runtime.ThreadContext context, String name, boolean includePrivate)

get_constant_names

Collection<String> get_constant_names ( boolean include_private )
Java: getConstantNames(boolean includePrivate)

get_constant_no_const_missing

IRubyObject get_constant_no_const_missing ( String name )
Java: getConstantNoConstMissing(String name)

get_constant_no_const_missing

IRubyObject get_constant_no_const_missing ( ThreadContext context, String name )
Java: getConstantNoConstMissing(org.jruby.runtime.ThreadContext context, String name)

get_constant_no_const_missing

IRubyObject get_constant_no_const_missing ( String name, boolean inherit )
Java: getConstantNoConstMissing(String name, boolean inherit)

get_constant_no_const_missing

IRubyObject get_constant_no_const_missing ( ThreadContext context, String name, boolean inherit )
Java: getConstantNoConstMissing(org.jruby.runtime.ThreadContext context, String name, boolean inherit)

get_constant_no_const_missing

IRubyObject get_constant_no_const_missing ( String name, boolean inherit, boolean include_object )
Java: getConstantNoConstMissing(String name, boolean inherit, boolean includeObject)

get_constant_no_const_missing

IRubyObject get_constant_no_const_missing ( ThreadContext context, String name, boolean inherit, boolean include_object )
Java: getConstantNoConstMissing(org.jruby.runtime.ThreadContext context, String name, boolean inherit, boolean includeObject)

get_constant_no_const_missing_skip_autoload

IRubyObject get_constant_no_const_missing_skip_autoload ( String name )
Java: getConstantNoConstMissingSkipAutoload(String name)

get_constant_no_const_missing_skip_autoload

IRubyObject get_constant_no_const_missing_skip_autoload ( ThreadContext context, String name )
Java: getConstantNoConstMissingSkipAutoload(org.jruby.runtime.ThreadContext context, String name)

get_constant_source_location

RubyModule.SourceLocation get_constant_source_location ( String name, boolean inherit, boolean include_object )
Java: getConstantSourceLocation(String name, boolean inherit, boolean includeObject)

get_constant_source_location

RubyModule.SourceLocation get_constant_source_location ( ThreadContext context, String name, boolean inherit, boolean include_object )
Java: getConstantSourceLocation(org.jruby.runtime.ThreadContext context, String name, boolean inherit, boolean includeObject)

get_constant_with_autoload

IRubyObject get_constant_with_autoload ( String name, IRubyObject failed_autoload_value, boolean include_private )
Java: getConstantWithAutoload(String name, org.jruby.runtime.builtin.IRubyObject failedAutoloadValue, boolean includePrivate)

get_constant_with_autoload

IRubyObject get_constant_with_autoload ( ThreadContext context, String name, IRubyObject failed_autoload_value, boolean include_private )
Java: getConstantWithAutoload(org.jruby.runtime.ThreadContext context, String name, org.jruby.runtime.builtin.IRubyObject failedAutoloadValue, boolean includePrivate)

Search just this class for a constant value, or trigger autoloading.

get_module

RubyModule get_module ( String name )
Java: getModule(String name)

get_module

RubyModule get_module ( ThreadContext context, String name )
Java: getModule(org.jruby.runtime.ThreadContext context, String name)

Finds a module that is within the current module (or class).

nametypedescription
nameStringto be found in this module (or class)

Returns: the module or null if no such module

get_name

String get_name ( ThreadContext context )
Java: getName(org.jruby.runtime.ThreadContext context)

Generate a fully-qualified class name or a #-style name for anonymous and singleton classes. Ruby C equivalent = "classname"

Returns: The generated class name

get_simple_name

String get_simple_name ( ThreadContext context )
Java: getSimpleName(org.jruby.runtime.ThreadContext context)

Get the "simple" name for the class, which is either the "base" name or the "anonymous" class name.

Returns: the "simple" name of the class

has_ancestor

boolean has_ancestor ( RubyModule type )
Java: hasAncestor(org.jruby.RubyModule type)

has_autoload

IRubyObject has_autoload ( ThreadContext context, String id_string, boolean inherit )
Java: hasAutoload(org.jruby.runtime.ThreadContext context, String idString, boolean inherit)

has_class_variable

boolean has_class_variable ( String name )
Java: hasClassVariable(String name)

has_constant

boolean has_constant ( String name )
Java: hasConstant(String name)

has_internal_module_variable

boolean has_internal_module_variable ( String name )
Java: hasInternalModuleVariable(String name)

Behaves similarly to #getClassVar(ThreadContext, String). Searches this class/module and its ancestors for the specified internal variable.

nametypedescription
nameStringthe internal variable name

Returns: the value of the specified internal variable if found, else null

has_module_in_hierarchy

boolean has_module_in_hierarchy ( RubyModule type )
Java: hasModuleInHierarchy(org.jruby.RubyModule type)

has_module_in_prepends

boolean has_module_in_prepends ( RubyModule type )
Java: hasModuleInPrepends(org.jruby.RubyModule type)

has_prepends?

boolean has_prepends? ( )
Java: hasPrepends() · also: has_prepends

hash

RubyFixnum hash ( ThreadContext context )
Java: hash(org.jruby.runtime.ThreadContext context)

hash_code

int hash_code ( )
Java: hashCode()

id_test

MethodHandle id_test ( )
Java: getIdTest() · also: get_id_test

include

T include ( ThreadContext context, RubyModule module )
Java: include(org.jruby.runtime.ThreadContext context, org.jruby.RubyModule module)

In Defining this type include a module. Note: This is for defining native extensions and differs from method of same name which is live include while executing Ruby code.

nametypedescription
moduleorg.jruby.RubyModuleto be included

Returns: itself for composable API

include

RubyModule include ( IRubyObject[] modules )
Java: include(org.jruby.runtime.builtin.IRubyObject[] modules)

include

RubyModule include ( ThreadContext context, IRubyObject[] modules )
Java: include(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] modules)

rb_mod_include

include

RubyModule include ( ThreadContext context, IRubyObject module )
Java: include(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject module)

include_module

include_module ( IRubyObject arg )
Java: includeModule(org.jruby.runtime.builtin.IRubyObject arg)

include_module

include_module ( ThreadContext context, IRubyObject arg )
Java: includeModule(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg)

Include a new module in this module or class.

nametypedescription
argorg.jruby.runtime.builtin.IRubyObjectThe module to include

include_p

IRubyObject include_p ( ThreadContext context, IRubyObject arg )
Java: include_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg)

included

IRubyObject included ( ThreadContext context, IRubyObject other )
Java: included(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject other)

included?

boolean included? ( )
Java: isIncluded() · also: is_included

Is this module one that in an included one (e.g. an IncludedModuleWrapper).

included_into_refinement?

boolean included_into_refinement? ( )
Java: isIncludedIntoRefinement() · also: is_included_into_refinement

included_modules

RubyArray included_modules ( ThreadContext context )
Java: included_modules(org.jruby.runtime.ThreadContext context)

rb_mod_included_modules

instance_method

IRubyObject instance_method ( ThreadContext context, IRubyObject symbol )
Java: instance_method(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject symbol)

instance_method

IRubyObject instance_method ( IRubyObject symbol )
Java: instance_method(org.jruby.runtime.builtin.IRubyObject symbol)

instance_methods

RubyArray instance_methods ( IRubyObject[] args, Visibility visibility, boolean obj, boolean not )
Java: instanceMethods(org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Visibility visibility, boolean obj, boolean not)

instance_methods

RubyArray instance_methods ( ThreadContext context, IRubyObject[] args, Visibility visibility, boolean obj, boolean not )
Java: instanceMethods(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args, org.jruby.runtime.Visibility visibility, boolean obj, boolean not)

instance_methods

RubyArray instance_methods ( Visibility visibility, boolean include_super, boolean obj, boolean not )
Java: instanceMethods(org.jruby.runtime.Visibility visibility, boolean includeSuper, boolean obj, boolean not)

instance_methods

RubyArray<?> instance_methods ( IRubyObject[] args )
Java: instance_methods(org.jruby.runtime.builtin.IRubyObject[] args)

instance_methods

RubyArray instance_methods ( ThreadContext context, IRubyObject[] args )
Java: instance_methods(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

instance_methods19

RubyArray<?> instance_methods19 ( IRubyObject[] args )
Java: instance_methods19(org.jruby.runtime.builtin.IRubyObject[] args)

invalidate_cache_descendants

invalidate_cache_descendants ( )
Java: invalidateCacheDescendants()

invalidate_method_cache

invalidate_method_cache ( ThreadContext context )
Java: invalidateMethodCache(org.jruby.runtime.ThreadContext context)

Invalidate the method cache of this class and all descendants under lock.

invalidator

Invalidator invalidator ( )
Java: getInvalidator() · also: get_invalidator

is_class_var_defined

boolean is_class_var_defined ( String name )
Java: isClassVarDefined(String name)

Is class var defined? Ruby C equivalent = "rb_cvar_defined"

nametypedescription
nameStringThe class var to determine "is defined?"

Returns: true if true, false if false

is_constant_defined

boolean is_constant_defined ( String name, boolean inherit )
Java: isConstantDefined(String name, boolean inherit)

is_constant_defined

boolean is_constant_defined ( String name )
Java: isConstantDefined(String name)

is_constant_defined

boolean is_constant_defined ( ThreadContext context, String name )
Java: isConstantDefined(org.jruby.runtime.ThreadContext context, String name)

is_instance

boolean is_instance ( IRubyObject object )
Java: isInstance(org.jruby.runtime.builtin.IRubyObject object)

is_kind_of_module

boolean is_kind_of_module ( RubyModule type )
Java: isKindOfModule(org.jruby.RubyModule type)

is_method_bound

boolean is_method_bound ( String name, boolean check_visibility )
Java: isMethodBound(String name, boolean checkVisibility)

MRI: rb_method_boundp

is_method_builtin

boolean is_method_builtin ( String method_name )
Java: isMethodBuiltin(String methodName)

Return true if the given method is defined on this class and is a builtin, i.e. a method built-in to JRuby and loaded during its core boot process.

java_proxy

boolean java_proxy ( )
Java: getJavaProxy() · also: get_java_proxy

Get whether this class is associated with (i.e. a proxy for) a normal Java class or interface.

java_proxy=

java_proxy= ( boolean java_proxy )
Java: setJavaProxy(boolean javaProxy) · also: set_java_proxy

Set whether this class is associated with (i.e. a proxy for) a normal Java class or interface.

kind_of

T kind_of ( RubyModule.KindOf kind_of )
Java: kindOf(org.jruby.RubyModule.KindOf kindOf)

Set the method for determining whether an Object is a kind of the supplied type.

nametypedescription
kind_oforg.jruby.RubyModule.KindOfmethod to determine kind-of status

Returns: itself for composblae API

method_added

IRubyObject method_added ( ThreadContext context, IRubyObject nothing )
Java: method_added(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject nothing)

method_defined_p

RubyBoolean method_defined_p ( ThreadContext context, IRubyObject symbol )
Java: method_defined_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject symbol)

method_defined_p

RubyBoolean method_defined_p ( ThreadContext context, IRubyObject symbol, IRubyObject include_super )
Java: method_defined_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject symbol, org.jruby.runtime.builtin.IRubyObject includeSuper)

method_location

RubyModule method_location ( )
Java: getMethodLocation() · also: get_method_location

method_location=

method_location= ( RubyModule module )
Java: setMethodLocation(org.jruby.RubyModule module) · also: set_method_location

method_removed

IRubyObject method_removed ( ThreadContext context, IRubyObject nothing )
Java: method_removed(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject nothing)

method_undefined

IRubyObject method_undefined ( ThreadContext context, IRubyObject nothing )
Java: method_undefined(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject nothing)

methods

Map<String,DynamicMethod> methods ( )
Java: getMethods() · also: get_methods

methods_for_write

Map<String,DynamicMethod> methods_for_write ( )
Java: getMethodsForWrite() · also: get_methods_for_write

mix

IRubyObject mix ( ThreadContext context, IRubyObject mod_arg )
Java: mix(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject modArg)

mix

IRubyObject mix ( ThreadContext context, IRubyObject mod_arg, IRubyObject hash0 )
Java: mix(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject modArg, org.jruby.runtime.builtin.IRubyObject hash0)

module_eval

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

module_eval

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

module_eval

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

module_eval

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

module_eval

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

module_exec

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

module_exec

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

module_function

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

name

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

name

IRubyObject name ( )
Java: name()

name

IRubyObject name ( ThreadContext context )
Java: name(org.jruby.runtime.ThreadContext context)

needs_implementer

boolean needs_implementer ( )
Java: needsImplementer()

new_method

IRubyObject new_method ( IRubyObject receiver, String method_name, boolean bound, Visibility visibility )
Java: newMethod(org.jruby.runtime.builtin.IRubyObject receiver, String methodName, boolean bound, org.jruby.runtime.Visibility visibility)

new_method

IRubyObject new_method ( IRubyObject receiver, String method_name, StaticScope refined_scope, boolean bound, Visibility visibility )
Java: newMethod(org.jruby.runtime.builtin.IRubyObject receiver, String methodName, org.jruby.parser.StaticScope refinedScope, boolean bound, org.jruby.runtime.Visibility visibility)

new_method

IRubyObject new_method ( IRubyObject receiver, String method_name, boolean bound, Visibility visibility, boolean respond_to_missing )
Java: newMethod(org.jruby.runtime.builtin.IRubyObject receiver, String methodName, boolean bound, org.jruby.runtime.Visibility visibility, boolean respondToMissing)

new_method

IRubyObject new_method ( IRubyObject receiver, String method_name, StaticScope scope, boolean bound, Visibility visibility, boolean respond_to_missing )
Java: newMethod(org.jruby.runtime.builtin.IRubyObject receiver, String methodName, org.jruby.parser.StaticScope scope, boolean bound, org.jruby.runtime.Visibility visibility, boolean respondToMissing)

new_method

IRubyObject new_method ( IRubyObject receiver, String method_name, boolean bound, Visibility visibility, boolean respond_to_missing, boolean priv )
Java: newMethod(org.jruby.runtime.builtin.IRubyObject receiver, String methodName, boolean bound, org.jruby.runtime.Visibility visibility, boolean respondToMissing, boolean priv)

new_method

IRubyObject new_method ( IRubyObject receiver, String method_name, StaticScope scope, boolean bound, Visibility visibility, boolean respond_to_missing, boolean priv )
Java: newMethod(org.jruby.runtime.builtin.IRubyObject receiver, String methodName, org.jruby.parser.StaticScope scope, boolean bound, org.jruby.runtime.Visibility visibility, boolean respondToMissing, boolean priv)

op_cmp

IRubyObject op_cmp ( ThreadContext context, IRubyObject obj )
Java: op_cmp(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj)

rb_mod_cmp

op_cmp

IRubyObject op_cmp ( IRubyObject obj )
Java: op_cmp(org.jruby.runtime.builtin.IRubyObject obj)

op_eqq

RubyBoolean op_eqq ( ThreadContext context, IRubyObject obj )
Java: op_eqq(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj)

rb_mod_eqq

op_equal

IRubyObject op_equal ( ThreadContext context, IRubyObject other )
Java: op_equal(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject other)

op_ge

IRubyObject op_ge ( IRubyObject obj )
Java: op_ge(org.jruby.runtime.builtin.IRubyObject obj)

op_ge

IRubyObject op_ge ( ThreadContext context, IRubyObject obj )
Java: op_ge(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj)

rb_mod_ge

op_gt

IRubyObject op_gt ( IRubyObject obj )
Java: op_gt(org.jruby.runtime.builtin.IRubyObject obj)

op_gt

IRubyObject op_gt ( ThreadContext context, IRubyObject obj )
Java: op_gt(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj)

rb_mod_gt

op_le

IRubyObject op_le ( IRubyObject arg )
Java: op_le(org.jruby.runtime.builtin.IRubyObject arg)

op_le

IRubyObject op_le ( ThreadContext context, IRubyObject arg )
Java: op_le(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg)

MRI: rb_class_inherited_p

op_lt

IRubyObject op_lt ( IRubyObject obj )
Java: op_lt(org.jruby.runtime.builtin.IRubyObject obj)

op_lt

IRubyObject op_lt ( ThreadContext context, IRubyObject obj )
Java: op_lt(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj)

rb_mod_lt

origin

RubyModule origin ( )
Java: getOrigin() · also: get_origin

In an included or prepended module what is the ACTUAL module it represents?

Returns: the actual module of an included/prepended module.

parent

RubyModule parent ( )
Java: getParent() · also: get_parent

parent=

parent= ( RubyModule parent )
Java: setParent(org.jruby.RubyModule parent) · also: set_parent

prepend

IRubyObject prepend ( ThreadContext context, IRubyObject[] modules )
Java: prepend(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] modules)

prepend_features

RubyModule prepend_features ( IRubyObject include )
Java: prepend_features(org.jruby.runtime.builtin.IRubyObject include)

prepend_features

RubyModule prepend_features ( ThreadContext context, IRubyObject include )
Java: prepend_features(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject include)

rb_mod_prepend_features

prepend_module

prepend_module ( RubyModule module )
Java: prependModule(org.jruby.RubyModule module)

prepend_module

prepend_module ( ThreadContext context, RubyModule module )
Java: prependModule(org.jruby.runtime.ThreadContext context, org.jruby.RubyModule module)

Prepend a new module to this module or class. MRI: rb_prepend_module

nametypedescription
moduleorg.jruby.RubyModuleThe module to include

prepended

IRubyObject prepended ( ThreadContext context, IRubyObject other )
Java: prepended(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject other)

prepended?

boolean prepended? ( )
Java: isPrepended() · also: is_prepended

private_class_method

RubyModule private_class_method ( IRubyObject[] args )
Java: private_class_method(org.jruby.runtime.builtin.IRubyObject[] args)

private_class_method

RubyModule private_class_method ( ThreadContext context, IRubyObject[] args )
Java: private_class_method(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

private_constant

IRubyObject private_constant ( ThreadContext context, IRubyObject name )
Java: private_constant(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject name)

private_constant

IRubyObject private_constant ( ThreadContext context, IRubyObject[] ruby_names )
Java: private_constant(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] rubyNames)

private_instance_methods

RubyArray private_instance_methods ( IRubyObject[] args )
Java: private_instance_methods(org.jruby.runtime.builtin.IRubyObject[] args)

private_instance_methods

RubyArray private_instance_methods ( ThreadContext context, IRubyObject[] args )
Java: private_instance_methods(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

rb_class_private_instance_methods

private_method_defined

IRubyObject private_method_defined ( ThreadContext context, IRubyObject symbol )
Java: private_method_defined(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject symbol)

private_method_defined

IRubyObject private_method_defined ( ThreadContext context, IRubyObject symbol, IRubyObject include_super )
Java: private_method_defined(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject symbol, org.jruby.runtime.builtin.IRubyObject includeSuper)

protected_instance_methods

RubyArray protected_instance_methods ( IRubyObject[] args )
Java: protected_instance_methods(org.jruby.runtime.builtin.IRubyObject[] args)

protected_instance_methods

RubyArray protected_instance_methods ( ThreadContext context, IRubyObject[] args )
Java: protected_instance_methods(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

rb_class_protected_instance_methods

protected_method_defined

IRubyObject protected_method_defined ( ThreadContext context, IRubyObject symbol )
Java: protected_method_defined(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject symbol)

protected_method_defined

IRubyObject protected_method_defined ( ThreadContext context, IRubyObject symbol, IRubyObject include_super )
Java: protected_method_defined(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject symbol, org.jruby.runtime.builtin.IRubyObject includeSuper)

public_class_method

RubyModule public_class_method ( IRubyObject[] args )
Java: public_class_method(org.jruby.runtime.builtin.IRubyObject[] args)

public_class_method

RubyModule public_class_method ( ThreadContext context, IRubyObject[] args )
Java: public_class_method(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

public_const_defined_from

boolean public_const_defined_from ( String name )
Java: publicConstDefinedFrom(String name)

public_const_defined_from

boolean public_const_defined_from ( ThreadContext context, String name )
Java: publicConstDefinedFrom(org.jruby.runtime.ThreadContext context, String name)

public_constant

IRubyObject public_constant ( ThreadContext context, IRubyObject name )
Java: public_constant(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject name)

public_constant

IRubyObject public_constant ( ThreadContext context, IRubyObject[] ruby_names )
Java: public_constant(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] rubyNames)

public_instance_method

IRubyObject public_instance_method ( IRubyObject symbol )
Java: public_instance_method(org.jruby.runtime.builtin.IRubyObject symbol)

public_instance_method

IRubyObject public_instance_method ( ThreadContext context, IRubyObject symbol )
Java: public_instance_method(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject symbol)

public_instance_methods

RubyArray<?> public_instance_methods ( IRubyObject[] args )
Java: public_instance_methods(org.jruby.runtime.builtin.IRubyObject[] args)

public_instance_methods

RubyArray public_instance_methods ( ThreadContext context, IRubyObject[] args )
Java: public_instance_methods(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

public_instance_methods19

RubyArray<?> public_instance_methods19 ( IRubyObject[] args )
Java: public_instance_methods19(org.jruby.runtime.builtin.IRubyObject[] args)

public_method_defined

IRubyObject public_method_defined ( ThreadContext context, IRubyObject symbol )
Java: public_method_defined(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject symbol)

public_method_defined

IRubyObject public_method_defined ( ThreadContext context, IRubyObject symbol, IRubyObject include_super )
Java: public_method_defined(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject symbol, org.jruby.runtime.builtin.IRubyObject includeSuper)

put_alias

put_alias ( String id, DynamicMethod method, String old_name )
Java: putAlias(String id, org.jruby.internal.runtime.methods.DynamicMethod method, String oldName)

put_alias

put_alias ( ThreadContext context, String id, DynamicMethod method, String old_name )
Java: putAlias(org.jruby.runtime.ThreadContext context, String id, org.jruby.internal.runtime.methods.DynamicMethod method, String oldName)

Note: Internal API - only public as its used by generated code!

Note: Used by AnnotationBinder.

Note: Not safe for target methods that super, since the frame class will not reflect original source.

put_alias

put_alias ( String id, CacheEntry entry, String old_name )
Java: putAlias(String id, org.jruby.runtime.callsite.CacheEntry entry, String oldName)

put_alias

put_alias ( ThreadContext context, String id, CacheEntry entry, String old_name )
Java: putAlias(org.jruby.runtime.ThreadContext context, String id, org.jruby.runtime.callsite.CacheEntry entry, String oldName)

Alias the method contained in the given CacheEntry as a new entry in this module.

put_method

DynamicMethod put_method ( Ruby runtime, String id, DynamicMethod method )
Java: putMethod(org.jruby.Ruby runtime, String id, org.jruby.internal.runtime.methods.DynamicMethod method)

put_method

DynamicMethod put_method ( ThreadContext context, String id, DynamicMethod method )
Java: putMethod(org.jruby.runtime.ThreadContext context, String id, org.jruby.internal.runtime.methods.DynamicMethod method)

Note: Internal API - only public as its used by generated code!

nametypedescription
contextorg.jruby.runtime.ThreadContextthe current thread context
idStringidentifier string (8859_1). Matching entry in symbol table.

Returns: method

rb_private

IRubyObject rb_private ( ThreadContext context, IRubyObject[] args )
Java: rbPrivate(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

rb_protected

IRubyObject rb_protected ( ThreadContext context, IRubyObject[] args )
Java: rbProtected(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

rb_public

IRubyObject rb_public ( ThreadContext context, IRubyObject[] args )
Java: rbPublic(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

refine

IRubyObject refine ( ThreadContext context, IRubyObject klass, Block block )
Java: refine(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject klass, org.jruby.runtime.Block block)

refined_class

IRubyObject refined_class ( ThreadContext context )
Java: refined_class(org.jruby.runtime.ThreadContext context)

refinement?

boolean refinement? ( )
Java: isRefinement() · also: is_refinement

refinements

IRubyObject refinements ( ThreadContext context )
Java: refinements(org.jruby.runtime.ThreadContext context)

refinements

Map<RubyModule,RubyModule> refinements ( )
Java: getRefinements() · also: get_refinements

refinements=

refinements= ( Map<RubyModule,RubyModule> refinements )
Java: setRefinements(Map<org.jruby.RubyModule,org.jruby.RubyModule> refinements) · also: set_refinements

refinements_for_write

Map<RubyModule,RubyModule> refinements_for_write ( )
Java: getRefinementsForWrite() · also: get_refinements_for_write

remove_class_provider

remove_class_provider ( ClassProvider provider )
Java: removeClassProvider(org.jruby.util.ClassProvider provider)

remove_class_variable

IRubyObject remove_class_variable ( ThreadContext context, IRubyObject name )
Java: remove_class_variable(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject name)

rb_mod_remove_cvar

remove_class_variable

IRubyObject remove_class_variable ( String name )
Java: removeClassVariable(String name)

remove_class_variable

IRubyObject remove_class_variable ( ThreadContext context, String name )
Java: removeClassVariable(org.jruby.runtime.ThreadContext context, String name)

remove_class_variable19

IRubyObject remove_class_variable19 ( ThreadContext context, IRubyObject name )
Java: remove_class_variable19(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject name)

remove_const

IRubyObject remove_const ( ThreadContext context, IRubyObject ruby_name )
Java: remove_const(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject rubyName)

remove_method

remove_method ( ThreadContext context, String id )
Java: removeMethod(org.jruby.runtime.ThreadContext context, String id)

remove_method

RubyModule remove_method ( ThreadContext context, IRubyObject[] args )
Java: remove_method(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

resolve_refined_method

CacheEntry resolve_refined_method ( RubyModule overlay, CacheEntry entry, String id )
Java: resolveRefinedMethod(org.jruby.RubyModule overlay, org.jruby.runtime.callsite.CacheEntry entry, String id)

resolve_undef_constant

IRubyObject resolve_undef_constant ( String name )
Java: resolveUndefConstant(String name)

responds_to_method

boolean responds_to_method ( String name, boolean check_visibility, StaticScope scope )
Java: respondsToMethod(String name, boolean checkVisibility, org.jruby.parser.StaticScope scope)

responds_to_method

boolean responds_to_method ( String name, boolean check_visibility )
Java: respondsToMethod(String name, boolean checkVisibility)

retrieve_method

DynamicMethod retrieve_method ( String name )
Java: retrieveMethod(String name)

Search through this module and supermodules for method definitions. Cache superclass definitions in this class.

nametypedescription
nameStringThe name of the method to search for

Returns: The method, or UndefinedMethod if not found

ruby2_keywords

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

ruby_base_name

RubyString ruby_base_name ( )
Java: rubyBaseName()

ruby_base_name

RubyString ruby_base_name ( ThreadContext context )
Java: rubyBaseName(org.jruby.runtime.ThreadContext context)

ruby_name

RubyString ruby_name ( )
Java: rubyName()

ruby_name

RubyString ruby_name ( ThreadContext context )
Java: rubyName(org.jruby.runtime.ThreadContext context)

Generate a fully-qualified class name or a #-style name for anonymous and singleton classes which is properly encoded. The returned string is always frozen.

Returns: a properly encoded class name. Note: getId() is only really valid for ASCII values. This should be favored over using it.

search_internal_module_variable

IRubyObject search_internal_module_variable ( String name )
Java: searchInternalModuleVariable(String name)

Behaves similarly to #getClassVar(ThreadContext, String). Searches this class/module and its ancestors for the specified internal variable.

nametypedescription
nameStringthe internal variable name

Returns: the value of the specified internal variable if found, else null

search_method

DynamicMethod search_method ( String name )
Java: searchMethod(String name)

Search through this module and supermodules for method definitions. Cache superclass definitions in this class.

nametypedescription
nameStringThe name of the method to search for

Returns: The method, or UndefinedMethod if not found

search_method_entry_inner

CacheEntry search_method_entry_inner ( String id )
Java: searchMethodEntryInner(String id)

search_method_inner

DynamicMethod search_method_inner ( String id )
Java: searchMethodInner(String id)

search_with_cache

CacheEntry search_with_cache ( String name )
Java: searchWithCache(String name)

Search for the named method in this class and in superclasses, and if found return the CacheEntry representing the method and this class's serial number. MRI: method_entry_get

nametypedescription
nameStringthe method name

Returns: the CacheEntry corresponding to the method and this class's serial number

search_with_cache

CacheEntry search_with_cache ( String id, boolean cache_undef )
Java: searchWithCache(String id, boolean cacheUndef)

search_with_refinements

CacheEntry search_with_refinements ( String name, StaticScope refined_scope )
Java: searchWithRefinements(String name, org.jruby.parser.StaticScope refinedScope)

Search for the named method in this class and in superclasses applying refinements from the given scope. If found return the method; otherwise, return UndefinedMethod.

nametypedescription
nameStringthe method name
refined_scopeorg.jruby.parser.StaticScopethe scope containing refinements to search

Returns: the method or UndefinedMethod

set_class_var

IRubyObject set_class_var ( String name, IRubyObject value )
Java: setClassVar(String name, org.jruby.runtime.builtin.IRubyObject value)

set_class_var

IRubyObject set_class_var ( ThreadContext context, String name, IRubyObject value )
Java: setClassVar(org.jruby.runtime.ThreadContext context, String name, org.jruby.runtime.builtin.IRubyObject value)

Set the named class variable to the given value, provided freeze allows setting it. Ruby C equivalent = "rb_cvar_set"

nametypedescription
nameStringThe variable name to set
valueorg.jruby.runtime.builtin.IRubyObjectThe value to set it to

set_constant

IRubyObject set_constant ( String name, IRubyObject value )
Java: setConstant(String name, org.jruby.runtime.builtin.IRubyObject value)

set_constant

IRubyObject set_constant ( ThreadContext context, String name, IRubyObject value )
Java: setConstant(org.jruby.runtime.ThreadContext context, String name, org.jruby.runtime.builtin.IRubyObject value)

Set the named constant on this module. Also, if the value provided is another Module and that module has not yet been named, assign it the specified name.

nametypedescription
nameStringThe name to assign
valueorg.jruby.runtime.builtin.IRubyObjectThe value to assign to it; if an unnamed Module, also set its basename to name

Returns: The result of setting the variable.

set_constant

IRubyObject set_constant ( String name, IRubyObject value, String file, int line )
Java: setConstant(String name, org.jruby.runtime.builtin.IRubyObject value, String file, int line)

set_constant

IRubyObject set_constant ( ThreadContext context, String name, IRubyObject value, String file, int line )
Java: setConstant(org.jruby.runtime.ThreadContext context, String name, org.jruby.runtime.builtin.IRubyObject value, String file, int line)

set_constant

IRubyObject set_constant ( String name, IRubyObject value, boolean hidden )
Java: setConstant(String name, org.jruby.runtime.builtin.IRubyObject value, boolean hidden)

set_constant

IRubyObject set_constant ( ThreadContext context, String name, IRubyObject value, boolean hidden )
Java: setConstant(org.jruby.runtime.ThreadContext context, String name, org.jruby.runtime.builtin.IRubyObject value, boolean hidden)

set_constant_quiet

IRubyObject set_constant_quiet ( String name, IRubyObject value )
Java: setConstantQuiet(String name, org.jruby.runtime.builtin.IRubyObject value)

set_constant_quiet

IRubyObject set_constant_quiet ( ThreadContext context, String name, IRubyObject value )
Java: setConstantQuiet(org.jruby.runtime.ThreadContext context, String name, org.jruby.runtime.builtin.IRubyObject value)

Set the named constant on this module. Also, if the value provided is another Module and that module has not yet been named, assign it the specified name. This version does not warn if the constant has already been set.

nametypedescription
nameStringThe name to assign
valueorg.jruby.runtime.builtin.IRubyObjectThe value to assign to it; if an unnamed Module, also set its basename to name

Returns: The result of setting the variable.

set_constant_visibility

set_constant_visibility ( Ruby runtime, String name, boolean hidden )
Java: setConstantVisibility(org.jruby.Ruby runtime, String name, boolean hidden)

set_constant_visibility

set_constant_visibility ( ThreadContext context, String name, boolean hidden )
Java: setConstantVisibility(org.jruby.runtime.ThreadContext context, String name, boolean hidden)

set_internal_module_variable

set_internal_module_variable ( String name, IRubyObject value )
Java: setInternalModuleVariable(String name, org.jruby.runtime.builtin.IRubyObject value)

Behaves similarly to #setClassVar(ThreadContext, String, IRubyObject). If the specified internal variable is found in this class/module or an ancestor, it is set where found. Otherwise it is set in this module.

nametypedescription
nameStringthe internal variable name
valueorg.jruby.runtime.builtin.IRubyObjectthe internal variable value

set_method_visibility

set_method_visibility ( IRubyObject[] methods, Visibility visibility )
Java: setMethodVisibility(org.jruby.runtime.builtin.IRubyObject[] methods, org.jruby.runtime.Visibility visibility)

set_method_visibility

set_method_visibility ( ThreadContext context, IRubyObject[] methods, Visibility visibility )
Java: setMethodVisibility(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] methods, org.jruby.runtime.Visibility visibility)

set_method_visibility

set_temporary_name

IRubyObject set_temporary_name ( ThreadContext context, IRubyObject arg )
Java: set_temporary_name(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg)

simple_name

String simple_name ( )
Java: getSimpleName() · also: get_simple_name

singleton_class_p

IRubyObject singleton_class_p ( ThreadContext context )
Java: singleton_class_p(org.jruby.runtime.ThreadContext context)

store_class_variable

IRubyObject store_class_variable ( String name, IRubyObject value )
Java: storeClassVariable(String name, org.jruby.runtime.builtin.IRubyObject value)

store_class_variable

IRubyObject store_class_variable ( ThreadContext context, String name, IRubyObject value )
Java: storeClassVariable(org.jruby.runtime.ThreadContext context, String name, org.jruby.runtime.builtin.IRubyObject value)

store_constant

IRubyObject store_constant ( String name, IRubyObject value )
Java: storeConstant(String name, org.jruby.runtime.builtin.IRubyObject value)

store_constant

IRubyObject store_constant ( ThreadContext context, String name, IRubyObject value )
Java: storeConstant(org.jruby.runtime.ThreadContext context, String name, org.jruby.runtime.builtin.IRubyObject value)

store_constant

IRubyObject store_constant ( String name, IRubyObject value, boolean hidden, String file, int line )
Java: storeConstant(String name, org.jruby.runtime.builtin.IRubyObject value, boolean hidden, String file, int line)

store_constant

IRubyObject store_constant ( ThreadContext context, String name, IRubyObject value, boolean hidden, String file, int line )
Java: storeConstant(org.jruby.runtime.ThreadContext context, String name, org.jruby.runtime.builtin.IRubyObject value, boolean hidden, String file, int line)

store_constant

IRubyObject store_constant ( String name, IRubyObject value, boolean hidden )
Java: storeConstant(String name, org.jruby.runtime.builtin.IRubyObject value, boolean hidden)

super_class

RubyClass super_class ( )
Java: getSuperClass() · also: get_super_class

Getter for property superClass.

Returns: Value of property superClass.

super_class

RubyClass super_class ( )
Java: superClass()

Get this module/class super class.

Returns: the super class

super_class

T super_class ( RubyClass super_class )
Java: superClass(org.jruby.RubyClass superClass)

Set this module/class super class.

nametypedescription
super_classorg.jruby.RubyClassto be set

Returns: itself for composable API

super_class=

super_class= ( RubyClass super_class )
Java: setSuperClass(org.jruby.RubyClass superClass) · also: set_super_class
Deprecated. Use RubyModule#superClass(RubyClass) instead.

symbol_name

RubySymbol symbol_name ( )
Java: symbolName()

symbol_name

RubySymbol symbol_name ( ThreadContext context )
Java: symbolName(org.jruby.runtime.ThreadContext context)

Generate a fully-qualified class name or a #-style name as a Symbol. If any element of the path is anonymous, returns null.

Returns: a properly encoded non-anonymous class path as a Symbol, or null.

sync_class_variables

sync_class_variables ( RubyModule other )
Java: syncClassVariables(org.jruby.RubyModule other)

sync_constants

sync_constants ( RubyModule other )
Java: syncConstants(org.jruby.RubyModule other)

synchronized?

boolean synchronized? ( )
Java: isSynchronized() · also: is_synchronized

tap

T tap ( Consumer<T> consumer )
Java: tap(java.util.function.Consumer<T> consumer)

Provide itself to a lambda then return itself.

nametypedescription
consumerjava.util.function.Consumer<T>to be given this

Returns: this

target

IRubyObject target ( ThreadContext context )
Java: target(org.jruby.runtime.ThreadContext context)

to_s

RubyString to_s ( )
Java: to_s()

to_s

IRubyObject to_s ( ThreadContext context )
Java: to_s(org.jruby.runtime.ThreadContext context)

rb_mod_to_s

undef

undef ( ThreadContext context, String name )
Java: undef(org.jruby.runtime.ThreadContext context, String name)

rb_undef

undef_method

RubyModule undef_method ( ThreadContext context, IRubyObject[] args )
Java: undef_method(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] args)

undef_methods

T undef_methods ( ThreadContext context, String[] names )
Java: undefMethods(org.jruby.runtime.ThreadContext context, String[] names)

Undefine a method from this type.

nametypedescription
namesString[]the methods to undefine

Returns: this type for composable API

undefine_method

undefine_method ( String name )
Java: undefineMethod(String name)
Deprecated. Use RubyModule#undefMethods(ThreadContext, String...) instead.

undefined_instance_method

IRubyObject undefined_instance_method ( ThreadContext context )
Java: undefined_instance_method(org.jruby.runtime.ThreadContext context)

update_generation

update_generation ( )
Java: updateGeneration()

used_modules

IRubyObject used_modules ( ThreadContext context )
Java: used_modules(org.jruby.runtime.ThreadContext context)

used_refinements

IRubyObject used_refinements ( ThreadContext context )
Java: used_refinements(org.jruby.runtime.ThreadContext context)

using

IRubyObject using ( ThreadContext context, IRubyObject refined_module )
Java: using(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject refinedModule)

using_temporary_name

boolean using_temporary_name ( )
Java: usingTemporaryName()