|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.RubyObject
org.jruby.RubyString
public class RubyString
Implementation of Ruby String class Concurrency: no synchronization is required among readers, but all users must synchronize externally with writers.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jruby.RubyObject |
---|
RubyObject.Finalizer, RubyObject.ObjectMethods, RubyObject.VariableTableEntry |
Field Summary |
---|
Fields inherited from class org.jruby.RubyObject |
---|
ALL_F, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, metaClass, NEVER, NIL_F, OBJECT_ALLOCATOR, TAINTED_F, UNDEF, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F, VARIABLE_TABLE_DEFAULT_CAPACITY, VARIABLE_TABLE_EMPTY_TABLE, VARIABLE_TABLE_LOAD_FACTOR, VARIABLE_TABLE_MAXIMUM_CAPACITY, variableTable, variableTableSize, variableTableThreshold |
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject |
---|
NULL_ARRAY |
Method Summary | |
---|---|
RubyString |
append(IRubyObject other)
rb_str_append |
java.lang.String |
asJavaString()
rb_to_id |
RubyString |
asString()
rb_obj_as_string First converts this object into a String using the "to_s" method, infects it with the current taint and returns it. |
static java.lang.String |
byteListToString(ByteList bytes)
|
static java.lang.String |
bytesToString(byte[] bytes)
|
static java.lang.String |
bytesToString(byte[] bytes,
int beg,
int len)
|
IRubyObject |
capitalize_bang(ThreadContext context)
rb_str_capitalize_bang |
IRubyObject |
capitalize(ThreadContext context)
rb_str_capitalize |
IRubyObject |
casecmp(IRubyObject other)
|
RubyString |
cat(byte[] str)
|
RubyString |
cat(byte[] str,
int beg,
int len)
|
RubyString |
cat(ByteList str)
|
IRubyObject |
center(IRubyObject arg0)
rb_str_center |
IRubyObject |
center(IRubyObject[] args)
Deprecated. use the one or two argument versions. |
IRubyObject |
center(IRubyObject arg0,
IRubyObject arg1)
rb_str_center |
IRubyObject |
checkStringType()
rb_check_string_type Tries to return a coerced string representation of this object, using "to_str". |
IRubyObject |
chomp_bang()
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]. |
IRubyObject |
chomp_bang(IRubyObject arg0)
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]. |
IRubyObject |
chomp_bang(IRubyObject[] args)
Deprecated. Use the zero or one argument versions. |
RubyString |
chomp()
rb_str_chop |
RubyString |
chomp(IRubyObject arg0)
rb_str_chop |
RubyString |
chomp(IRubyObject[] args)
Deprecated. Use the zero or one argument versions. |
IRubyObject |
chop_bang()
rb_str_chop_bang |
IRubyObject |
chop(ThreadContext context)
|
RubyString |
concat(IRubyObject other)
rb_str_concat |
RubyString |
convertToString()
Tries to convert this object to a Ruby String using the "to_str" method. |
IRubyObject |
count(IRubyObject[] args)
rb_str_count |
static RubyClass |
createStringClass(Ruby runtime)
|
RubyString |
crypt(ThreadContext context,
IRubyObject other)
rb_str_crypt |
IRubyObject |
delete_bang(IRubyObject[] args)
rb_str_delete_bang |
IRubyObject |
delete(ThreadContext context,
IRubyObject[] args)
rb_str_delete |
IRubyObject |
doClone()
|
IRubyObject |
downcase_bang(ThreadContext context)
rb_str_downcase_bang |
RubyString |
downcase(ThreadContext context)
rb_str_downcase |
IRubyObject |
dump()
rb_str_dump |
RubyString |
each_byte(ThreadContext context,
Block block)
rb_str_each_byte |
IRubyObject |
each_line(ThreadContext context,
IRubyObject[] args,
Block block)
rb_str_each_line |
RubyBoolean |
empty_p(ThreadContext context)
rb_str_empty |
void |
empty()
|
boolean |
eql(IRubyObject other)
short circuit for String key comparison |
boolean |
equals(java.lang.Object other)
This method is just a wrapper around the Ruby "==" method, provided so that RubyObjects can be used as keys in the Java HashMap object underlying RubyHash. |
ByteList |
getByteList()
|
byte[] |
getBytes()
|
java.lang.Class |
getJavaClass()
Will return the Java interface that most closely can represent this object, when working through JAva integration translations. |
int |
getNativeTypeIndex()
This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are. |
java.lang.String |
getUnicodeValue()
used by ar-jdbc |
java.lang.CharSequence |
getValue()
|
IRubyObject |
gsub_bang(ThreadContext context,
IRubyObject[] args,
Block block)
Deprecated. Use the versions with one or two arguments. |
IRubyObject |
gsub_bang(ThreadContext context,
IRubyObject arg0,
Block block)
rb_str_gsub_bang |
IRubyObject |
gsub_bang(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
Block block)
rb_str_gsub_bang |
IRubyObject |
gsub(ThreadContext context,
IRubyObject[] args,
Block block)
Deprecated. Use the versions with one or two arguments. |
IRubyObject |
gsub(ThreadContext context,
IRubyObject arg0,
Block block)
rb_str_gsub |
IRubyObject |
gsub(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
Block block)
rb_str_gsub |
RubyFixnum |
hash()
rb_obj_id Will return the hash code of this object. |
int |
hashCode()
Override the Object#hashCode method to make sure that the Ruby hash is actually used as the hashcode for Ruby objects. |
IRubyObject |
hex(ThreadContext context)
rb_str_hex |
RubyBoolean |
include_p(ThreadContext context,
IRubyObject obj)
rb_str_include |
IRubyObject |
index(ThreadContext context,
IRubyObject arg0)
rb_str_index_m |
IRubyObject |
index(ThreadContext context,
IRubyObject[] args)
Deprecated. Use the versions with one or two args. |
IRubyObject |
index(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1)
rb_str_index_m |
IRubyObject |
initialize()
rb_obj_dummy Default initialize method. |
IRubyObject |
initialize(IRubyObject arg0)
|
IRubyObject |
initialize(IRubyObject[] args,
Block unusedBlock)
Deprecated. Use the versions with zero or one arguments |
IRubyObject |
insert(ThreadContext context,
IRubyObject indexArg,
IRubyObject stringArg)
|
IRubyObject |
inspect()
rb_str_inspect |
RubySymbol |
intern()
rb_str_intern |
static boolean |
isAlnum(int c)
|
static boolean |
isDigit(int c)
|
boolean |
isEmpty()
|
static boolean |
isLetter(int c)
|
static boolean |
isLower(int c)
|
static boolean |
isPrint(int c)
|
static boolean |
isUpper(int c)
|
RubyFixnum |
length()
rb_str_length |
IRubyObject |
ljust(IRubyObject arg0)
rb_str_ljust |
IRubyObject |
ljust(IRubyObject[] args)
Deprecated. use the one or two argument versions. |
IRubyObject |
ljust(IRubyObject arg0,
IRubyObject arg1)
rb_str_ljust |
IRubyObject |
lstrip_bang()
rb_str_lstrip_bang |
IRubyObject |
lstrip(ThreadContext context)
rb_str_lstrip |
RubyString |
makeShared(Ruby runtime,
int index,
int len)
|
IRubyObject |
match(ThreadContext context,
IRubyObject pattern)
String#match(pattern) rb_str_match_m |
void |
modify()
rb_str_modify |
void |
modify(int length)
rb_str_modify (with length bytes ensured) |
static RubyString |
newEmptyString(Ruby runtime)
|
static RubyString |
newEmptyString(Ruby runtime,
RubyClass metaClass)
|
static RubyString |
newInstance(IRubyObject recv,
IRubyObject[] args,
Block block)
rb_str_s_new |
RubyString |
newString(ByteList s)
Deprecated. |
RubyString |
newString(java.lang.CharSequence s)
Deprecated. |
static RubyString |
newString(Ruby runtime,
byte[] bytes)
|
static RubyString |
newString(Ruby runtime,
byte[] bytes,
int start,
int length)
|
static RubyString |
newString(Ruby runtime,
ByteList bytes)
|
static RubyString |
newString(Ruby runtime,
java.lang.CharSequence str)
rb_str_new2 |
static RubyString |
newString(Ruby runtime,
RubyClass clazz,
java.lang.CharSequence str)
Deprecated. |
static RubyString |
newStringLight(Ruby runtime,
ByteList bytes)
|
static RubyString |
newStringShared(Ruby runtime,
byte[] bytes,
int start,
int length)
|
static RubyString |
newStringShared(Ruby runtime,
ByteList bytes)
|
static RubyString |
newStringShared(Ruby runtime,
RubyClass clazz,
ByteList bytes)
|
static RubyString |
newStringShared(Ruby runtime,
RubyString orig)
|
static RubyString |
newUnicodeString(Ruby runtime,
java.lang.String str)
|
static RubyString |
objAsString(ThreadContext context,
IRubyObject obj)
rb_obj_as_string |
IRubyObject |
oct(ThreadContext context)
rb_str_oct |
IRubyObject |
op_aref(ThreadContext context,
IRubyObject arg)
rb_str_aref, rb_str_aref_m |
IRubyObject |
op_aref(ThreadContext context,
IRubyObject[] args)
Deprecated. Use the versions with one or two args |
IRubyObject |
op_aref(ThreadContext context,
IRubyObject arg1,
IRubyObject arg2)
rb_str_aref, rb_str_aref_m |
IRubyObject |
op_aset(ThreadContext context,
IRubyObject[] args)
Deprecated. Use the versions with two or three args. |
IRubyObject |
op_aset(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1)
rb_str_aset, rb_str_aset_m |
IRubyObject |
op_aset(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
IRubyObject arg2)
rb_str_aset, rb_str_aset_m |
int |
op_cmp(RubyString other)
rb_str_cmp |
IRubyObject |
op_cmp(ThreadContext context,
IRubyObject other)
|
IRubyObject |
op_equal(ThreadContext context,
IRubyObject other)
rb_obj_equal Will by default use identity equality to compare objects. |
IRubyObject |
op_format(ThreadContext context,
IRubyObject arg)
|
IRubyObject |
op_ge(ThreadContext context,
IRubyObject other)
|
IRubyObject |
op_gt(ThreadContext context,
IRubyObject other)
|
IRubyObject |
op_le(ThreadContext context,
IRubyObject other)
|
IRubyObject |
op_lt(ThreadContext context,
IRubyObject other)
|
IRubyObject |
op_match(ThreadContext context,
IRubyObject other)
rb_str_match |
IRubyObject |
op_match2(ThreadContext context)
rb_str_match2 |
IRubyObject |
op_mul(ThreadContext context,
IRubyObject other)
|
IRubyObject |
op_plus(ThreadContext context,
IRubyObject other)
|
IRubyObject |
replace(int beg,
int len,
RubyString replaceWith)
|
RubyString |
replace(IRubyObject other)
rb_str_replace_m |
RubyString |
reverse_bang()
|
RubyString |
reverse(ThreadContext context)
|
IRubyObject |
rindex(ThreadContext context,
IRubyObject arg0)
rb_str_rindex_m |
IRubyObject |
rindex(ThreadContext context,
IRubyObject[] args)
Deprecated. Use the versions with one or two arguments. |
IRubyObject |
rindex(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1)
rb_str_rindex_m |
IRubyObject |
rjust(IRubyObject arg0)
rb_str_rjust |
IRubyObject |
rjust(IRubyObject[] args)
Deprecated. use the one or two argument versions. |
IRubyObject |
rjust(IRubyObject arg0,
IRubyObject arg1)
rb_str_rjust |
IRubyObject |
rstrip_bang()
rb_str_rstrip_bang |
IRubyObject |
rstrip(ThreadContext context)
rb_str_rstrip |
IRubyObject |
scan(ThreadContext context,
IRubyObject arg,
Block block)
rb_str_scan |
void |
setValue(ByteList value)
|
void |
setValue(java.lang.CharSequence value)
Deprecated. |
IRubyObject |
slice_bang(ThreadContext context,
IRubyObject arg0)
rb_str_slice_bang |
IRubyObject |
slice_bang(ThreadContext context,
IRubyObject[] args)
Deprecated. Use the versions with one or two args. |
IRubyObject |
slice_bang(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1)
rb_str_slice_bang |
RubyArray |
split(ThreadContext context)
rb_str_split_m |
RubyArray |
split(ThreadContext context,
IRubyObject arg0)
rb_str_split_m |
RubyArray |
split(ThreadContext context,
IRubyObject[] args)
Deprecated. Use the versions with zero, one, or two args. |
RubyArray |
split(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1)
rb_str_split_m |
IRubyObject |
squeeze_bang(IRubyObject[] args)
rb_str_squeeze_bang |
IRubyObject |
squeeze(ThreadContext context,
IRubyObject[] args)
rb_str_squeeze |
IRubyObject |
str_eql_p(ThreadContext context,
IRubyObject other)
|
RubyString |
strDup()
Deprecated. |
RubyString |
strDup(Ruby runtime)
|
static byte[] |
stringToBytes(java.lang.String string)
|
static RubyString |
stringValue(IRubyObject object)
|
IRubyObject |
strip_bang()
rb_str_strip_bang |
IRubyObject |
strip(ThreadContext context)
rb_str_strip |
IRubyObject |
sub_bang(ThreadContext context,
IRubyObject[] args,
Block block)
Deprecated. Use the versions with one or two arguments. |
IRubyObject |
sub_bang(ThreadContext context,
IRubyObject arg0,
Block block)
rb_str_sub_bang |
IRubyObject |
sub_bang(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
Block block)
rb_str_sub_bang |
IRubyObject |
sub(ThreadContext context,
IRubyObject[] args,
Block block)
Deprecated. Use the versions with one or two args. |
IRubyObject |
sub(ThreadContext context,
IRubyObject arg0,
Block block)
rb_str_sub |
IRubyObject |
sub(ThreadContext context,
IRubyObject arg0,
IRubyObject arg1,
Block block)
rb_str_sub |
IRubyObject |
substr(int beg,
int len)
|
IRubyObject |
substr(Ruby runtime,
int beg,
int len)
|
IRubyObject |
succ_bang()
|
IRubyObject |
succ(ThreadContext context)
|
RubyInteger |
sum(IRubyObject[] args)
|
IRubyObject |
swapcase_bang(ThreadContext context)
rb_str_swapcase_bang |
RubyString |
swapcase(ThreadContext context)
rb_str_swapcase |
IRubyObject |
to_f()
rb_str_to_f |
IRubyObject |
to_i()
rb_str_to_i |
IRubyObject |
to_i(IRubyObject arg0)
rb_str_to_i |
IRubyObject |
to_i(IRubyObject[] args)
Deprecated. Use the versions with zero or one args. |
IRubyObject |
to_java()
|
IRubyObject |
to_s()
rb_any_to_s call-seq: obj.to_s => string Returns a string representing obj. |
RubySymbol |
to_sym()
|
java.lang.String |
toString()
The default toString method is just a wrapper that calls the Ruby "to_s" method. |
IRubyObject |
tr_bang(IRubyObject src,
IRubyObject repl)
rb_str_tr_bang |
IRubyObject |
tr_s_bang(IRubyObject src,
IRubyObject repl)
rb_str_tr_s_bang |
IRubyObject |
tr_s(ThreadContext context,
IRubyObject src,
IRubyObject repl)
rb_str_tr_s |
IRubyObject |
tr(ThreadContext context,
IRubyObject src,
IRubyObject repl)
rb_str_tr |
static RubyString |
unmarshalFrom(UnmarshalStream input)
|
RubyArray |
unpack(IRubyObject obj)
|
IRubyObject |
upcase_bang(ThreadContext context)
rb_str_upcase_bang |
RubyString |
upcase(ThreadContext context)
rb_str_upcase |
IRubyObject |
upto(ThreadContext context,
IRubyObject str,
Block block)
rb_str_upto_m |
IRubyObject |
upto(ThreadContext context,
IRubyObject str,
boolean excl,
Block block)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static RubyClass createStringClass(Ruby runtime)
public final boolean eql(IRubyObject other)
eql
in interface IRubyObject
eql
in class RubyObject
public RubyString newString(java.lang.CharSequence s)
public RubyString newString(ByteList s)
public static RubyString newString(Ruby runtime, java.lang.CharSequence str)
public static RubyString newEmptyString(Ruby runtime)
public static RubyString newEmptyString(Ruby runtime, RubyClass metaClass)
public static RubyString newUnicodeString(Ruby runtime, java.lang.String str)
@Deprecated public static RubyString newString(Ruby runtime, RubyClass clazz, java.lang.CharSequence str)
public static RubyString newString(Ruby runtime, byte[] bytes)
public static RubyString newString(Ruby runtime, byte[] bytes, int start, int length)
public static RubyString newString(Ruby runtime, ByteList bytes)
public static RubyString newStringLight(Ruby runtime, ByteList bytes)
public static RubyString newStringShared(Ruby runtime, RubyString orig)
public static RubyString newStringShared(Ruby runtime, ByteList bytes)
public static RubyString newStringShared(Ruby runtime, RubyClass clazz, ByteList bytes)
public static RubyString newStringShared(Ruby runtime, byte[] bytes, int start, int length)
public int getNativeTypeIndex()
RubyObject
getNativeTypeIndex
in interface CoreObjectType
getNativeTypeIndex
in class RubyObject
org.jruby.runtime.ClassInde
public java.lang.Class getJavaClass()
RubyObject
getJavaClass
in interface IRubyObject
getJavaClass
in class RubyObject
public RubyString convertToString()
RubyObject
convertToString
in interface IRubyObject
convertToString
in class RubyObject
public java.lang.String toString()
RubyObject
toString
in class RubyObject
@Deprecated public final RubyString strDup()
public final RubyString strDup(Ruby runtime)
public final RubyString makeShared(Ruby runtime, int index, int len)
public final void modify()
public final void modify(int length)
public static java.lang.String bytesToString(byte[] bytes, int beg, int len)
public static java.lang.String byteListToString(ByteList bytes)
public static java.lang.String bytesToString(byte[] bytes)
public static byte[] stringToBytes(java.lang.String string)
public static boolean isDigit(int c)
public static boolean isUpper(int c)
public static boolean isLower(int c)
public static boolean isLetter(int c)
public static boolean isAlnum(int c)
public static boolean isPrint(int c)
public RubyString asString()
RubyObject
RubyObject.anyToString()
is used
instead.
asString
in interface IRubyObject
asString
in class RubyObject
public IRubyObject checkStringType()
RubyObject
checkStringType
in interface IRubyObject
checkStringType
in class RubyObject
public IRubyObject to_s()
RubyObject
to_s
prints the object's class and an encoding of the
object id. As a special case, the top-level object that is the
initial execution context of Ruby programs returns ``main.''
to_s
in class RubyObject
public IRubyObject op_cmp(ThreadContext context, IRubyObject other)
public IRubyObject op_equal(ThreadContext context, IRubyObject other)
RubyObject
op_equal
in interface IRubyObject
op_equal
in class RubyObject
public IRubyObject op_plus(ThreadContext context, IRubyObject other)
public IRubyObject op_mul(ThreadContext context, IRubyObject other)
public IRubyObject op_format(ThreadContext context, IRubyObject arg)
public RubyFixnum hash()
RubyObject
hash
in class RubyObject
public int hashCode()
RubyObject
hashCode
in class RubyObject
public boolean equals(java.lang.Object other)
RubyObject
equals
in class RubyObject
public static RubyString objAsString(ThreadContext context, IRubyObject obj)
public int op_cmp(RubyString other)
public java.lang.String asJavaString()
asJavaString
in interface IRubyObject
asJavaString
in class RubyObject
public IRubyObject doClone()
public RubyString cat(byte[] str)
public RubyString cat(byte[] str, int beg, int len)
public RubyString cat(ByteList str)
public RubyString replace(IRubyObject other)
public RubyString reverse(ThreadContext context)
public RubyString reverse_bang()
public static RubyString newInstance(IRubyObject recv, IRubyObject[] args, Block block)
public IRubyObject initialize(IRubyObject[] args, Block unusedBlock)
public IRubyObject initialize()
RubyObject
initialize
in class RubyObject
public IRubyObject initialize(IRubyObject arg0)
public IRubyObject casecmp(IRubyObject other)
public IRubyObject op_match(ThreadContext context, IRubyObject other)
op_match
in class RubyObject
public IRubyObject op_match2(ThreadContext context)
public IRubyObject match(ThreadContext context, IRubyObject pattern)
pattern
- Regexp or Stringpublic IRubyObject capitalize(ThreadContext context)
public IRubyObject capitalize_bang(ThreadContext context)
public IRubyObject op_ge(ThreadContext context, IRubyObject other)
public IRubyObject op_gt(ThreadContext context, IRubyObject other)
public IRubyObject op_le(ThreadContext context, IRubyObject other)
public IRubyObject op_lt(ThreadContext context, IRubyObject other)
public IRubyObject str_eql_p(ThreadContext context, IRubyObject other)
public RubyString upcase(ThreadContext context)
public IRubyObject upcase_bang(ThreadContext context)
public RubyString downcase(ThreadContext context)
public IRubyObject downcase_bang(ThreadContext context)
public RubyString swapcase(ThreadContext context)
public IRubyObject swapcase_bang(ThreadContext context)
public IRubyObject dump()
public IRubyObject insert(ThreadContext context, IRubyObject indexArg, IRubyObject stringArg)
public IRubyObject inspect()
inspect
in interface IRubyObject
inspect
in class RubyObject
public RubyFixnum length()
public RubyBoolean empty_p(ThreadContext context)
public boolean isEmpty()
public RubyString append(IRubyObject other)
public RubyString concat(IRubyObject other)
public RubyString crypt(ThreadContext context, IRubyObject other)
public static RubyString stringValue(IRubyObject object)
public IRubyObject sub(ThreadContext context, IRubyObject[] args, Block block)
public IRubyObject sub(ThreadContext context, IRubyObject arg0, Block block)
public IRubyObject sub(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
public IRubyObject sub_bang(ThreadContext context, IRubyObject[] args, Block block)
public IRubyObject sub_bang(ThreadContext context, IRubyObject arg0, Block block)
public IRubyObject sub_bang(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
public IRubyObject gsub(ThreadContext context, IRubyObject[] args, Block block)
public IRubyObject gsub(ThreadContext context, IRubyObject arg0, Block block)
public IRubyObject gsub(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
public IRubyObject gsub_bang(ThreadContext context, IRubyObject[] args, Block block)
public IRubyObject gsub_bang(ThreadContext context, IRubyObject arg0, Block block)
public IRubyObject gsub_bang(ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
public IRubyObject index(ThreadContext context, IRubyObject[] args)
public IRubyObject index(ThreadContext context, IRubyObject arg0)
public IRubyObject index(ThreadContext context, IRubyObject arg0, IRubyObject arg1)
public IRubyObject rindex(ThreadContext context, IRubyObject[] args)
public IRubyObject rindex(ThreadContext context, IRubyObject arg0)
public IRubyObject rindex(ThreadContext context, IRubyObject arg0, IRubyObject arg1)
public IRubyObject substr(int beg, int len)
public IRubyObject substr(Ruby runtime, int beg, int len)
public IRubyObject replace(int beg, int len, RubyString replaceWith)
public IRubyObject op_aref(ThreadContext context, IRubyObject[] args)
public IRubyObject op_aref(ThreadContext context, IRubyObject arg1, IRubyObject arg2)
public IRubyObject op_aref(ThreadContext context, IRubyObject arg)
public IRubyObject op_aset(ThreadContext context, IRubyObject[] args)
public IRubyObject op_aset(ThreadContext context, IRubyObject arg0, IRubyObject arg1)
public IRubyObject op_aset(ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
public IRubyObject slice_bang(ThreadContext context, IRubyObject[] args)
public IRubyObject slice_bang(ThreadContext context, IRubyObject arg0)
public IRubyObject slice_bang(ThreadContext context, IRubyObject arg0, IRubyObject arg1)
public IRubyObject succ(ThreadContext context)
public IRubyObject succ_bang()
public IRubyObject upto(ThreadContext context, IRubyObject str, Block block)
public IRubyObject upto(ThreadContext context, IRubyObject str, boolean excl, Block block)
public RubyBoolean include_p(ThreadContext context, IRubyObject obj)
public IRubyObject to_i(IRubyObject[] args)
public IRubyObject to_i()
public IRubyObject to_i(IRubyObject arg0)
public IRubyObject oct(ThreadContext context)
public IRubyObject hex(ThreadContext context)
public IRubyObject to_f()
public RubyArray split(ThreadContext context, IRubyObject[] args)
public RubyArray split(ThreadContext context)
public RubyArray split(ThreadContext context, IRubyObject arg0)
public RubyArray split(ThreadContext context, IRubyObject arg0, IRubyObject arg1)
public IRubyObject scan(ThreadContext context, IRubyObject arg, Block block)
public IRubyObject ljust(IRubyObject[] args)
public IRubyObject ljust(IRubyObject arg0)
public IRubyObject ljust(IRubyObject arg0, IRubyObject arg1)
public IRubyObject rjust(IRubyObject[] args)
public IRubyObject rjust(IRubyObject arg0)
public IRubyObject rjust(IRubyObject arg0, IRubyObject arg1)
public IRubyObject center(IRubyObject[] args)
public IRubyObject center(IRubyObject arg0)
public IRubyObject center(IRubyObject arg0, IRubyObject arg1)
public IRubyObject chop(ThreadContext context)
public IRubyObject chop_bang()
public RubyString chomp(IRubyObject[] args)
args
-
public RubyString chomp()
public RubyString chomp(IRubyObject arg0)
public IRubyObject chomp_bang(IRubyObject[] args)
public IRubyObject chomp_bang()
args
- See method description.public IRubyObject chomp_bang(IRubyObject arg0)
args
- See method description.public IRubyObject lstrip(ThreadContext context)
public IRubyObject lstrip_bang()
public IRubyObject rstrip(ThreadContext context)
public IRubyObject rstrip_bang()
public IRubyObject strip(ThreadContext context)
public IRubyObject strip_bang()
public IRubyObject count(IRubyObject[] args)
public IRubyObject delete(ThreadContext context, IRubyObject[] args)
public IRubyObject delete_bang(IRubyObject[] args)
public IRubyObject squeeze(ThreadContext context, IRubyObject[] args)
public IRubyObject squeeze_bang(IRubyObject[] args)
public IRubyObject tr(ThreadContext context, IRubyObject src, IRubyObject repl)
public IRubyObject tr_bang(IRubyObject src, IRubyObject repl)
public IRubyObject tr_s(ThreadContext context, IRubyObject src, IRubyObject repl)
public IRubyObject tr_s_bang(IRubyObject src, IRubyObject repl)
public IRubyObject each_line(ThreadContext context, IRubyObject[] args, Block block)
public RubyString each_byte(ThreadContext context, Block block)
public RubySymbol intern()
public RubySymbol to_sym()
public RubyInteger sum(IRubyObject[] args)
public static RubyString unmarshalFrom(UnmarshalStream input) throws java.io.IOException
java.io.IOException
public RubyArray unpack(IRubyObject obj)
Pack.unpack(org.jruby.Ruby, ByteList, ByteList)
public void empty()
public void setValue(java.lang.CharSequence value)
value
- The new java.lang.String this RubyString should encapsulatepublic void setValue(ByteList value)
public java.lang.CharSequence getValue()
public byte[] getBytes()
public ByteList getByteList()
public java.lang.String getUnicodeValue()
public IRubyObject to_java()
to_java
in class RubyObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |