jruby/docs BETA
Navigation
org.jruby 120
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 RubyBasicObject
C RubyBignum
C RubyBinding
C RubyBoolean
C RubyChain
C RubyClass
C RubyClassPathVariable
C RubyComparable
C RubyComplex
C RubyConcurrencyError
C RubyContinuation
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 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
RubyString — members 474+
F NULL_ARRAY() RubyString[]
C new(runtime, ruby_class)
C new(runtime, ruby_class, value)
C new(runtime, ruby_class, value, enc)
C new(runtime, ruby_class, value)
C new(runtime, ruby_class, value)
C new(runtime, ruby_class, value, object_space)
C new(runtime, ruby_class, value, encoding, object_space)
M append(other, convert) RubyString
M append(other) RubyString
M append(other) RubyString
M append19(other) RubyString
M append_as_bytes(context, args) IRubyObject
M append_as_bytes(context) IRubyObject
M append_as_bytes(context, arg0) IRubyObject
M append_as_dynamic_string(other) RubyString
M append_as_string_or_any(other) RubyString
C append_into_string(target)
M as_java_string() String
M as_string() RubyString
M ascii_only?() boolean
M ascii_only_p(context) IRubyObject
C associate_encoding(enc)
M at_char_boundary(bytes, s, p, e, enc) boolean
M b(context) IRubyObject
M broken_string?() boolean
M byte_list() ByteList
M byte_list_to_string(bytes) String
M byteindex(context, arg0) IRubyObject
M byteindex(context, arg0, arg1) IRubyObject
M byterindex(context, arg0) IRubyObject
M byterindex(context, arg0, arg1) IRubyObject
M bytes(context, block) IRubyObject
M bytes() byte[]
M bytes_to_string(bytes, beg, len) String
M bytes_to_string(bytes) String
M bytesize(context) RubyFixnum
M bytesize() RubyFixnum
M byteslice(context, arg1, arg2) IRubyObject
M byteslice(context, arg) IRubyObject
M bytesplice(context, args) IRubyObject
M bytesplice(context, arg0, arg1) IRubyObject
M bytesplice(context, arg0, arg1, arg2) IRubyObject
M capacity() int
M capitalize(context) RubyString
M capitalize(context, arg) RubyString
M capitalize(context, arg0, arg1) RubyString
M capitalize_bang(context) IRubyObject
M capitalize_bang(context, arg) IRubyObject
M capitalize_bang(context, arg0, arg1) IRubyObject
M casecmp(context, other) IRubyObject
M casecmp_p(context, other) IRubyObject
M cat(str) RubyString
M cat(str, beg, len) RubyString
M cat(other, code_range) RubyString
M cat(str) RubyString
M cat(str) RubyString
M cat(ch) RubyString
M cat(ch) RubyString
M cat(code, enc) RubyString
M cat(bytes, p, len, enc) int
M cat19(str2) RubyString
M cat19(other, code_range) int
M cat_ascii(bytes, ptr, ptr_len) RubyString
M cat_string(str) RubyString
M cat_string_unsafe(str) RubyString
M cat_with_code_range(str2) RubyString
M cat_with_code_range(other, code_range) int
M center(arg0) IRubyObject
M center(context, arg0) IRubyObject
M center(arg0, arg1) IRubyObject
M center(context, arg0, arg1) IRubyObject
M char_at(offset) char
M chars(context, block) IRubyObject
M check_encoding(other) Encoding
M check_encoding(other) Encoding
M check_encoding(runtime, str1, str2) Encoding
C check_frozen()
M check_string_type() IRubyObject
M chill() RubyString
M chill_symbol_string() RubyString
M chomp(context) RubyString
M chomp(context, arg0) RubyString
M chomp19(context) RubyString
M chomp19(context, arg0) RubyString
M chomp_bang(context) IRubyObject
M chomp_bang(context, arg0) IRubyObject
M chomp_bang19(context) IRubyObject
M chomp_bang19(context, arg0) IRubyObject
M chop(context) IRubyObject
M chop_bang(context) IRubyObject
M chr(context) IRubyObject
M clear() RubyString
M clear(context) RubyString
C clear_code_range()
M code_range() int
C code_range=(code_range)
M code_range_ascii_only?() boolean
M code_range_broken?() boolean
M code_range_valid?() boolean
M codepoints(context, block) IRubyObject
M compare_to(other) int
M concat(context, obj) RubyString
M concat(context, objs) RubyString
M concat(other) RubyString
M concat_single(context, other) RubyString
M convert_to_string() RubyString
M count(context) IRubyObject
M count(context, arg) IRubyObject
M count(context, args) IRubyObject
M create_string_class(context, object, comparable) RubyClass
M crypt(context, other) RubyString
M decode_string() String
M delete(context) IRubyObject
M delete(context, arg) IRubyObject
M delete(context, args) IRubyObject
M delete_bang(context) IRubyObject
M delete_bang(context, arg) IRubyObject
M delete_bang(context, args) IRubyObject
M delete_prefix(context, prefix) IRubyObject
M delete_prefix_bang(context, prefix) IRubyObject
M delete_suffix(context, suffix) IRubyObject
M delete_suffix_bang(context, suffix) IRubyObject
M do_clone() IRubyObject
M downcase(context) RubyString
M downcase(context, arg) RubyString
M downcase(context, arg0, arg1) RubyString
M downcase_bang(context) IRubyObject
M downcase_bang(context, arg) IRubyObject
M downcase_bang(context, arg0, arg1) IRubyObject
M dump() IRubyObject
M dump(context) IRubyObject
M dup() IRubyObject
M dup(context) IRubyObject
M dup_as_chilled(runtime, clazz, file, line) RubyString
M dup_as_f_string(runtime) FString
M dup_frozen() IRubyObject
M each_byte(context, block) IRubyObject
M each_char(context, block) IRubyObject
M each_codepoint(context, block) IRubyObject
M each_grapheme_cluster(context, block) IRubyObject
M each_line(context, block) IRubyObject
M each_line(context, arg, block) IRubyObject
M each_line(context, arg, opts, block) IRubyObject
M each_line_common(context, sep, block) IRubyObject
C empty()
M empty?() boolean
M empty_p(context) RubyBoolean
M enc_str_scrub(context, enc, repl, block) IRubyObject
M enc_str_scrub(context, enc, repl, cr, block) IRubyObject
M encode(context) IRubyObject
M encode(context, arg) IRubyObject
M encode(context, to_encoding, arg) IRubyObject
M encode(context, to_encoding, forced_encoding, opts) IRubyObject
M encode_bang(context) IRubyObject
M encode_bang(context, arg0) IRubyObject
M encode_bang(context, arg0, arg1) IRubyObject
M encode_bang(context, arg0, arg1, arg2) IRubyObject
M encode_bang(context, args) IRubyObject
M encode_bytelist(value, encoding) ByteList
M encoding() Encoding
M encoding(context) IRubyObject
C encoding=(encoding)
M end_with_p(context) IRubyObject
M end_with_p(context, arg) IRubyObject
M end_with_p(context, args) IRubyObject
M ends_with_ascii_char(c) boolean
C ensure_available(context, extra_length)
C ensure_instance_variables_settable()
M eql(other) boolean
M equals(other) boolean
M export(context) RubyString
M force_encoding(context, enc) IRubyObject
M freeze(context) IRubyObject
M get_empty_byte_list(enc) EmptyByteListHolder
M getbyte(context, index) IRubyObject
M grapheme_clusters(context, block) IRubyObject
M gsub(context, arg0, block) IRubyObject
M gsub(context, arg0, arg1, block) IRubyObject
M gsub_bang(context, arg0, block) IRubyObject
M gsub_bang(context, arg0, arg1, block) IRubyObject
M gsub_fast(context, regexp, repl, block) RubyString
M has_nul?() boolean
M hash(context) RubyFixnum
M hash_code() int
M hex(context) IRubyObject
M include_p(context, obj) RubyBoolean
M include_range(context, _beg, _end, _val, exclusive) IRubyObject
M independent() boolean
M index(context, arg0) IRubyObject
M index(context, arg0, arg1) IRubyObject
M initialize(context) IRubyObject
M initialize(context, arg0) IRubyObject
M initialize(context, arg0, opts) IRubyObject
M initialize_copy(other) RubyString
M initialize_copy(context, other) RubyString
M insert(context, index_arg, arg) IRubyObject
M inspect() RubyString
M inspect(context) IRubyObject
M inspect(runtime, byte_list) RubyString
M inspect(context, byte_list) RubyString
M intern() RubySymbol
M intern(context) RubySymbol
M is_bare(runtime) boolean
M is_bare(context) boolean
M java_class() Class
C keep_code_range()
M length() int
M lines(context, block) IRubyObject
M lines(context, arg, block) IRubyObject
M lines(context, arg, opts, block) IRubyObject
M ljust(arg0) IRubyObject
M ljust(context, arg0) IRubyObject
M ljust(arg0, arg1) IRubyObject
M ljust(context, arg0, arg1) IRubyObject
M lstrip(context) IRubyObject
M lstrip_bang(context) IRubyObject
M make_independent() RubyString
M make_independent(length) RubyString
M make_shared(runtime, index, len) RubyString
M make_shared(runtime, meta, index, len) RubyString
M make_shared_string(runtime, index, len) RubyString
M marshal_encoding() Encoding
M match(context, pattern) IRubyObject
M match(context, pattern, block) IRubyObject
M match(context, pattern, pos, block) IRubyObject
M match(context, args, block) IRubyObject
M match19(context, pattern) IRubyObject
M match19(context, pattern, pos, block) IRubyObject
M match19(context, args, block) IRubyObject
M match_p(context, pattern) IRubyObject
M match_p(context, pattern, pos) IRubyObject
M minus_at(context) IRubyObject
C modify()
C modify(length)
C modify19()
C modify_and_clear_code_range()
C modify_and_keep_code_range()
C modify_check()
C modify_check(b, len)
C modify_expand(length)
M native_class_index() ClassIndex
M new_allocated_string(runtime, meta_class) RubyString
M new_binary_string(runtime, str) RubyString
M new_binary_string(runtime, str) RubyString
M new_chilled_string(runtime, bytes, coderange, file, line) RubyString
M new_debug_chilled_string(runtime, ruby_class, value, cr, file, line) RubyString
M new_debug_frozen_string(runtime, ruby_class, value, cr, file, line) RubyString
M new_empty_binary_string(runtime) RubyString
M new_empty_string(runtime) RubyString
M new_empty_string(runtime, meta_class) RubyString
M new_empty_string(runtime, meta_class, enc) RubyString
M new_empty_string(runtime, enc) RubyString
M new_external_string_with_encoding(runtime, string, encoding) RubyString
M new_f_string(runtime, content) RubyString
M new_frozen() RubyString
M new_instance(recv, args, block) RubyString
M new_internal_from_java_external(runtime, str) RubyString
M new_string(s) RubyString
M new_string(s) RubyString
M new_string(runtime, clazz, str) RubyString
M new_string(runtime, str) RubyString
M new_string(runtime, str, encoding) RubyString
M new_string(runtime, str) RubyString
M new_string(runtime, str, encoding) RubyString
M new_string(runtime, bytes) RubyString
M new_string(runtime, bytes, start, length) RubyString
M new_string(runtime, bytes, start, length, encoding) RubyString
M new_string(runtime, bytes) RubyString
M new_string(runtime, bytes, coderange) RubyString
M new_string(runtime, bytes, encoding) RubyString
M new_string_light(runtime, bytes) RubyString
M new_string_light(runtime, size) RubyString
M new_string_light(runtime, size, encoding) RubyString
M new_string_no_copy(runtime, bytes, start, length, encoding) RubyString
M new_string_no_copy(runtime, bytes) RubyString
M new_string_no_copy(runtime, clazz, bytes) RubyString
M new_string_no_copy(runtime, bytes, start, length) RubyString
M new_string_no_copy(runtime, bytes) RubyString
M new_string_no_copy(runtime, clazz, bytes, enc, cr) RubyString
M new_string_no_copy(runtime, bytes, enc, cr) RubyString
M new_string_shared(runtime, orig) RubyString
M new_string_shared(runtime, bytes) RubyString
M new_string_shared(runtime, bytes, encoding) RubyString
M new_string_shared(runtime, bytes, code_range) RubyString
M new_string_shared(runtime, clazz, bytes) RubyString
M new_string_shared(runtime, clazz, bytes, encoding) RubyString
M new_string_shared(runtime, bytes) RubyString
M new_string_shared(runtime, bytes, encoding) RubyString
M new_string_shared(runtime, bytes, start, length) RubyString
M new_string_shared(runtime, bytes, start, length, encoding) RubyString
M new_unicode_string(runtime, str) RubyString
M new_unicode_string(runtime, str) RubyString
M new_us_ascii_string_no_copy(runtime, bytes) RubyString
M new_us_ascii_string_shared(runtime, bytes) RubyString
M new_us_ascii_string_shared(runtime, bytes, start, length) RubyString
M new_usascii_string(runtime, str) RubyString
M new_utf16_string(runtime, str) RubyString
M new_utf16_string(runtime, str) RubyString
M new_utf8_string(runtime, str) RubyString
M new_utf8_string(runtime, str) RubyString
M obj_as_string(context, obj) RubyString
M oct(context) IRubyObject
M op_aref(context, arg) IRubyObject
M op_aref(context, arg1, arg2) IRubyObject
M op_aset(context, arg0, arg1) IRubyObject
M op_aset(context, arg0, arg1, arg2) IRubyObject
M op_cmp(context, other) IRubyObject
M op_cmp(other) int
M op_equal(context, other) IRubyObject
M op_format(context, arg) RubyString
M op_ge(context, other) IRubyObject
M op_ge19(context, other) IRubyObject
M op_gt(context, other) IRubyObject
M op_gt19(context, other) IRubyObject
M op_le(context, other) IRubyObject
M op_le19(context, other) IRubyObject
M op_lt(context, other) IRubyObject
M op_lt19(context, other) IRubyObject
M op_match(context, other) IRubyObject
M op_mul(context, other) IRubyObject
M op_mul19(context, other) IRubyObject
M op_plus(context, arg) IRubyObject
M op_plus19(context, arg) IRubyObject
M ord(context) IRubyObject
M partition(context, block) IRubyObject
M partition(context, arg, block) IRubyObject
M plus_at() IRubyObject
M plus_at(context) IRubyObject
M prepend(context, other) IRubyObject
M prepend(context, objs) IRubyObject
M prepend(ch) RubyString
M prepend(ch) RubyString
M rb_str_escape(context, str) IRubyObject
M rb_str_offset(pos) int
C read_length=(length)
M replace(other) IRubyObject
M replace(context, other) RubyString
M replace19(other) RubyString
C resize(size)
M reverse(context) IRubyObject
M reverse19(context) IRubyObject
M reverse_bang(context) RubyString
M reverse_bang19(context) RubyString
M rindex(context, arg0) IRubyObject
M rindex(context, arg0, arg1) IRubyObject
M rjust(arg0) IRubyObject
M rjust(context, arg0) IRubyObject
M rjust(arg0, arg1) IRubyObject
M rjust(context, arg0, arg1) IRubyObject
M rpartition(context, arg) IRubyObject
M rstrip(context) IRubyObject
M rstrip_bang(context) IRubyObject
M ruby_length(context) RubyFixnum
M scan(context, pat, block) IRubyObject
M scan_for_code_range() int
M scan_for_code_range(bytes) int
M scrub(context, block) IRubyObject
M scrub(context, repl, block) IRubyObject
M scrub_bang(context, block) IRubyObject
M scrub_bang(context, repl, block) IRubyObject
C set_byte_list_shared()
C set_encoding_and_code_range(enc, cr)
M setbyte(context, index, val) IRubyObject
M should_marshal_encoding() boolean
M singleton_class(context) RubyClass
M size() int
M slice_bang(context, arg0) IRubyObject
M slice_bang(context, arg0, arg1) IRubyObject
M split(context) RubyArray
M split(context, arg0) RubyArray
M split(context, pattern, limit) RubyArray
M split(delimiter) RubyArray
M split(delimiter, limit) RubyArray
M split(context, delimiter, limit) RubyArray
M split(delimiter) RubyArray
M split(delimiter, limit) RubyArray
M split(context, delimiter, limit) RubyArray
M split_with_block(context, block) IRubyObject
M split_with_block(context, arg0, block) IRubyObject
M split_with_block(context, pattern, limit, block) IRubyObject
M squeeze(context) IRubyObject
M squeeze(context, arg) IRubyObject
M squeeze(context, args) IRubyObject
M squeeze_bang(context) IRubyObject
M squeeze_bang(context, arg) IRubyObject
M squeeze_bang(context, args) IRubyObject
M start_with_p(context) IRubyObject
M start_with_p(context, arg) IRubyObject
M start_with_p(context, args) IRubyObject
M starts_with(str) boolean
M str_dup(runtime) RubyString
M str_dup(runtime, clazz) RubyString
M str_dup() RubyString
M str_eql_p(context, other) IRubyObject
M str_eql_p19(context, other) IRubyObject
M str_hash_code(runtime) int
M str_length() int
M str_scrub(context, repl, block) IRubyObject
M string_to_bytes(string) byte[]
M string_to_inum(base, badcheck) IRubyObject
M string_to_inum(base) IRubyObject
M string_value(object) RubyString
M strip(context) IRubyObject
M strip_bang(context) IRubyObject
M sub(context, arg0, block) IRubyObject
M sub(context, arg0, arg1, block) IRubyObject
M sub_bang(context, arg0, block) IRubyObject
M sub_bang(context, arg0, arg1, block) IRubyObject
M sub_bang_fast(context, regexp, repl) IRubyObject
M sub_sequence(start, end) CharSequence
M substr(beg, len) IRubyObject
M substr(runtime, beg, len) IRubyObject
M substr(context, beg, len) IRubyObject
M substr19(runtime, beg, len) IRubyObject
M substr_enc(runtime, beg, len) IRubyObject
M substr_enc(context, beg, len) IRubyObject
M succ(context) IRubyObject
M succ_bang() IRubyObject
M succ_bang(context) IRubyObject
M sum(context) IRubyObject
M sum(context, arg) IRubyObject
M sum_common(context, bits) IRubyObject
M swapcase(context) RubyString
M swapcase(context, arg) RubyString
M swapcase(context, arg0, arg1) RubyString
M swapcase_bang(context) IRubyObject
M swapcase_bang(context, arg) IRubyObject
M swapcase_bang(context, arg0, arg1) IRubyObject
M to_c(context) IRubyObject
M to_encoding(runtime) Encoding
M to_f() IRubyObject
M to_f(context) IRubyObject
M to_i() IRubyObject
M to_i(context) IRubyObject
M to_i(arg0) IRubyObject
M to_i(context, arg0) IRubyObject
M to_java(target) T
M to_r(context) IRubyObject
M to_s(context) RubyString
M to_string() String
M tr(context, src, repl) IRubyObject
M tr19(context, src, repl) IRubyObject
M tr_bang(context, src, repl) IRubyObject
M tr_bang19(context, src, repl) IRubyObject
M tr_s(context, src, repl) IRubyObject
M tr_s19(context, src, repl) IRubyObject
M tr_s_bang(context, src, repl) IRubyObject
M tr_s_bang19(context, src, repl) IRubyObject
M try_convert(context, recv, str) IRubyObject
M undump(context) IRubyObject
M unicode_value() String
M unmarshal_from(input) RubyString
M unmarshal_from(context, in, input) RubyString
M unpack(context, obj, block) RubyArray
M unpack(context, obj, opt, block) RubyArray
M unpack(obj) RubyArray
M unpack1(context, obj, block) IRubyObject
M unpack1(context, obj, opt, block) IRubyObject
M unseeded_str_hash_code(runtime) int
M upcase(context) RubyString
M upcase(context, arg) RubyString
M upcase(context, arg0, arg1) RubyString
M upcase_bang(context) IRubyObject
M upcase_bang(context, arg) IRubyObject
M upcase_bang(context, arg0, arg1) IRubyObject
M upto(context, end, block) IRubyObject
M upto(context, end, excl, block) IRubyObject
M valid_encoding_p(context) IRubyObject
M value() CharSequence
C value=(value)
C value=(value)
C verify_ascii_compatible()
C view(bytes)
from IRubyObject
M check_string_type19() IRubyObject
C marshal_live_variables(stream, context, out)
from CharSequence
M chars() IntStream
M code_points() IntStream
C get_chars(arg0, arg1, arg2, arg3)
from RubyBasicObject
F ALL_F int
F BASICOBJECT_ALLOCATOR ObjectAllocator
F COMPARE_BY_IDENTITY_F int
F ERR_INSECURE_SET_INST_VAR String
F FALSE_F int
F FL_USHIFT int
F FROZEN_F int
F IS_OVERLAID_F int
F NEVER IRubyObject
F NIL_F int
F REFINED_MODULE_F int
F STAMP_OFFSET long
F TAINTED_F int
F UNDEF IRubyObject
F USER0_F int
F USER1_F int
F USER2_F int
F USER3_F int
F USER4_F int
F USER5_F int
F USER6_F int
F USER7_F int
F USER8_F int
F USER9_F int
F USERA_F int
F VAR_TABLE_OFFSET long
F varTable Object[]
F varTableStamp int
M __id__(context) RubyInteger
C add_finalizer(f)
M add_finalizer(context, f) IRubyObject
M any_to_string() IRubyObject
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 call_method(context, method_index, name) IRubyObject
M call_method(context, method_index, name, arg) IRubyObject
M call_super(context, args, block) IRubyObject
M check_array_type() IRubyObject
M check_call_method(context, name) IRubyObject
M check_call_method(context, sites) IRubyObject
M class?() boolean
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_integer(method_index, convert_method) RubyInteger
C copy_instance_variables_into(other)
C copy_special_instance_variables(clone)
M current_context() ThreadContext
M data_get_struct() Object
M data_get_struct_checked() Object
C data_wrap_struct(obj)
M decode(id) RubyString
M display(context, args) IRubyObject
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 fast_get_instance_variable(interned_name) IRubyObject
M fast_get_internal_variable(interned_name) Object
M fast_has_instance_variable(interned_name) boolean
M fast_has_internal_variable(interned_name) boolean
M fast_set_instance_variable(interned_name, value) IRubyObject
C fast_set_internal_variable(interned_name, value)
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 id() IRubyObject
M immediate?() boolean
M infect_by(obj) 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 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 methods(context, args, use_symbols) IRubyObject
M module?() boolean
M native_handle() Object
C native_handle=(value)
M native_type_index() int
M nil?() boolean
M nil_p(context) 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 respond_to_p(mname, include_private) 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_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)
C sync_variables(variables)
M taint(context) IRubyObject
C taint=(taint)
M taint?() boolean
M tainted_p(context) RubyBoolean
M to_a(context) RubyArray
M to_a() RubyArray
M to_s() IRubyObject
M true?() boolean
M trust(context) IRubyObject
M type() RubyClass
M type() RubyClass
M untaint(context) IRubyObject
M untrust(context) IRubyObject
C untrusted=(untrusted)
M untrusted?() boolean
M untrusted_p(context) RubyBoolean
M variable_count() int
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 convert_to_type(target, convert_method_index) IRubyObject
M op_eqq(context, other) IRubyObject
M specific_eval(context, mod, args, block, eval_type) IRubyObject
M to_ruby_string(context) RubyString

org.jruby.RubyString

class extends RubyObject implements CharSequence implements EncodingCapable implements MarshalEncoding implements CodeRangeable implements Appendable 474 members

Implementation of Ruby String class Concurrency: no synchronization is required among readers, but all users must synchronize externally with writers.

Fields

fieldtypenote
NULL_ARRAY RubyString[]

Constructors

new

new ( Ruby runtime, RubyClass ruby_class )
Java: <init>(org.jruby.Ruby runtime, org.jruby.RubyClass rubyClass)

new

new ( Ruby runtime, RubyClass ruby_class, CharSequence value )
Java: <init>(org.jruby.Ruby runtime, org.jruby.RubyClass rubyClass, CharSequence value)

new

new ( Ruby runtime, RubyClass ruby_class, CharSequence value, Encoding enc )
Java: <init>(org.jruby.Ruby runtime, org.jruby.RubyClass rubyClass, CharSequence value, org.jcodings.Encoding enc)

new

new ( Ruby runtime, RubyClass ruby_class, byte[] value )
Java: <init>(org.jruby.Ruby runtime, org.jruby.RubyClass rubyClass, byte[] value)

new

new ( Ruby runtime, RubyClass ruby_class, ByteList value )
Java: <init>(org.jruby.Ruby runtime, org.jruby.RubyClass rubyClass, org.jruby.util.ByteList value)

new

new ( Ruby runtime, RubyClass ruby_class, ByteList value, boolean object_space )
Java: <init>(org.jruby.Ruby runtime, org.jruby.RubyClass rubyClass, org.jruby.util.ByteList value, boolean objectSpace)

new

new ( Ruby runtime, RubyClass ruby_class, ByteList value, Encoding encoding, boolean object_space )
Java: <init>(org.jruby.Ruby runtime, org.jruby.RubyClass rubyClass, org.jruby.util.ByteList value, org.jcodings.Encoding encoding, boolean objectSpace)

Class Methods

at_char_boundary

boolean at_char_boundary ( byte[] bytes, int s, int p, int e, Encoding enc )
Java: atCharBoundary(byte[] bytes, int s, int p, int e, org.jcodings.Encoding enc)

byte_list_to_string

String byte_list_to_string ( ByteList bytes )
Java: byteListToString(org.jruby.util.ByteList bytes)

bytes_to_string

String bytes_to_string ( byte[] bytes, int beg, int len )
Java: bytesToString(byte[] bytes, int beg, int len)

bytes_to_string

String bytes_to_string ( byte[] bytes )
Java: bytesToString(byte[] bytes)

check_encoding

Encoding check_encoding ( Ruby runtime, ByteList str1, ByteList str2 )
Java: checkEncoding(org.jruby.Ruby runtime, org.jruby.util.ByteList str1, org.jruby.util.ByteList str2)

create_string_class

RubyClass create_string_class ( ThreadContext context, RubyClass object, RubyModule comparable )
Java: createStringClass(org.jruby.runtime.ThreadContext context, org.jruby.RubyClass Object, org.jruby.RubyModule Comparable)

encode_bytelist

ByteList encode_bytelist ( CharSequence value, Encoding encoding )
Java: encodeBytelist(CharSequence value, org.jcodings.Encoding encoding)

get_empty_byte_list

RubyString.EmptyByteListHolder get_empty_byte_list ( Encoding enc )
Java: getEmptyByteList(org.jcodings.Encoding enc)

include_range

IRubyObject include_range ( ThreadContext context, RubyString _beg, RubyString _end, IRubyObject _val, boolean exclusive )
Java: includeRange(org.jruby.runtime.ThreadContext context, org.jruby.RubyString _beg, org.jruby.RubyString _end, org.jruby.runtime.builtin.IRubyObject _val, boolean exclusive)

inspect

RubyString inspect ( Ruby runtime, ByteList byte_list )
Java: inspect(org.jruby.Ruby runtime, org.jruby.util.ByteList byteList)

inspect

RubyString inspect ( ThreadContext context, ByteList byte_list )
Java: inspect(org.jruby.runtime.ThreadContext context, org.jruby.util.ByteList byteList)

new_allocated_string

RubyString new_allocated_string ( Ruby runtime, RubyClass meta_class )
Java: newAllocatedString(org.jruby.Ruby runtime, org.jruby.RubyClass metaClass)

new_binary_string

RubyString new_binary_string ( Ruby runtime, String str )
Java: newBinaryString(org.jruby.Ruby runtime, String str)

new_binary_string

RubyString new_binary_string ( Ruby runtime, ByteList str )
Java: newBinaryString(org.jruby.Ruby runtime, org.jruby.util.ByteList str)

new_chilled_string

RubyString new_chilled_string ( Ruby runtime, ByteList bytes, int coderange, String file, int line )
Java: newChilledString(org.jruby.Ruby runtime, org.jruby.util.ByteList bytes, int coderange, String file, int line)

new_debug_chilled_string

RubyString new_debug_chilled_string ( Ruby runtime, RubyClass ruby_class, ByteList value, int cr, String file, int line )
Java: newDebugChilledString(org.jruby.Ruby runtime, org.jruby.RubyClass rubyClass, org.jruby.util.ByteList value, int cr, String file, int line)

new_debug_frozen_string

RubyString new_debug_frozen_string ( Ruby runtime, RubyClass ruby_class, ByteList value, int cr, String file, int line )
Java: newDebugFrozenString(org.jruby.Ruby runtime, org.jruby.RubyClass rubyClass, org.jruby.util.ByteList value, int cr, String file, int line)

new_empty_binary_string

RubyString new_empty_binary_string ( Ruby runtime )
Java: newEmptyBinaryString(org.jruby.Ruby runtime)

new_empty_string

RubyString new_empty_string ( Ruby runtime )
Java: newEmptyString(org.jruby.Ruby runtime)

new_empty_string

RubyString new_empty_string ( Ruby runtime, RubyClass meta_class )
Java: newEmptyString(org.jruby.Ruby runtime, org.jruby.RubyClass metaClass)

new_empty_string

RubyString new_empty_string ( Ruby runtime, RubyClass meta_class, Encoding enc )
Java: newEmptyString(org.jruby.Ruby runtime, org.jruby.RubyClass metaClass, org.jcodings.Encoding enc)

new_empty_string

RubyString new_empty_string ( Ruby runtime, Encoding enc )
Java: newEmptyString(org.jruby.Ruby runtime, org.jcodings.Encoding enc)

new_external_string_with_encoding

RubyString new_external_string_with_encoding ( Ruby runtime, String string, Encoding encoding )
Java: newExternalStringWithEncoding(org.jruby.Ruby runtime, String string, org.jcodings.Encoding encoding)

new_f_string

RubyString new_f_string ( Ruby runtime, String content )
Java: newFString(org.jruby.Ruby runtime, String content)

Create anew or deduplicate a RubyString based on the given Java String content.

nametypedescription
runtimeorg.jruby.Rubythe JRuby runtime
contentStringthe Java String content

Returns: a frozen, deduplicated RubyString hosting the given content

new_instance

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

rb_str_s_new

new_internal_from_java_external

RubyString new_internal_from_java_external ( Ruby runtime, String str )
Java: newInternalFromJavaExternal(org.jruby.Ruby runtime, String str)

Return a new Ruby String encoded as the default internal encoding given a Java String that has come from an external source. If there is no default internal encoding set, the Ruby String will be encoded using Java's default external encoding. If an internal encoding is set, that encoding will be used for the Ruby String.

new_string

RubyString new_string ( Ruby runtime, RubyClass clazz, CharSequence str )
Java: newString(org.jruby.Ruby runtime, org.jruby.RubyClass clazz, CharSequence str)

new_string

RubyString new_string ( Ruby runtime, CharSequence str )
Java: newString(org.jruby.Ruby runtime, CharSequence str)

new_string

RubyString new_string ( Ruby runtime, CharSequence str, Encoding encoding )
Java: newString(org.jruby.Ruby runtime, CharSequence str, org.jcodings.Encoding encoding)

new_string

RubyString new_string ( Ruby runtime, String str )
Java: newString(org.jruby.Ruby runtime, String str)

new_string

RubyString new_string ( Ruby runtime, String str, Encoding encoding )
Java: newString(org.jruby.Ruby runtime, String str, org.jcodings.Encoding encoding)

new_string

RubyString new_string ( Ruby runtime, byte[] bytes )
Java: newString(org.jruby.Ruby runtime, byte[] bytes)

new_string

RubyString new_string ( Ruby runtime, byte[] bytes, int start, int length )
Java: newString(org.jruby.Ruby runtime, byte[] bytes, int start, int length)

new_string

RubyString new_string ( Ruby runtime, byte[] bytes, int start, int length, Encoding encoding )
Java: newString(org.jruby.Ruby runtime, byte[] bytes, int start, int length, org.jcodings.Encoding encoding)

new_string

RubyString new_string ( Ruby runtime, ByteList bytes )
Java: newString(org.jruby.Ruby runtime, org.jruby.util.ByteList bytes)

new_string

RubyString new_string ( Ruby runtime, ByteList bytes, int coderange )
Java: newString(org.jruby.Ruby runtime, org.jruby.util.ByteList bytes, int coderange)

new_string

RubyString new_string ( Ruby runtime, ByteList bytes, Encoding encoding )
Java: newString(org.jruby.Ruby runtime, org.jruby.util.ByteList bytes, org.jcodings.Encoding encoding)

new_string_light

RubyString new_string_light ( Ruby runtime, ByteList bytes )
Java: newStringLight(org.jruby.Ruby runtime, org.jruby.util.ByteList bytes)

new_string_light

RubyString new_string_light ( Ruby runtime, int size )
Java: newStringLight(org.jruby.Ruby runtime, int size)

new_string_light

RubyString new_string_light ( Ruby runtime, int size, Encoding encoding )
Java: newStringLight(org.jruby.Ruby runtime, int size, org.jcodings.Encoding encoding)

new_string_no_copy

RubyString new_string_no_copy ( Ruby runtime, byte[] bytes, int start, int length, Encoding encoding )
Java: newStringNoCopy(org.jruby.Ruby runtime, byte[] bytes, int start, int length, org.jcodings.Encoding encoding)

new_string_no_copy

RubyString new_string_no_copy ( Ruby runtime, ByteList bytes )
Java: newStringNoCopy(org.jruby.Ruby runtime, org.jruby.util.ByteList bytes)

new_string_no_copy

RubyString new_string_no_copy ( Ruby runtime, RubyClass clazz, ByteList bytes )
Java: newStringNoCopy(org.jruby.Ruby runtime, org.jruby.RubyClass clazz, org.jruby.util.ByteList bytes)

new_string_no_copy

RubyString new_string_no_copy ( Ruby runtime, byte[] bytes, int start, int length )
Java: newStringNoCopy(org.jruby.Ruby runtime, byte[] bytes, int start, int length)

new_string_no_copy

RubyString new_string_no_copy ( Ruby runtime, byte[] bytes )
Java: newStringNoCopy(org.jruby.Ruby runtime, byte[] bytes)

new_string_no_copy

RubyString new_string_no_copy ( Ruby runtime, RubyClass clazz, ByteList bytes, Encoding enc, int cr )
Java: newStringNoCopy(org.jruby.Ruby runtime, org.jruby.RubyClass clazz, org.jruby.util.ByteList bytes, org.jcodings.Encoding enc, int cr)

new_string_no_copy

RubyString new_string_no_copy ( Ruby runtime, ByteList bytes, Encoding enc, int cr )
Java: newStringNoCopy(org.jruby.Ruby runtime, org.jruby.util.ByteList bytes, org.jcodings.Encoding enc, int cr)

new_string_shared

RubyString new_string_shared ( Ruby runtime, RubyString orig )
Java: newStringShared(org.jruby.Ruby runtime, org.jruby.RubyString orig)

new_string_shared

RubyString new_string_shared ( Ruby runtime, ByteList bytes )
Java: newStringShared(org.jruby.Ruby runtime, org.jruby.util.ByteList bytes)

new_string_shared

RubyString new_string_shared ( Ruby runtime, ByteList bytes, Encoding encoding )
Java: newStringShared(org.jruby.Ruby runtime, org.jruby.util.ByteList bytes, org.jcodings.Encoding encoding)

new_string_shared

RubyString new_string_shared ( Ruby runtime, ByteList bytes, int code_range )
Java: newStringShared(org.jruby.Ruby runtime, org.jruby.util.ByteList bytes, int codeRange)

new_string_shared

RubyString new_string_shared ( Ruby runtime, RubyClass clazz, ByteList bytes )
Java: newStringShared(org.jruby.Ruby runtime, org.jruby.RubyClass clazz, org.jruby.util.ByteList bytes)

new_string_shared

RubyString new_string_shared ( Ruby runtime, RubyClass clazz, ByteList bytes, Encoding encoding )
Java: newStringShared(org.jruby.Ruby runtime, org.jruby.RubyClass clazz, org.jruby.util.ByteList bytes, org.jcodings.Encoding encoding)

new_string_shared

RubyString new_string_shared ( Ruby runtime, byte[] bytes )
Java: newStringShared(org.jruby.Ruby runtime, byte[] bytes)

new_string_shared

RubyString new_string_shared ( Ruby runtime, byte[] bytes, Encoding encoding )
Java: newStringShared(org.jruby.Ruby runtime, byte[] bytes, org.jcodings.Encoding encoding)

new_string_shared

RubyString new_string_shared ( Ruby runtime, byte[] bytes, int start, int length )
Java: newStringShared(org.jruby.Ruby runtime, byte[] bytes, int start, int length)

new_string_shared

RubyString new_string_shared ( Ruby runtime, byte[] bytes, int start, int length, Encoding encoding )
Java: newStringShared(org.jruby.Ruby runtime, byte[] bytes, int start, int length, org.jcodings.Encoding encoding)

new_unicode_string

RubyString new_unicode_string ( Ruby runtime, String str )
Java: newUnicodeString(org.jruby.Ruby runtime, String str)

new_unicode_string

RubyString new_unicode_string ( Ruby runtime, CharSequence str )
Java: newUnicodeString(org.jruby.Ruby runtime, CharSequence str)

new_us_ascii_string_no_copy

RubyString new_us_ascii_string_no_copy ( Ruby runtime, ByteList bytes )
Java: newUsAsciiStringNoCopy(org.jruby.Ruby runtime, org.jruby.util.ByteList bytes)

new_us_ascii_string_shared

RubyString new_us_ascii_string_shared ( Ruby runtime, ByteList bytes )
Java: newUsAsciiStringShared(org.jruby.Ruby runtime, org.jruby.util.ByteList bytes)

new_us_ascii_string_shared

RubyString new_us_ascii_string_shared ( Ruby runtime, byte[] bytes, int start, int length )
Java: newUsAsciiStringShared(org.jruby.Ruby runtime, byte[] bytes, int start, int length)

new_usascii_string

RubyString new_usascii_string ( Ruby runtime, String str )
Java: newUSASCIIString(org.jruby.Ruby runtime, String str)

new_utf16_string

RubyString new_utf16_string ( Ruby runtime, String str )
Java: newUTF16String(org.jruby.Ruby runtime, String str)

new_utf16_string

RubyString new_utf16_string ( Ruby runtime, CharSequence str )
Java: newUTF16String(org.jruby.Ruby runtime, CharSequence str)

new_utf8_string

RubyString new_utf8_string ( Ruby runtime, String str )
Java: newUTF8String(org.jruby.Ruby runtime, String str)

new_utf8_string

RubyString new_utf8_string ( Ruby runtime, CharSequence str )
Java: newUTF8String(org.jruby.Ruby runtime, CharSequence str)

obj_as_string

RubyString obj_as_string ( ThreadContext context, IRubyObject obj )
Java: objAsString(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj)

rb_obj_as_string

rb_str_escape

IRubyObject rb_str_escape ( ThreadContext context, RubyString str )
Java: rbStrEscape(org.jruby.runtime.ThreadContext context, org.jruby.RubyString str)

scan_for_code_range

int scan_for_code_range ( ByteList bytes )
Java: scanForCodeRange(org.jruby.util.ByteList bytes)

string_to_bytes

byte[] string_to_bytes ( String string )
Java: stringToBytes(String string)

string_value

RubyString string_value ( IRubyObject object )
Java: stringValue(org.jruby.runtime.builtin.IRubyObject object)

try_convert

IRubyObject try_convert ( ThreadContext context, IRubyObject recv, IRubyObject str )
Java: try_convert(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject recv, org.jruby.runtime.builtin.IRubyObject str)

unmarshal_from

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

unmarshal_from

RubyString 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

append

RubyString append ( IRubyObject other, Function<IRubyObject,RubyString> convert )
Java: append(org.jruby.runtime.builtin.IRubyObject other, java.util.function.Function<org.jruby.runtime.builtin.IRubyObject,org.jruby.RubyString> convert)

rb_str_append

append

RubyString append ( IRubyObject other )
Java: append(org.jruby.runtime.builtin.IRubyObject other)

append

RubyString append ( RubyString other )
Java: append(org.jruby.RubyString other)

append19

RubyString append19 ( IRubyObject other )
Java: append19(org.jruby.runtime.builtin.IRubyObject other)

append_as_bytes

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

append_as_bytes

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

append_as_bytes

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

append_as_dynamic_string

RubyString append_as_dynamic_string ( IRubyObject other )
Java: appendAsDynamicString(org.jruby.runtime.builtin.IRubyObject other)

append_as_string_or_any

RubyString append_as_string_or_any ( IRubyObject other )
Java: appendAsStringOrAny(org.jruby.runtime.builtin.IRubyObject other)

append_into_string

append_into_string ( RubyString target )
Java: appendIntoString(org.jruby.RubyString target)

as_java_string

String as_java_string ( )
Java: asJavaString()

rb_to_id

as_string

RubyString as_string ( )
Java: asString()

ascii_only?

boolean ascii_only? ( )
Java: isAsciiOnly() · also: is_ascii_only

ascii_only_p

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

associate_encoding

associate_encoding ( Encoding enc )
Java: associateEncoding(org.jcodings.Encoding enc)

b

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

broken_string?

boolean broken_string? ( )
Java: isBrokenString() · also: is_broken_string

byte_list

ByteList byte_list ( )
Java: getByteList() · also: get_byte_list

Get the ByteList which backs this Ruby String

Returns: The byte list

byteindex

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

byteindex

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

byterindex

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

byterindex

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

bytes

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

bytes

byte[] bytes ( )
Java: getBytes() · also: get_bytes

bytesize

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

bytesize

RubyFixnum bytesize ( )
Java: bytesize()

byteslice

IRubyObject byteslice ( ThreadContext context, IRubyObject arg1, IRubyObject arg2 )
Java: byteslice(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.builtin.IRubyObject arg2)

byteslice

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

bytesplice

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

bytesplice

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

bytesplice

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

capacity

int capacity ( )
Java: capacity()

Determine how much space exists after the begin offset in this string's buffer.

Returns: the amount of capacity in this string's buffer after the begin offset

capitalize

RubyString capitalize ( ThreadContext context )
Java: capitalize(org.jruby.runtime.ThreadContext context)

rb_str_capitalize / rb_str_capitalize_bang

capitalize

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

capitalize

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

capitalize_bang

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

capitalize_bang

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

capitalize_bang

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

casecmp

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

casecmp_p

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

cat

RubyString cat ( byte[] str )
Java: cat(byte[] str)

cat

RubyString cat ( byte[] str, int beg, int len )
Java: cat(byte[] str, int beg, int len)

cat

RubyString cat ( ByteList other, int code_range )
Java: cat(org.jruby.util.ByteList other, int codeRange)

cat

RubyString cat ( RubyString str )
Java: cat(org.jruby.RubyString str)

cat

RubyString cat ( ByteList str )
Java: cat(org.jruby.util.ByteList str)

cat

RubyString cat ( byte ch )
Java: cat(byte ch)

cat

RubyString cat ( int ch )
Java: cat(int ch)

cat

RubyString cat ( int code, Encoding enc )
Java: cat(int code, org.jcodings.Encoding enc)

cat

int cat ( byte[] bytes, int p, int len, Encoding enc )
Java: cat(byte[] bytes, int p, int len, org.jcodings.Encoding enc)

cat19

RubyString cat19 ( RubyString str2 )
Java: cat19(org.jruby.RubyString str2)

cat19

int cat19 ( ByteList other, int code_range )
Java: cat19(org.jruby.util.ByteList other, int codeRange)

cat_ascii

RubyString cat_ascii ( byte[] bytes, int ptr, int ptr_len )
Java: catAscii(byte[] bytes, int ptr, int ptrLen)

cat_string

RubyString cat_string ( String str )
Java: catString(String str)

cat_string_unsafe

RubyString cat_string_unsafe ( String str )
Java: catStringUnsafe(String str)

Append a Java String to this RubyString assuming it will be the encoding of the RubyString. If it is not then then it will end up as an invalid string. Some methods assume an encoding of BINARY so that broken bytes are possible/expected (e.g. an error message with two names which are not compatible to be combined into a single Ruby String). Proc#to_s is an example of this.

nametypedescription
strStringto be appended

Returns: this string after it has appended str

cat_with_code_range

RubyString cat_with_code_range ( RubyString str2 )
Java: catWithCodeRange(org.jruby.RubyString str2)

cat_with_code_range

int cat_with_code_range ( ByteList other, int code_range )
Java: catWithCodeRange(org.jruby.util.ByteList other, int codeRange)

center

IRubyObject center ( IRubyObject arg0 )
Java: center(org.jruby.runtime.builtin.IRubyObject arg0)

center

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

rb_str_center

center

IRubyObject center ( IRubyObject arg0, IRubyObject arg1 )
Java: center(org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1)

center

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

char_at

char char_at ( int offset )
Java: charAt(int offset)

chars

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

check_encoding

Encoding check_encoding ( RubyString other )
Java: checkEncoding(org.jruby.RubyString other)

check_encoding

Encoding check_encoding ( CodeRangeable other )
Java: checkEncoding(org.jruby.util.CodeRangeable other)

check_frozen

check_frozen ( )
Java: checkFrozen()

check_string_type

IRubyObject check_string_type ( )
Java: checkStringType()

chill

RubyString chill ( )
Java: chill()

chill_symbol_string

RubyString chill_symbol_string ( )
Java: chill_symbol_string()

chomp

RubyString chomp ( ThreadContext context )
Java: chomp(org.jruby.runtime.ThreadContext context)

rb_str_chomp_bang In the common case, removes CR and LF characters in various ways depending on the value of the optional args[0]. If args.length==0 removes one instance of CR, CRLF or LF from the end of the string. If args.length>0 and args[0] is "\n" then same behaviour as args.length==0 . If args.length>0 and args[0] is "" then removes trailing multiple LF or CRLF (but no CRs at all(!)).

chomp

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

chomp19

RubyString chomp19 ( ThreadContext context )
Java: chomp19(org.jruby.runtime.ThreadContext context)

chomp19

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

chomp_bang

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

chomp_bang

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

chomp_bang19

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

chomp_bang19

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

chop

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

rb_str_chop / rb_str_chop_bang

chop_bang

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

chr

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

clear

RubyString clear ( )
Java: clear()

clear

RubyString clear ( ThreadContext context )
Java: clear(org.jruby.runtime.ThreadContext context)

clear_code_range

clear_code_range ( )
Java: clearCodeRange()

code_range

int code_range ( )
Java: getCodeRange() · also: get_code_range

code_range=

code_range= ( int code_range )
Java: setCodeRange(int codeRange) · also: set_code_range

code_range_ascii_only?

boolean code_range_ascii_only? ( )
Java: isCodeRangeAsciiOnly() · also: is_code_range_ascii_only

code_range_broken?

boolean code_range_broken? ( )
Java: isCodeRangeBroken() · also: is_code_range_broken

code_range_valid?

boolean code_range_valid? ( )
Java: isCodeRangeValid() · also: is_code_range_valid

codepoints

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

compare_to

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

concat

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

rb_str_concat

concat

RubyString concat ( ThreadContext context, IRubyObject[] objs )
Java: concat(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject[] objs)

rb_str_concat_multi

concat

RubyString concat ( IRubyObject other )
Java: concat(org.jruby.runtime.builtin.IRubyObject other)

concat_single

RubyString concat_single ( ThreadContext context, IRubyObject other )
Java: concatSingle(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject other)

rb_str_concat

convert_to_string

RubyString convert_to_string ( )
Java: convertToString()

count

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

count

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

count

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

crypt

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

rb_str_crypt

decode_string

String decode_string ( )
Java: decodeString()

Convert this Ruby string to a Java String. This version is encoding-aware.

Returns: A decoded Java String, based on this Ruby string's encoding.

delete

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

rb_str_delete / rb_str_delete_bang

delete

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

delete

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

delete_bang

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

delete_bang

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

delete_bang

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

delete_prefix

IRubyObject delete_prefix ( ThreadContext context, IRubyObject prefix )
Java: delete_prefix(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject prefix)

delete_prefix_bang

IRubyObject delete_prefix_bang ( ThreadContext context, IRubyObject prefix )
Java: delete_prefix_bang(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject prefix)

delete_suffix

IRubyObject delete_suffix ( ThreadContext context, IRubyObject suffix )
Java: delete_suffix(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject suffix)

delete_suffix_bang

IRubyObject delete_suffix_bang ( ThreadContext context, IRubyObject suffix )
Java: delete_suffix_bang(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject suffix)

do_clone

IRubyObject do_clone ( )
Java: doClone()

downcase

RubyString downcase ( ThreadContext context )
Java: downcase(org.jruby.runtime.ThreadContext context)

rb_str_downcase / rb_str_downcase_bang

downcase

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

downcase

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

downcase_bang

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

downcase_bang

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

downcase_bang

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

dump

IRubyObject dump ( )
Java: dump()

dump

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

rb_str_dump

dup

IRubyObject dup ( )
Java: dup()

Overridden dup for fast-path logic.

Returns: A new RubyString sharing the original backing store.

dup

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

dup_as_chilled

RubyString dup_as_chilled ( Ruby runtime, RubyClass clazz, String file, int line )
Java: dupAsChilled(org.jruby.Ruby runtime, org.jruby.RubyClass clazz, String file, int line)

dup_as_f_string

RubyString.FString dup_as_f_string ( Ruby runtime )
Java: dupAsFString(org.jruby.Ruby runtime)

dup_frozen

IRubyObject dup_frozen ( )
Java: dupFrozen()

each_byte

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

rb_str_each_byte

each_char

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

each_codepoint

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

rb_str_each_codepoint

each_grapheme_cluster

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

each_line

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

rb_str_each_line

each_line

IRubyObject each_line ( ThreadContext context, IRubyObject arg, Block block )
Java: each_line(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg, org.jruby.runtime.Block block)

each_line

IRubyObject each_line ( ThreadContext context, IRubyObject arg, IRubyObject opts, Block block )
Java: each_line(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg, org.jruby.runtime.builtin.IRubyObject opts, org.jruby.runtime.Block block)

each_line_common

IRubyObject each_line_common ( ThreadContext context, IRubyObject sep, Block block )
Java: each_lineCommon(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject sep, org.jruby.runtime.Block block)

empty

empty ( )
Java: empty()

empty?

boolean empty? ( )
Java: isEmpty() · also: is_empty

empty_p

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

rb_str_empty

enc_str_scrub

IRubyObject enc_str_scrub ( ThreadContext context, Encoding enc, IRubyObject repl, Block block )
Java: encStrScrub(org.jruby.runtime.ThreadContext context, org.jcodings.Encoding enc, org.jruby.runtime.builtin.IRubyObject repl, org.jruby.runtime.Block block)

enc_str_scrub

IRubyObject enc_str_scrub ( ThreadContext context, Encoding enc, IRubyObject repl, int cr, Block block )
Java: encStrScrub(org.jruby.runtime.ThreadContext context, org.jcodings.Encoding enc, org.jruby.runtime.builtin.IRubyObject repl, int cr, org.jruby.runtime.Block block)

encode

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

encode

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

encode

IRubyObject encode ( ThreadContext context, IRubyObject to_encoding, IRubyObject arg )
Java: encode(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject toEncoding, org.jruby.runtime.builtin.IRubyObject arg)

encode

IRubyObject encode ( ThreadContext context, IRubyObject to_encoding, IRubyObject forced_encoding, IRubyObject opts )
Java: encode(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject toEncoding, org.jruby.runtime.builtin.IRubyObject forcedEncoding, org.jruby.runtime.builtin.IRubyObject opts)

encode_bang

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

encode_bang

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

encode_bang

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

encode_bang

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

encode_bang

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

encoding

Encoding encoding ( )
Java: getEncoding() · also: get_encoding

encoding

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

encoding=

encoding= ( Encoding encoding )
Java: setEncoding(org.jcodings.Encoding encoding) · also: set_encoding

end_with_p

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

end_with_p

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

end_with_p

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

ends_with_ascii_char

boolean ends_with_ascii_char ( char c )
Java: endsWithAsciiChar(char c)

ensure_available

ensure_available ( ThreadContext context, int extra_length )
Java: ensureAvailable(org.jruby.runtime.ThreadContext context, int extraLength)

Ensure the backing store belongs to this string and has enough space to add extraLength bytes. MRI: str_ensure_available_capa

nametypedescription
contextorg.jruby.runtime.ThreadContextthe current thread context
extra_lengthintthe extra length needed

ensure_instance_variables_settable

ensure_instance_variables_settable ( )
Java: ensureInstanceVariablesSettable()

eql

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

short circuit for String key comparison

equals

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

export

RubyString export ( ThreadContext context )
Java: export(org.jruby.runtime.ThreadContext context)

force_encoding

IRubyObject force_encoding ( ThreadContext context, IRubyObject enc )
Java: force_encoding(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject enc)

freeze

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

getbyte

IRubyObject getbyte ( ThreadContext context, IRubyObject index )
Java: getbyte(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject index)

grapheme_clusters

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

gsub

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

gsub

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

gsub_bang

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

gsub_bang

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

gsub_fast

RubyString gsub_fast ( ThreadContext context, RubyRegexp regexp, RubyString repl, Block block )
Java: gsubFast(org.jruby.runtime.ThreadContext context, org.jruby.RubyRegexp regexp, org.jruby.RubyString repl, org.jruby.runtime.Block block)

has_nul?

boolean has_nul? ( )
Java: hasNul() · also: has_nul

Does this string contain \0 anywhere (per byte search).

Returns: true if it does

hash

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

hash_code

int hash_code ( )
Java: hashCode()

hex

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

rb_str_hex

include_p

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

rb_str_include

independent

boolean independent ( )
Java: independent()

index

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

rb_str_index_m

index

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

initialize

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

initialize

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

initialize

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

initialize_copy

RubyString initialize_copy ( IRubyObject other )
Java: initialize_copy(org.jruby.runtime.builtin.IRubyObject other)

initialize_copy

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

insert

IRubyObject insert ( ThreadContext context, IRubyObject index_arg, IRubyObject arg )
Java: insert(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject indexArg, org.jruby.runtime.builtin.IRubyObject arg)

inspect

RubyString inspect ( )
Java: inspect()

inspect

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

rb_str_inspect

intern

RubySymbol intern ( )
Java: intern()

intern

RubySymbol intern ( ThreadContext context )
Java: intern(org.jruby.runtime.ThreadContext context)

is_bare

boolean is_bare ( Ruby runtime )
Java: isBare(org.jruby.Ruby runtime)

is_bare

boolean is_bare ( ThreadContext context )
Java: isBare(org.jruby.runtime.ThreadContext context)

Is this a "bare" string, i.e. has no instance vars, and class == String.

java_class

Class java_class ( )
Java: getJavaClass() · also: get_java_class

keep_code_range

keep_code_range ( )
Java: keepCodeRange()

length

int length ( )
Java: length()

lines

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

lines

IRubyObject lines ( ThreadContext context, IRubyObject arg, Block block )
Java: lines(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg, org.jruby.runtime.Block block)

lines

IRubyObject lines ( ThreadContext context, IRubyObject arg, IRubyObject opts, Block block )
Java: lines(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg, org.jruby.runtime.builtin.IRubyObject opts, org.jruby.runtime.Block block)

ljust

IRubyObject ljust ( IRubyObject arg0 )
Java: ljust(org.jruby.runtime.builtin.IRubyObject arg0)

ljust

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

rb_str_ljust

ljust

IRubyObject ljust ( IRubyObject arg0, IRubyObject arg1 )
Java: ljust(org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1)

ljust

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

lstrip

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

rb_str_lstrip / rb_str_lstrip_bang

lstrip_bang

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

make_independent

RubyString make_independent ( )
Java: makeIndependent()

make_independent

RubyString make_independent ( int length )
Java: makeIndependent(int length)

make_shared

RubyString make_shared ( Ruby runtime, int index, int len )
Java: makeShared(org.jruby.Ruby runtime, int index, int len)

make_shared

RubyString make_shared ( Ruby runtime, RubyClass meta, int index, int len )
Java: makeShared(org.jruby.Ruby runtime, org.jruby.RubyClass meta, int index, int len)

make_shared_string

RubyString make_shared_string ( Ruby runtime, int index, int len )
Java: makeSharedString(org.jruby.Ruby runtime, int index, int len)

marshal_encoding

Encoding marshal_encoding ( )
Java: getMarshalEncoding() · also: get_marshal_encoding

match

IRubyObject match ( ThreadContext context, IRubyObject pattern )
Java: match(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject pattern)

String#match(pattern) rb_str_match_m

nametypedescription
patternorg.jruby.runtime.builtin.IRubyObjectRegexp or String

match

IRubyObject match ( ThreadContext context, IRubyObject pattern, Block block )
Java: match(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject pattern, org.jruby.runtime.Block block)

match

IRubyObject match ( ThreadContext context, IRubyObject pattern, IRubyObject pos, Block block )
Java: match(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject pattern, org.jruby.runtime.builtin.IRubyObject pos, org.jruby.runtime.Block block)

match

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

match19

IRubyObject match19 ( ThreadContext context, IRubyObject pattern )
Java: match19(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject pattern)

match19

IRubyObject match19 ( ThreadContext context, IRubyObject pattern, IRubyObject pos, Block block )
Java: match19(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject pattern, org.jruby.runtime.builtin.IRubyObject pos, org.jruby.runtime.Block block)

match19

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

match_p

IRubyObject match_p ( ThreadContext context, IRubyObject pattern )
Java: match_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject pattern)

match_p

IRubyObject match_p ( ThreadContext context, IRubyObject pattern, IRubyObject pos )
Java: match_p(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject pattern, org.jruby.runtime.builtin.IRubyObject pos)

minus_at

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

modify

modify ( )
Java: modify()

modify

modify ( int length )
Java: modify(int length)

rb_str_modify (with length bytes ensured)

modify19

modify19 ( )
Java: modify19()

modify_and_clear_code_range

modify_and_clear_code_range ( )
Java: modifyAndClearCodeRange()

modify_and_keep_code_range

modify_and_keep_code_range ( )
Java: modifyAndKeepCodeRange()

modify_check

modify_check ( )
Java: modifyCheck()

Check that the string can be modified, raising error otherwise. If you plan to modify a string with shared backing store, this method is not sufficient; you will need to call modify() instead.

modify_check

modify_check ( byte[] b, int len )
Java: modifyCheck(byte[] b, int len)

modify_expand

modify_expand ( int length )
Java: modifyExpand(int length)

rb_str_modify_expand

native_class_index

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

new_frozen

RubyString new_frozen ( )
Java: newFrozen()

new_string

RubyString new_string ( CharSequence s )
Java: newString(CharSequence s)

new_string

RubyString new_string ( ByteList s )
Java: newString(org.jruby.util.ByteList s)

oct

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

rb_str_oct

op_aref

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

rb_str_aref, rb_str_aref_m

op_aref

IRubyObject op_aref ( ThreadContext context, IRubyObject arg1, IRubyObject arg2 )
Java: op_aref(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg1, org.jruby.runtime.builtin.IRubyObject arg2)

op_aset

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

rb_str_aset, rb_str_aset_m

op_aset

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

op_cmp

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

op_cmp

int op_cmp ( RubyString other )
Java: op_cmp(org.jruby.RubyString other)

rb_str_cmp

op_equal

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

rb_str_equal

op_format

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

op_ge

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

op_ge19

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

op_gt

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

op_gt19

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

op_le

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

op_le19

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

op_lt

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

op_lt19

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

op_match

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

rb_str_match

op_mul

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

op_mul19

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

op_plus

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

op_plus19

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

ord

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

partition

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

partition

IRubyObject partition ( ThreadContext context, IRubyObject arg, Block block )
Java: partition(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject arg, org.jruby.runtime.Block block)

plus_at

IRubyObject plus_at ( )
Java: plus_at()

plus_at

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

prepend

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

rb_str_prepend

prepend

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

rb_str_prepend

prepend

RubyString prepend ( byte ch )
Java: prepend(byte ch)

prepend

RubyString prepend ( int ch )
Java: prepend(int ch)

rb_str_offset

int rb_str_offset ( int pos )
Java: rbStrOffset(int pos)

read_length=

read_length= ( int length )
Java: setReadLength(int length) · also: set_read_length

replace

IRubyObject replace ( IRubyObject other )
Java: replace(org.jruby.runtime.builtin.IRubyObject other)

replace

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

rb_str_replace_m

replace19

RubyString replace19 ( IRubyObject other )
Java: replace19(org.jruby.runtime.builtin.IRubyObject other)

resize

resize ( int size )
Java: resize(int size)

rb_str_resize

reverse

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

reverse19

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

reverse_bang

RubyString reverse_bang ( ThreadContext context )
Java: reverse_bang(org.jruby.runtime.ThreadContext context)

reverse_bang19

RubyString reverse_bang19 ( ThreadContext context )
Java: reverse_bang19(org.jruby.runtime.ThreadContext context)

rindex

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

rb_str_rindex_m

rindex

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

rjust

IRubyObject rjust ( IRubyObject arg0 )
Java: rjust(org.jruby.runtime.builtin.IRubyObject arg0)

rjust

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

rb_str_rjust

rjust

IRubyObject rjust ( IRubyObject arg0, IRubyObject arg1 )
Java: rjust(org.jruby.runtime.builtin.IRubyObject arg0, org.jruby.runtime.builtin.IRubyObject arg1)

rjust

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

rpartition

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

rstrip

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

rb_str_rstrip / rb_str_rstrip_bang

rstrip_bang

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

ruby_length

RubyFixnum ruby_length ( ThreadContext context )
Java: rubyLength(org.jruby.runtime.ThreadContext context)

scan

IRubyObject scan ( ThreadContext context, IRubyObject pat, Block block )
Java: scan(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject pat, org.jruby.runtime.Block block)

rb_str_scan

scan_for_code_range

int scan_for_code_range ( )
Java: scanForCodeRange()

scrub

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

scrub

IRubyObject scrub ( ThreadContext context, IRubyObject repl, Block block )
Java: scrub(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject repl, org.jruby.runtime.Block block)

scrub_bang

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

scrub_bang

IRubyObject scrub_bang ( ThreadContext context, IRubyObject repl, Block block )
Java: scrub_bang(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject repl, org.jruby.runtime.Block block)

set_byte_list_shared

set_byte_list_shared ( )
Java: setByteListShared()

set_encoding_and_code_range

set_encoding_and_code_range ( Encoding enc, int cr )
Java: setEncodingAndCodeRange(org.jcodings.Encoding enc, int cr)

setbyte

IRubyObject setbyte ( ThreadContext context, IRubyObject index, IRubyObject val )
Java: setbyte(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject index, org.jruby.runtime.builtin.IRubyObject val)

should_marshal_encoding

boolean should_marshal_encoding ( )
Java: shouldMarshalEncoding()

singleton_class

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

size

int size ( )
Java: size()

slice_bang

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

rb_str_slice_bang

slice_bang

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

split

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

split

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

split

RubyArray split ( ThreadContext context, IRubyObject pattern, IRubyObject limit )
Java: split(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject pattern, org.jruby.runtime.builtin.IRubyObject limit)

split

RubyArray split ( RubyRegexp delimiter )
Java: split(org.jruby.RubyRegexp delimiter)

Split for ext (Java) callers (does not write $~).

Returns: splited entries

split

RubyArray split ( RubyRegexp delimiter, int limit )
Java: split(org.jruby.RubyRegexp delimiter, int limit)

split

RubyArray split ( ThreadContext context, RubyRegexp delimiter, int limit )
Java: split(org.jruby.runtime.ThreadContext context, org.jruby.RubyRegexp delimiter, int limit)

Split for ext (Java) callers (does not write $~).

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context

Returns: splited entries

split

RubyArray split ( RubyString delimiter )
Java: split(org.jruby.RubyString delimiter)

split

RubyArray split ( RubyString delimiter, int limit )
Java: split(org.jruby.RubyString delimiter, int limit)

split

RubyArray split ( ThreadContext context, RubyString delimiter, int limit )
Java: split(org.jruby.runtime.ThreadContext context, org.jruby.RubyString delimiter, int limit)

Split for ext (Java) callers (does not write $~).

nametypedescription
contextorg.jruby.runtime.ThreadContextthe thread context

Returns: splited entries

split_with_block

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

rb_str_split_m

split_with_block

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

split_with_block

IRubyObject split_with_block ( ThreadContext context, IRubyObject pattern, IRubyObject limit, Block block )
Java: splitWithBlock(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject pattern, org.jruby.runtime.builtin.IRubyObject limit, org.jruby.runtime.Block block)

squeeze

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

rb_str_squeeze / rb_str_squeeze_bang

squeeze

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

squeeze

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

squeeze_bang

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

squeeze_bang

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

squeeze_bang

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

start_with_p

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

start_with_p

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

start_with_p

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

starts_with

boolean starts_with ( RubyString str )
Java: startsWith(org.jruby.RubyString str)

str_dup

RubyString str_dup ( Ruby runtime )
Java: strDup(org.jruby.Ruby runtime)

str_dup

RubyString str_dup ( Ruby runtime, RubyClass clazz )
Java: strDup(org.jruby.Ruby runtime, org.jruby.RubyClass clazz)

str_dup

RubyString str_dup ( )
Java: strDup()

str_eql_p

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

str_eql_p19

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

str_hash_code

int str_hash_code ( Ruby runtime )
Java: strHashCode(org.jruby.Ruby runtime)

Generate a hash for the String, using its associated Ruby instance's hash seed.

nametypedescription
runtimeorg.jruby.Rubythe runtime

Returns: calculated hash

str_length

int str_length ( )
Java: strLength()

str_scrub

IRubyObject str_scrub ( ThreadContext context, IRubyObject repl, Block block )
Java: strScrub(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject repl, org.jruby.runtime.Block block)

Scrub the contents of this string, replacing invalid characters as appropriate. MRI: rb_str_scrub

string_to_inum

IRubyObject string_to_inum ( int base, boolean badcheck )
Java: stringToInum(int base, boolean badcheck)

rb_str_to_inum

string_to_inum

IRubyObject string_to_inum ( int base )
Java: stringToInum(int base)

strip

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

rb_str_strip / rb_str_strip_bang

strip_bang

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

sub

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

rb_str_sub / rb_str_sub_bang

sub

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

sub_bang

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

sub_bang

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

sub_bang_fast

IRubyObject sub_bang_fast ( ThreadContext context, RubyRegexp regexp, RubyString repl )
Java: subBangFast(org.jruby.runtime.ThreadContext context, org.jruby.RubyRegexp regexp, org.jruby.RubyString repl)

sub! but without any frame globals ...

nametypedescription
contextorg.jruby.runtime.ThreadContextcurrent context
regexporg.jruby.RubyRegexpthe regular expression
replorg.jruby.RubyStringreplacement string value

Returns: sub result

sub_sequence

CharSequence sub_sequence ( int start, int end )
Java: subSequence(int start, int end)

substr

IRubyObject substr ( int beg, int len )
Java: substr(int beg, int len)

substr

IRubyObject substr ( Ruby runtime, int beg, int len )
Java: substr(org.jruby.Ruby runtime, int beg, int len)

substr

IRubyObject substr ( ThreadContext context, int beg, int len )
Java: substr(org.jruby.runtime.ThreadContext context, int beg, int len)

substr19

IRubyObject substr19 ( Ruby runtime, int beg, int len )
Java: substr19(org.jruby.Ruby runtime, int beg, int len)

substr_enc

IRubyObject substr_enc ( Ruby runtime, int beg, int len )
Java: substrEnc(org.jruby.Ruby runtime, int beg, int len)

substr_enc

IRubyObject substr_enc ( ThreadContext context, int beg, int len )
Java: substrEnc(org.jruby.runtime.ThreadContext context, int beg, int len)

succ

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

succ_bang

IRubyObject succ_bang ( )
Java: succ_bang()

succ_bang

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

sum

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

sum

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

sum_common

IRubyObject sum_common ( ThreadContext context, long bits )
Java: sumCommon(org.jruby.runtime.ThreadContext context, long bits)

swapcase

RubyString swapcase ( ThreadContext context )
Java: swapcase(org.jruby.runtime.ThreadContext context)

rb_str_swapcase / rb_str_swapcase_bang

swapcase

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

swapcase

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

swapcase_bang

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

swapcase_bang

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

swapcase_bang

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

to_c

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

string_to_c

to_encoding

Encoding to_encoding ( Ruby runtime )
Java: toEncoding(org.jruby.Ruby runtime)

to_f

IRubyObject to_f ( )
Java: to_f()

to_f

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

to_i

IRubyObject to_i ( )
Java: to_i()

to_i

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

to_i

IRubyObject to_i ( IRubyObject arg0 )
Java: to_i(org.jruby.runtime.builtin.IRubyObject arg0)

to_i

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

rb_str_to_i

to_java

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

to_r

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

string_to_r

to_s

RubyString to_s ( ThreadContext context )
Java: to_s(org.jruby.runtime.ThreadContext context)

to_string

String to_string ( )
Java: toString()

tr

IRubyObject tr ( ThreadContext context, IRubyObject src, IRubyObject repl )
Java: tr(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject src, org.jruby.runtime.builtin.IRubyObject repl)

rb_str_tr / rb_str_tr_bang

tr19

IRubyObject tr19 ( ThreadContext context, IRubyObject src, IRubyObject repl )
Java: tr19(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject src, org.jruby.runtime.builtin.IRubyObject repl)

tr_bang

IRubyObject tr_bang ( ThreadContext context, IRubyObject src, IRubyObject repl )
Java: tr_bang(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject src, org.jruby.runtime.builtin.IRubyObject repl)

tr_bang19

IRubyObject tr_bang19 ( ThreadContext context, IRubyObject src, IRubyObject repl )
Java: tr_bang19(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject src, org.jruby.runtime.builtin.IRubyObject repl)

tr_s

IRubyObject tr_s ( ThreadContext context, IRubyObject src, IRubyObject repl )
Java: tr_s(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject src, org.jruby.runtime.builtin.IRubyObject repl)

rb_str_tr_s / rb_str_tr_s_bang

tr_s19

IRubyObject tr_s19 ( ThreadContext context, IRubyObject src, IRubyObject repl )
Java: tr_s19(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject src, org.jruby.runtime.builtin.IRubyObject repl)

tr_s_bang

IRubyObject tr_s_bang ( ThreadContext context, IRubyObject src, IRubyObject repl )
Java: tr_s_bang(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject src, org.jruby.runtime.builtin.IRubyObject repl)

tr_s_bang19

IRubyObject tr_s_bang19 ( ThreadContext context, IRubyObject src, IRubyObject repl )
Java: tr_s_bang19(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject src, org.jruby.runtime.builtin.IRubyObject repl)

undump

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

unicode_value

String unicode_value ( )
Java: getUnicodeValue() · also: get_unicode_value

used by ar-jdbc

unpack

RubyArray unpack ( ThreadContext context, IRubyObject obj, Block block )
Java: unpack(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj, org.jruby.runtime.Block block)

unpack

RubyArray unpack ( ThreadContext context, IRubyObject obj, IRubyObject opt, Block block )
Java: unpack(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj, org.jruby.runtime.builtin.IRubyObject opt, org.jruby.runtime.Block block)

unpack

RubyArray unpack ( IRubyObject obj )
Java: unpack(org.jruby.runtime.builtin.IRubyObject obj)

unpack1

IRubyObject unpack1 ( ThreadContext context, IRubyObject obj, Block block )
Java: unpack1(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj, org.jruby.runtime.Block block)

unpack1

IRubyObject unpack1 ( ThreadContext context, IRubyObject obj, IRubyObject opt, Block block )
Java: unpack1(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject obj, org.jruby.runtime.builtin.IRubyObject opt, org.jruby.runtime.Block block)

unseeded_str_hash_code

int unseeded_str_hash_code ( Ruby runtime )
Java: unseededStrHashCode(org.jruby.Ruby runtime)

Generate a hash for the String, without a seed.

nametypedescription
runtimeorg.jruby.Rubythe runtime

Returns: calculated hash

upcase

RubyString upcase ( ThreadContext context )
Java: upcase(org.jruby.runtime.ThreadContext context)

rb_str_upcase / rb_str_upcase_bang

upcase

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

upcase

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

upcase_bang

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

upcase_bang

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

upcase_bang

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

upto

IRubyObject upto ( ThreadContext context, IRubyObject end, Block block )
Java: upto(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject end, org.jruby.runtime.Block block)

rb_str_upto_m

upto

IRubyObject upto ( ThreadContext context, IRubyObject end, IRubyObject excl, Block block )
Java: upto(org.jruby.runtime.ThreadContext context, org.jruby.runtime.builtin.IRubyObject end, org.jruby.runtime.builtin.IRubyObject excl, org.jruby.runtime.Block block)

valid_encoding_p

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

value

CharSequence value ( )
Java: getValue() · also: get_value

value=

value= ( CharSequence value )
Java: setValue(CharSequence value) · also: set_value

value=

value= ( ByteList value )
Java: setValue(org.jruby.util.ByteList value) · also: set_value

verify_ascii_compatible

verify_ascii_compatible ( )
Java: verifyAsciiCompatible()

view

view ( ByteList bytes )
Java: view(org.jruby.util.ByteList bytes)

Inherited

from IRubyObject

check_string_type19

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

is this a string?

Returns: the string if so

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 CharSequence

chars

IntStream chars ( )
Java: chars()

code_points

IntStream code_points ( )
Java: codePoints()

get_chars

get_chars ( int arg0, int arg1, char[] arg2, int arg3 )
Java: getChars(int arg0, int arg1, char[] arg2, int arg3)

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.
COMPARE_BY_IDENTITY_F int
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
FL_USHIFT int
FROZEN_F int
IS_OVERLAID_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.
REFINED_MODULE_F int
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.
USER0_F int
USER1_F int
USER2_F int
USER3_F int
USER4_F int
USER5_F int
USER6_F int
USER7_F int
USER8_F int
USER9_F int
USERA_F int
VAR_TABLE_OFFSET long
varTable Object[] variable table, lazily allocated as needed (if needed)
varTableStamp int 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 #<>.

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.

call_method

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

call_method

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

call_super

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

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

class?

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

Specifically polymorphic method that are meant to be overridden by classes to specify that they are classes in an easy way.

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_integer

RubyInteger convert_to_integer ( int method_index, String convert_method )
Java: convertToInteger(int methodIndex, String convertMethod)

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_get_struct_checked

Object data_get_struct_checked ( )
Java: dataGetStructChecked()

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)

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? Based on the #FALSE_F flag.

Returns: true is false

fast_get_instance_variable

IRubyObject fast_get_instance_variable ( String interned_name )
Java: fastGetInstanceVariable(String internedName)

fast_get_internal_variable

Object fast_get_internal_variable ( String interned_name )
Java: fastGetInternalVariable(String internedName)

fast_has_instance_variable

boolean fast_has_instance_variable ( String interned_name )
Java: fastHasInstanceVariable(String internedName)

fast_has_internal_variable

boolean fast_has_internal_variable ( String interned_name )
Java: fastHasInternalVariable(String internedName)

fast_set_instance_variable

IRubyObject fast_set_instance_variable ( String interned_name, IRubyObject value )
Java: fastSetInstanceVariable(String internedName, org.jruby.runtime.builtin.IRubyObject value)

fast_set_internal_variable

fast_set_internal_variable ( String interned_name, Object value )
Java: fastSetInternalVariable(String internedName, Object value)

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. Shortcut for doing setFlag(FROZEN_F, frozen).

nametypedescription
frozenbooleanshould this object be frozen?

frozen?

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

Is this value frozen or not? Shortcut for doing getFlag(FROZEN_F).

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)

Get the value of a custom flag on this object. The only guaranteed flags that can be sent in to this method is:

  • #FALSE_F
  • #NIL_F
  • #FROZEN_F

nametypedescription
flagintthe flag to get

Returns: true if the flag is set, false otherwise

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

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)

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

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

methods

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

module?

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

Specifically polymorphic method that are meant to be overridden by modules to specify that they are modules in an easy way.

native_handle

Object native_handle ( )
Java: getNativeHandle() · also: get_native_handle

native_handle=

native_handle= ( Object value )
Java: setNativeHandle(Object value) · also: set_native_handle

native_type_index

int native_type_index ( )
Java: getNativeTypeIndex() · also: get_native_type_index

nil?

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

Does this object represent nil? See the docs for the #NIL_F flag for more information.

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

respond_to_p

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

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)

Sets or unsets a flag on this object. The only flags that are guaranteed to be valid to use as the first argument is:

  • #FALSE_F
  • #NIL_F
  • #FROZEN_F

nametypedescription
flagintthe actual flag to set or unset.
setbooleanif true, the flag will be set, if false, the flag will be unset.

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_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.

sync_variables

sync_variables ( List<Variable<Object>> variables )
Java: syncVariables(List<org.jruby.runtime.builtin.Variable<Object>> variables)

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)

to_a

RubyArray to_a ( )
Java: to_a()

to_s

IRubyObject to_s ( )
Java: to_s()
Deprecated. Use RubyBasicObject#to_s(ThreadContext) instead.

Returns: ""

true?

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

Is this value a truthy value or not? Based on the #FALSE_F flag.

Returns: true it truthy

trust

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

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)

untrust

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

untrusted=

untrusted= ( boolean untrusted )
Java: setUntrusted(boolean untrusted) · also: set_untrusted

untrusted?

boolean untrusted? ( )
Java: isUntrusted() · also: is_untrusted

untrusted_p

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

variable_count

int variable_count ( )
Java: getVariableCount() · also: get_variable_count

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)

convert_to_type

IRubyObject convert_to_type ( RubyClass target, int convert_method_index )
Java: convertToType(org.jruby.RubyClass target, int convertMethodIndex)

op_eqq

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

rb_equal The Ruby "===" method is used by default in case/when statements. The Object implementation first checks Java identity equality and then calls the "==" method too.

specific_eval

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

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.