org.jruby
Class RubyRegexp

java.lang.Object
  extended byorg.jruby.RubyObject
      extended byorg.jruby.RubyRegexp
All Implemented Interfaces:
java.lang.Cloneable, IRubyObject, ReOptions

public class RubyRegexp
extends RubyObject
implements ReOptions

Version:
$Revision: 1.10 $
Author:
amoore

Field Summary
 
Fields inherited from class org.jruby.RubyObject
runtime
 
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_POSIXLINE, RE_OPTION_SINGLELINE
 
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY
 
Constructor Summary
RubyRegexp(Ruby ruby)
           
 
Method Summary
 RubyBoolean casefold()
          rb_reg_casefold_p
static RubyClass createRegexpClass(Ruby ruby)
           
 RubyBoolean equal(IRubyObject other)
          rb_reg_equal
 IRubyObject initialize(IRubyObject[] args)
           
 void initialize(java.lang.String pat, int opts)
           
 RubyString inspect()
          rb_reg_inspect
static IRubyObject last_match_s(IRubyObject recv)
           
static IRubyObject last_match(IRubyObject match)
          rb_reg_last_match
 void marshalTo(MarshalStream output)
          Method marshalTo.
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 match2()
          rb_reg_match2
static RubyRegexp newInstance(IRubyObject recv, IRubyObject[] args)
           
static RubyRegexp newRegexp(RubyString str, int options)
           
static RubyRegexp newRegexp(Ruby ruby, java.lang.String str, int options)
           
static IRubyObject nth_match(int n, IRubyObject match)
          rb_reg_nth_match
static RubyString quote(IRubyObject recv, RubyString str)
          rb_reg_s_quote
static java.lang.String quote(java.lang.String orig)
           
 IRubyObject rbClone()
          rb_obj_clone
static RubyRegexp regexpValue(IRubyObject obj)
           
 IRubyObject regsub(IRubyObject str, RubyMatchData match)
          rb_reg_regsub
 int search(IRubyObject target, int pos)
          rb_reg_search
 RubyString source()
          rb_reg_source
 
Methods inherited from class org.jruby.RubyObject
argCount, asSymbol, callbackFactory, callInit, callMethod, callMethod, callMethod, checkSafeString, convertToString, convertToType, convertType, createObjectClass, defineSingletonMethod, display, dup, equals, eval, eval, evalUnder, extend, extendObject, freeze, frozen, getInstanceVariable, getInstanceVariables, getJavaClass, getMetaClass, getRuntime, getSingletonClass, getType, hash, hashCode, hasInstanceVariable, id, infectBy, instance_eval, instance_of, instance_variables, instanceVariableNames, isFalse, isFrozen, isKindOf, isNil, isTaint, isTrue, kind_of, makeMetaClass, method_missing, method, methods, nilObject, private_methods, protected_methods, removeInstanceVariable, respond_to, respondsTo, send, setFrozen, setInstanceVariable, setInstanceVariable, setInstanceVariables, setMetaClass, setTaint, setupClone, singleton_methods, singletonMethodsAllowed, specificEval, taint, tainted, to_a, to_s, toString, type, untaint
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RubyRegexp

public RubyRegexp(Ruby ruby)
Method Detail

createRegexpClass

public static RubyClass createRegexpClass(Ruby ruby)

initialize

public void initialize(java.lang.String pat,
                       int opts)

quote

public static java.lang.String quote(java.lang.String orig)

regexpValue

public static RubyRegexp regexpValue(IRubyObject obj)

newRegexp

public static RubyRegexp newRegexp(RubyString str,
                                   int options)

newRegexp

public static RubyRegexp newRegexp(Ruby ruby,
                                   java.lang.String str,
                                   int options)

newInstance

public static RubyRegexp newInstance(IRubyObject recv,
                                     IRubyObject[] args)

initialize

public IRubyObject initialize(IRubyObject[] args)

quote

public static RubyString quote(IRubyObject recv,
                               RubyString str)
rb_reg_s_quote


last_match_s

public static IRubyObject last_match_s(IRubyObject recv)

equal

public RubyBoolean equal(IRubyObject other)
rb_reg_equal

Overrides:
equal in class RubyObject

match2

public IRubyObject match2()
rb_reg_match2


match

public IRubyObject match(IRubyObject target)
rb_reg_match


match_m

public IRubyObject match_m(IRubyObject target)
rb_reg_match_m


source

public RubyString source()
rb_reg_source


casefold

public RubyBoolean casefold()
rb_reg_casefold_p


nth_match

public static IRubyObject nth_match(int n,
                                    IRubyObject match)
rb_reg_nth_match


last_match

public static IRubyObject last_match(IRubyObject match)
rb_reg_last_match


match_pre

public static IRubyObject match_pre(IRubyObject match)
rb_reg_match_pre


match_post

public static IRubyObject match_post(IRubyObject match)
rb_reg_match_post


match_last

public static IRubyObject match_last(IRubyObject match)
rb_reg_match_last


search

public int search(IRubyObject target,
                  int pos)
rb_reg_search


regsub

public IRubyObject regsub(IRubyObject str,
                          RubyMatchData match)
rb_reg_regsub


rbClone

public IRubyObject rbClone()
Description copied from class: RubyObject
rb_obj_clone

Specified by:
rbClone in interface IRubyObject
Overrides:
rbClone in class RubyObject

inspect

public RubyString inspect()
rb_reg_inspect

Specified by:
inspect in interface IRubyObject
Overrides:
inspect in class RubyObject

marshalTo

public void marshalTo(MarshalStream output)
               throws java.io.IOException
Description copied from interface: IRubyObject
Method marshalTo.

Specified by:
marshalTo in interface IRubyObject
Overrides:
marshalTo in class RubyObject
Throws:
java.io.IOException


Copyright © 2002 Jan Arne Petersen. All Rights Reserved.