|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jruby.RubyObject
org.jruby.RubyMatchData
public class RubyMatchData
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jruby.RubyObject |
---|
RubyObject.Finalizer, RubyObject.ObjectMethods, RubyObject.VariableTableEntry |
Field Summary | |
---|---|
static int |
MATCH_BUSY
|
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.runtime.builtin.IRubyObject |
---|
NULL_ARRAY |
Constructor Summary | |
---|---|
RubyMatchData(Ruby runtime)
|
Method Summary | |
---|---|
IRubyObject |
begin(IRubyObject index)
match_begin |
IRubyObject |
captures()
match_captures |
static RubyClass |
createMatchDataClass(Ruby runtime)
|
IRubyObject |
end(IRubyObject index)
match_end |
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 |
offset(IRubyObject index)
match_offset |
IRubyObject |
op_aref(IRubyObject[] args)
match_aref |
IRubyObject |
post_match()
match_post_match |
IRubyObject |
pre_match()
match_pre_match |
IRubyObject |
select(ThreadContext context,
Block block)
|
IRubyObject |
size()
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 |
Field Detail |
---|
public static final int MATCH_BUSY
Constructor Detail |
---|
public RubyMatchData(Ruby runtime)
Method Detail |
---|
public static RubyClass createMatchDataClass(Ruby runtime)
public final void use()
public final boolean used()
public IRubyObject group(long 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 RubyArray to_a()
to_a
in class RubyObject
public IRubyObject values_at(IRubyObject[] args)
public IRubyObject select(ThreadContext context, Block block)
public IRubyObject captures()
public IRubyObject op_aref(IRubyObject[] args)
public IRubyObject size()
public IRubyObject begin(IRubyObject index)
public IRubyObject end(IRubyObject index)
public IRubyObject offset(IRubyObject index)
public IRubyObject pre_match()
public IRubyObject post_match()
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 |