|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.RubyObject
org.jruby.RubyRegexp
public class RubyRegexp
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, metaClassName, 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.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.joni.WarnCallback |
---|
DEFAULT |
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject |
---|
NULL_ARRAY |
Method Summary | |
---|---|
IRubyObject |
casefold_p()
|
void |
clearKCodeDefault()
|
void |
clearLiteral()
|
static RubyClass |
createRegexpClass(Ruby runtime)
|
IRubyObject |
eqq(ThreadContext context,
IRubyObject str)
rb_reg_eqq |
KCode |
getKCode()
|
int |
getNativeTypeIndex()
This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are. |
org.joni.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 |
isKCodeDefault()
|
boolean |
isLiteral()
|
IRubyObject |
kcode()
|
static IRubyObject |
last_match_s(ThreadContext context,
IRubyObject recv,
IRubyObject[] args)
rb_reg_s_last_match |
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 |
static RubyRegexp |
newInstance(IRubyObject recv,
IRubyObject[] args)
|
static RubyRegexp |
newRegexp(Ruby runtime,
org.jruby.util.ByteList pattern,
int options)
|
static RubyRegexp |
newRegexp(Ruby runtime,
org.jruby.util.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(IRubyObject other)
|
IRubyObject |
op_match(ThreadContext context,
IRubyObject str)
rb_reg_match |
IRubyObject |
op_match2(ThreadContext context)
|
IRubyObject |
options()
|
static org.jruby.util.ByteList |
quote(org.jruby.util.ByteList str,
KCode kcode)
rb_reg_quote |
static RubyString |
quote(IRubyObject recv,
IRubyObject[] args)
rb_reg_s_quote |
RubyString |
regsub(RubyString str,
RubyString src,
org.joni.Matcher matcher)
|
int |
search(ThreadContext context,
RubyString str,
int pos,
boolean reverse)
rb_reg_search |
void |
setKCodeDefault()
|
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 |
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 KCode getKCode()
public static RubyClass createRegexpClass(Ruby runtime)
public static RubyRegexp newRegexp(Ruby runtime, java.lang.String pattern, int options)
public static RubyRegexp newRegexp(Ruby runtime, org.jruby.util.ByteList pattern, int options)
public static RubyRegexp newRegexp(Ruby runtime, org.jruby.util.ByteList pattern, int options, boolean quote)
public void warn(java.lang.String message)
warn
in interface org.joni.WarnCallback
public IRubyObject kcode()
public int getNativeTypeIndex()
RubyObject
getNativeTypeIndex
in interface CoreObjectType
getNativeTypeIndex
in class RubyObject
org.jruby.runtime.ClassInde
public org.joni.Regex getPattern()
public RubyFixnum hash()
RubyObject
hash
in class RubyObject
public IRubyObject op_equal(IRubyObject other)
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 IRubyObject options()
public 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, org.joni.Matcher matcher)
public IRubyObject casefold_p()
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 org.jruby.util.ByteList quote(org.jruby.util.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 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 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 |