|
||||||||||
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 |
Nested classes/interfaces inherited from class org.jruby.RubyBasicObject |
---|
RubyBasicObject.Finalizer |
Field Summary |
---|
Fields inherited from class org.jruby.RubyObject |
---|
OBJECT_ALLOCATOR, REIFYING_OBJECT_ALLOCATOR |
Fields inherited from class org.jruby.RubyBasicObject |
---|
ALL_F, BASICOBJECT_ALLOCATOR, 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, USER8_F |
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject |
---|
NULL_ARRAY |
Constructor Summary | |
---|---|
RubyMatchData(Ruby runtime)
|
|
RubyMatchData(Ruby runtime,
RubyClass metaClass)
|
Method Summary | |
---|---|
int |
backrefNumber(IRubyObject obj)
|
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)
|
IRubyObject |
eql_p(IRubyObject obj)
rb_obj_equal Just like "==" and "equal?", "eql?" will use identity equality for Object. |
boolean |
equals(java.lang.Object other)
This method is just a wrapper around the Ruby "==" method, provided so that RubyObjects can be used as keys in the Java HashMap object underlying RubyHash. |
IRubyObject[] |
getNamedBackrefValues(Ruby runtime)
|
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 org.jruby.RubyObject |
---|
attachToObjectSpace, callInit, callInit, callInit, callInit, callInit, convertToType, createObjectClass, eqlInternal, equalInternal, hashCode, initialize, op_eqq, puts, specificEval, toString |
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[] getNamedBackrefValues(Ruby runtime)
public IRubyObject inspect()
RubyBasicObject
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 RubyBasicObject
public IRubyObject regexp(ThreadContext context, Block block)
public IRubyObject names(ThreadContext context, Block block)
public RubyArray to_a()
to_a
in class RubyBasicObject
public IRubyObject values_at(IRubyObject[] args)
public IRubyObject select(ThreadContext context, Block block)
public IRubyObject captures(ThreadContext context)
public final int backrefNumber(IRubyObject obj)
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 RubyBasicObject
public IRubyObject string()
public IRubyObject initialize_copy(IRubyObject original)
RubyBasicObject
initialize_copy
in class RubyBasicObject
public boolean equals(java.lang.Object other)
RubyObject
equals
in class RubyObject
public IRubyObject eql_p(IRubyObject obj)
RubyBasicObject
eql_p
in class RubyBasicObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |