|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.RubyBasicObject
org.jruby.RubyObject
org.jruby.RubyRegexp
public class RubyRegexp
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jruby.RubyObject |
---|
RubyObject.ObjectMethods |
Nested classes/interfaces inherited from class org.jruby.RubyBasicObject |
---|
RubyBasicObject.BasicObjectMethods, RubyBasicObject.Finalizer, RubyBasicObject.VariableTableEntry |
Field Summary |
---|
Fields inherited from class org.jruby.RubyObject |
---|
OBJECT_ALLOCATOR |
Fields inherited from class org.jruby.RubyBasicObject |
---|
ALL_F, dataStruct, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, metaClass, NEVER, NIL_F, 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.parser.ReOptions |
---|
RE_MAY_IGNORECASE, RE_OPTION_EXTENDED, RE_OPTION_IGNORECASE, RE_OPTION_LONGEST, RE_OPTION_MULTILINE, RE_OPTION_ONCE, RE_OPTION_POSIXLINE, RE_OPTION_SINGLELINE, RE_UNICODE |
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject |
---|
NULL_ARRAY |
Method Summary | |
---|---|
IRubyObject |
casefold_p(ThreadContext context)
|
void |
clearEncodingNone()
|
void |
clearKCodeDefault()
|
void |
clearKCodeFixed()
|
void |
clearLiteral()
|
static RubyClass |
createRegexpClass(Ruby runtime)
|
IRubyObject |
encoding(ThreadContext context)
|
IRubyObject |
eqq(ThreadContext context,
IRubyObject str)
rb_reg_eqq |
IRubyObject |
fixed_encoding_p(ThreadContext context)
|
Encoding |
getEncoding()
|
KCode |
getKCode()
|
int |
getNativeTypeIndex()
This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are. |
Regex |
getPattern()
|
RubyFixnum |
hash()
rb_obj_id Will return the hash code of this object. |
IRubyObject |
initialize_copy(IRubyObject re)
rb_reg_init_copy |
IRubyObject |
initialize_m(IRubyObject[] args)
rb_reg_initialize_m |
IRubyObject |
inspect()
rb_reg_inspect |
boolean |
isEncodingNone()
|
boolean |
isKCodeDefault()
|
boolean |
isKCodeFixed()
|
boolean |
isLiteral()
|
IRubyObject |
kcode(ThreadContext context)
|
static IRubyObject |
last_match_s(ThreadContext context,
IRubyObject recv)
rb_reg_s_last_match / match_getter |
static IRubyObject |
last_match_s(ThreadContext context,
IRubyObject recv,
IRubyObject nth)
rb_reg_s_last_match |
static IRubyObject |
last_match_s(ThreadContext context,
IRubyObject recv,
IRubyObject[] args)
Deprecated. Use the versions with zero, one, or two args. |
static IRubyObject |
last_match(IRubyObject match)
rb_reg_last_match |
static void |
marshalTo(RubyRegexp regexp,
MarshalStream output)
|
static IRubyObject |
match_last(IRubyObject match)
rb_reg_match_last |
IRubyObject |
match_m(ThreadContext context,
IRubyObject str)
rb_reg_match_m |
static IRubyObject |
match_post(IRubyObject match)
rb_reg_match_post |
static IRubyObject |
match_pre(IRubyObject match)
rb_reg_match_pre |
IRubyObject |
named_captures(ThreadContext context)
rb_reg_named_captures |
IRubyObject |
names(ThreadContext context)
rb_reg_names |
static RubyRegexp |
newInstance(IRubyObject recv,
IRubyObject[] args)
|
static RubyRegexp |
newRegexp(Ruby runtime,
ByteList pattern,
int options)
|
static RubyRegexp |
newRegexp(Ruby runtime,
ByteList pattern,
int options,
boolean quote)
|
static RubyRegexp |
newRegexp(Ruby runtime,
java.lang.String pattern,
int options)
|
static IRubyObject |
nth_match(int nth,
IRubyObject match)
rb_reg_nth_match |
IRubyObject |
op_equal(ThreadContext context,
IRubyObject other)
rb_obj_equal Will by default use identity equality to compare objects. |
IRubyObject |
op_match(ThreadContext context,
IRubyObject str)
rb_reg_match |
IRubyObject |
op_match2(ThreadContext context)
|
IRubyObject |
options()
|
static ByteList |
quote(ByteList str,
KCode kcode)
rb_reg_quote |
static RubyString |
quote(IRubyObject recv,
IRubyObject[] args)
rb_reg_s_quote |
RubyString |
regsub(RubyString str,
RubyString src,
Matcher matcher)
|
int |
search(ThreadContext context,
RubyString str,
int pos,
boolean reverse)
rb_reg_search |
void |
setEncodingNone()
|
void |
setKCodeDefault()
|
void |
setKCodeFixed()
|
void |
setLiteral()
|
IRubyObject |
source()
rb_reg_source |
IRubyObject |
to_s()
rb_any_to_s call-seq: obj.to_s => string Returns a string representing obj. |
static IRubyObject |
try_convert(ThreadContext context,
IRubyObject recv,
IRubyObject args)
|
static IRubyObject |
union(ThreadContext context,
IRubyObject recv,
IRubyObject[] args)
rb_reg_s_union |
static RubyRegexp |
unmarshalFrom(UnmarshalStream input)
|
void |
warn(java.lang.String message)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void setLiteral()
public void clearLiteral()
public boolean isLiteral()
public void setKCodeDefault()
public void clearKCodeDefault()
public boolean isKCodeDefault()
public void setKCodeFixed()
public void clearKCodeFixed()
public boolean isKCodeFixed()
public void setEncodingNone()
public void clearEncodingNone()
public boolean isEncodingNone()
public KCode getKCode()
public Encoding getEncoding()
getEncoding
in interface EncodingCapable
public static RubyClass createRegexpClass(Ruby runtime)
public static RubyRegexp newRegexp(Ruby runtime, java.lang.String pattern, int options)
public static RubyRegexp newRegexp(Ruby runtime, ByteList pattern, int options)
public static RubyRegexp newRegexp(Ruby runtime, ByteList pattern, int options, boolean quote)
public void warn(java.lang.String message)
public IRubyObject kcode(ThreadContext context)
public int getNativeTypeIndex()
RubyObject
getNativeTypeIndex
in interface CoreObjectType
getNativeTypeIndex
in class RubyObject
org.jruby.runtime.ClassInde
public Regex getPattern()
public RubyFixnum hash()
RubyObject
hash
in class RubyObject
public IRubyObject op_equal(ThreadContext context, IRubyObject other)
RubyObject
op_equal
in interface IRubyObject
op_equal
in class RubyObject
public IRubyObject op_match2(ThreadContext context)
public IRubyObject eqq(ThreadContext context, IRubyObject str)
public IRubyObject initialize_copy(IRubyObject re)
initialize_copy
in class RubyObject
public IRubyObject initialize_m(IRubyObject[] args)
public static RubyRegexp newInstance(IRubyObject recv, IRubyObject[] args)
public static IRubyObject try_convert(ThreadContext context, IRubyObject recv, IRubyObject args)
public IRubyObject options()
public final int search(ThreadContext context, RubyString str, int pos, boolean reverse)
public IRubyObject op_match(ThreadContext context, IRubyObject str)
op_match
in class RubyObject
public IRubyObject match_m(ThreadContext context, IRubyObject str)
public RubyString regsub(RubyString str, RubyString src, Matcher matcher)
public IRubyObject casefold_p(ThreadContext context)
public IRubyObject source()
public IRubyObject inspect()
inspect
in interface IRubyObject
inspect
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 static RubyString quote(IRubyObject recv, IRubyObject[] args)
public static ByteList quote(ByteList str, KCode kcode)
public static IRubyObject nth_match(int nth, IRubyObject match)
public static IRubyObject last_match(IRubyObject match)
public static IRubyObject last_match_s(ThreadContext context, IRubyObject recv, IRubyObject[] args)
public static IRubyObject last_match_s(ThreadContext context, IRubyObject recv)
public static IRubyObject last_match_s(ThreadContext context, IRubyObject recv, IRubyObject nth)
public static IRubyObject match_pre(IRubyObject match)
public static IRubyObject match_post(IRubyObject match)
public static IRubyObject match_last(IRubyObject match)
public static IRubyObject union(ThreadContext context, IRubyObject recv, IRubyObject[] args)
public IRubyObject names(ThreadContext context)
public IRubyObject named_captures(ThreadContext context)
public IRubyObject encoding(ThreadContext context)
public IRubyObject fixed_encoding_p(ThreadContext context)
public static RubyRegexp unmarshalFrom(UnmarshalStream input) throws java.io.IOException
java.io.IOException
public static void marshalTo(RubyRegexp regexp, MarshalStream output) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |