|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.RubyObject
org.jruby.RubyRegexp
Nested Class Summary |
Nested classes inherited from class org.jruby.RubyObject |
RubyObject.Finalizer |
Field Summary | |
static byte |
EQQ_SWITCHVALUE
|
static byte |
EQUALEQUAL_SWITCHVALUE
|
static byte |
HASH_SWITCHVALUE
|
static byte |
MATCH_SWITCHVALUE
|
static byte |
NIL_P_SWITCHVALUE
|
static byte |
TO_S_SWITCHVALUE
|
Fields inherited from class org.jruby.RubyObject |
instanceVariables, isTrue, metaClass, NEVER, OBJECT_ALLOCATOR |
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 |
Constructor Summary | |
RubyRegexp(Ruby runtime,
RubyClass klass)
|
Method Summary | |
IRubyObject |
callMethod(ThreadContext context,
RubyModule rubyclass,
int methodIndex,
java.lang.String name,
IRubyObject[] args,
CallType callType,
Block block)
|
RubyBoolean |
casefold()
rb_reg_casefold_p |
static RubyClass |
createRegexpClass(Ruby runtime)
|
IRubyObject |
eqq(IRubyObject target)
rb_reg_eqq |
IRubyObject |
equal(IRubyObject other)
rb_reg_equal |
static java.lang.String |
escapeSpecialChars(java.lang.String original)
|
int |
getNativeTypeIndex()
This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are. |
Pattern |
getPattern()
|
RubyFixnum |
hash()
|
IRubyObject |
initialize_copy(IRubyObject original)
rb_reg_init_copy |
void |
initialize(ByteList regex,
int options)
|
IRubyObject |
initialize(IRubyObject[] args)
|
void |
initialize(java.lang.String regex,
int options)
|
IRubyObject |
inspect()
rb_reg_inspect |
IRubyObject |
kcode()
|
static IRubyObject |
last_match_s(IRubyObject recv,
IRubyObject[] 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(IRubyObject target)
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 |
match(IRubyObject target)
rb_reg_match |
IRubyObject |
match(java.lang.String target,
RubyString rtarget,
int startPos)
|
IRubyObject |
match2()
rb_reg_match2 |
static RubyRegexp |
newInstance(IRubyObject recv,
IRubyObject[] args)
|
static RubyRegexp |
newRegexp(Ruby runtime,
ByteList str,
int options,
java.lang.String kcode)
|
static RubyRegexp |
newRegexp(Ruby runtime,
ByteList source,
Pattern pattern,
int flags,
java.lang.String lang)
|
static RubyRegexp |
newRegexp(RubyString str,
int options,
java.lang.String lang)
|
static RubyRegexp |
newRegexp(Ruby runtime,
java.lang.String str,
int options,
java.lang.String kcode)
|
static RubyRegexp |
newRegexp(Ruby runtime,
java.lang.String source,
Pattern pattern,
int flags,
java.lang.String lang)
|
static IRubyObject |
nth_match(int n,
IRubyObject match)
rb_reg_nth_match |
static RubyString |
quote(IRubyObject recv,
IRubyObject[] args)
rb_reg_s_quote |
static RubyString |
quote(IRubyObject recv,
RubyString str)
Utility version of quote that doesn't use encoding |
static RubyRegexp |
regexpValue(IRubyObject obj)
|
RubyString |
regsub(IRubyObject str,
RubyString src,
RubyMatchData match)
rb_reg_regsub |
int |
search(java.lang.String target,
RubyString rtarget,
int pos)
rb_reg_search |
IRubyObject |
search2(java.lang.String str,
RubyString rtarget)
|
int |
searchAgain(java.lang.String target,
RubyString rtarget,
boolean utf)
|
RubyString |
source()
rb_reg_source |
IRubyObject |
to_s()
|
java.lang.String |
toString()
|
static IRubyObject |
union(IRubyObject recv,
IRubyObject[] args)
rb_reg_s_union |
static RubyRegexp |
unmarshalFrom(UnmarshalStream input)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final byte NIL_P_SWITCHVALUE
public static final byte EQUALEQUAL_SWITCHVALUE
public static final byte TO_S_SWITCHVALUE
public static final byte HASH_SWITCHVALUE
public static final byte MATCH_SWITCHVALUE
public static final byte EQQ_SWITCHVALUE
Constructor Detail |
public RubyRegexp(Ruby runtime, RubyClass klass)
Method Detail |
public static RubyClass createRegexpClass(Ruby runtime)
public int getNativeTypeIndex()
RubyObject
getNativeTypeIndex
in interface IRubyObject
getNativeTypeIndex
in class RubyObject
public IRubyObject callMethod(ThreadContext context, RubyModule rubyclass, int methodIndex, java.lang.String name, IRubyObject[] args, CallType callType, Block block)
callMethod
in interface IRubyObject
callMethod
in class RubyObject
public void initialize(ByteList regex, int options)
public void initialize(java.lang.String regex, int options)
public static java.lang.String escapeSpecialChars(java.lang.String original)
public static RubyRegexp regexpValue(IRubyObject obj)
public static RubyRegexp newRegexp(RubyString str, int options, java.lang.String lang)
public static RubyRegexp newRegexp(Ruby runtime, java.lang.String source, Pattern pattern, int flags, java.lang.String lang)
public static RubyRegexp newRegexp(Ruby runtime, ByteList source, Pattern pattern, int flags, java.lang.String lang)
public static RubyRegexp newRegexp(Ruby runtime, java.lang.String str, int options, java.lang.String kcode)
public static RubyRegexp newRegexp(Ruby runtime, ByteList str, int options, java.lang.String kcode)
public static RubyRegexp newInstance(IRubyObject recv, IRubyObject[] args)
public IRubyObject initialize(IRubyObject[] args)
public static RubyString quote(IRubyObject recv, IRubyObject[] args)
public static RubyString quote(IRubyObject recv, RubyString str)
public static IRubyObject last_match_s(IRubyObject recv, IRubyObject[] args)
public IRubyObject equal(IRubyObject other)
equal
in interface IRubyObject
equal
in class RubyObject
public IRubyObject match2()
public IRubyObject eqq(IRubyObject target)
public IRubyObject match(IRubyObject target)
match
in class RubyObject
public IRubyObject match_m(IRubyObject target)
public RubyString source()
public IRubyObject kcode()
public RubyBoolean casefold()
public static IRubyObject nth_match(int n, IRubyObject match)
public static IRubyObject last_match(IRubyObject match)
public static IRubyObject match_pre(IRubyObject match)
public static IRubyObject match_post(IRubyObject match)
public static IRubyObject match_last(IRubyObject match)
public int search(java.lang.String target, RubyString rtarget, int pos)
public IRubyObject search2(java.lang.String str, RubyString rtarget)
public int searchAgain(java.lang.String target, RubyString rtarget, boolean utf)
public IRubyObject match(java.lang.String target, RubyString rtarget, int startPos)
public RubyString regsub(IRubyObject str, RubyString src, RubyMatchData match)
public IRubyObject initialize_copy(IRubyObject original)
initialize_copy
in class RubyObject
public IRubyObject inspect()
inspect
in interface IRubyObject
inspect
in class RubyObject
public static IRubyObject union(IRubyObject recv, IRubyObject[] args)
public IRubyObject to_s()
to_s
in class RubyObject
public java.lang.String toString()
toString
in class RubyObject
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
public Pattern getPattern()
public RubyFixnum hash()
hash
in class RubyObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |