|
||||||||||
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.RubyMatchData
public class RubyMatchData
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jruby.RubyObject |
---|
RubyObject.Data, RubyObject.ObjectMethods |
Nested classes/interfaces inherited from class org.jruby.RubyBasicObject |
---|
RubyBasicObject.BasicObjectMethods, RubyBasicObject.Finalizer |
Field Summary |
---|
Fields inherited from class org.jruby.RubyObject |
---|
OBJECT_ALLOCATOR |
Fields inherited from class org.jruby.RubyBasicObject |
---|
ALL_F, COMPARE_BY_IDENTITY_F, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, metaClass, NEVER, NIL_F, TAINTED_F, UNDEF, UNTRUSTED_F, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F |
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject |
---|
NULL_ARRAY |
Constructor Summary | |
---|---|
RubyMatchData(Ruby runtime)
|
|
RubyMatchData(Ruby runtime,
RubyClass metaClass)
|
Method Summary | |
---|---|
IRubyObject |
begin(ThreadContext context,
IRubyObject index)
match_begin |
IRubyObject |
begin19(ThreadContext context,
IRubyObject index)
|
IRubyObject |
captures(ThreadContext context)
match_captures |
static RubyClass |
createMatchDataClass(Ruby runtime)
|
IRubyObject |
end(ThreadContext context,
IRubyObject index)
match_end |
IRubyObject |
end19(ThreadContext context,
IRubyObject index)
|
int |
getNativeTypeIndex()
This is overridden in the other concrete Java builtins to provide a fast way to determine what type they are. |
IRubyObject |
group(int n)
|
IRubyObject |
group(long n)
|
IRubyObject |
initialize_copy(IRubyObject original)
rb_obj_init_copy Initializes this object as a copy of the original, that is the parameter to this object. |
IRubyObject |
inspect()
rb_obj_inspect call-seq: obj.inspect => string Returns a string containing a human-readable representation of obj. |
IRubyObject |
names(ThreadContext context,
Block block)
|
IRubyObject |
offset(ThreadContext context,
IRubyObject index)
match_offset |
IRubyObject |
offset19(ThreadContext context,
IRubyObject index)
|
IRubyObject |
op_aref(IRubyObject idx)
match_aref |
IRubyObject |
op_aref(IRubyObject[] args)
Deprecated. Use the versions with zero, one, or two args. |
IRubyObject |
op_aref(IRubyObject idx,
IRubyObject rest)
match_aref |
IRubyObject |
op_aref19(IRubyObject idx)
match_aref |
IRubyObject |
op_aref19(IRubyObject idx,
IRubyObject rest)
match_aref |
IRubyObject |
post_match(ThreadContext context)
match_post_match |
IRubyObject |
pre_match(ThreadContext context)
match_pre_match |
IRubyObject |
regexp(ThreadContext context,
Block block)
|
IRubyObject |
select(ThreadContext context,
Block block)
|
IRubyObject |
size(ThreadContext context)
match_size |
IRubyObject |
string()
match_string |
RubyArray |
to_a()
match_to_a |
IRubyObject |
to_s()
match_to_s |
void |
use()
|
boolean |
used()
|
IRubyObject |
values_at(IRubyObject[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RubyMatchData(Ruby runtime)
public RubyMatchData(Ruby runtime, RubyClass metaClass)
Method Detail |
---|
public static RubyClass createMatchDataClass(Ruby runtime)
public int getNativeTypeIndex()
RubyObject
getNativeTypeIndex
in interface CoreObjectType
getNativeTypeIndex
in class RubyObject
org.jruby.runtime.ClassInde
public final void use()
public final boolean used()
public IRubyObject group(long n)
public IRubyObject group(int n)
public IRubyObject inspect()
RubyObject
to_s
method to
generate the string.
[ 1, 2, 3..4, 'five' ].inspect #=> "[1, 2, 3..4, \"five\"]"
Time.new.inspect #=> "Wed Apr 09 08:54:39 CDT 2003"
inspect
in interface IRubyObject
inspect
in class RubyObject
public IRubyObject regexp(ThreadContext context, Block block)
public IRubyObject names(ThreadContext context, Block block)
public RubyArray to_a()
to_a
in class RubyObject
public IRubyObject values_at(IRubyObject[] args)
public IRubyObject select(ThreadContext context, Block block)
public IRubyObject captures(ThreadContext context)
public IRubyObject op_aref(IRubyObject[] args)
public IRubyObject op_aref(IRubyObject idx)
public IRubyObject op_aref(IRubyObject idx, IRubyObject rest)
public IRubyObject op_aref19(IRubyObject idx)
public IRubyObject op_aref19(IRubyObject idx, IRubyObject rest)
public IRubyObject size(ThreadContext context)
public IRubyObject begin(ThreadContext context, IRubyObject index)
public IRubyObject begin19(ThreadContext context, IRubyObject index)
public IRubyObject end(ThreadContext context, IRubyObject index)
public IRubyObject end19(ThreadContext context, IRubyObject index)
public IRubyObject offset(ThreadContext context, IRubyObject index)
public IRubyObject offset19(ThreadContext context, IRubyObject index)
public IRubyObject pre_match(ThreadContext context)
public IRubyObject post_match(ThreadContext context)
public IRubyObject to_s()
to_s
in class RubyObject
public IRubyObject string()
public IRubyObject initialize_copy(IRubyObject original)
RubyObject
initialize_copy
in class RubyObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |