Logo Search packages:      
Sourcecode: jruby version File versions  Download package

Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | Package Functions | Static Package Functions | Package Attributes | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes

org::jruby::RubyRegexp Class Reference

Inheritance diagram for org::jruby::RubyRegexp:
Inheritance graph
[legend]
Collaboration diagram for org::jruby::RubyRegexp:
Collaboration graph
[legend]

List of all members.

Classes

class  RegexpCache

Public Member Functions

void addFinalizer (IRubyObject f)
IRubyObject anyToString ()
String asJavaString ()
RubyString asString ()
void attachToObjectSpace ()
final void callInit (IRubyObject[] args, Block block)
final IRubyObject callMethod (ThreadContext context, String name)
final IRubyObject callMethod (ThreadContext context, String name, IRubyObject arg)
final IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args)
final IRubyObject callMethod (String name, IRubyObject...args)
final IRubyObject callMethod (String name)
final IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args, Block block)
final IRubyObject callMethod (ThreadContext context, int methodIndex, String name)
final IRubyObject callMethod (ThreadContext context, int methodIndex, String name, IRubyObject arg)
IRubyObject callSuper (ThreadContext context, IRubyObject[] args, Block block)
IRubyObject casefold_p (ThreadContext context)
IRubyObject checkArrayType ()
final IRubyObject checkCallMethod (ThreadContext context, String name)
IRubyObject checkStringType ()
IRubyObject checkStringType19 ()
void clearEncodingNone ()
void clearKCodeDefault ()
void clearLiteral ()
int compareTo (IRubyObject other)
RubyArray convertToArray ()
RubyFloat convertToFloat ()
RubyHash convertToHash ()
RubyInteger convertToInteger ()
RubyInteger convertToInteger (int methodIndex, String convertMethod)
RubyInteger convertToInteger (String convertMethod)
RubyString convertToString ()
final IRubyObject convertToType (RubyClass target, int convertMethodIndex)
void copyInstanceVariablesInto (final InstanceVariables other)
void copyInstanceVariablesInto (InstanceVariables other)
void copySpecialInstanceVariables (IRubyObject clone)
synchronized Object dataGetStruct ()
synchronized Object dataGetStructChecked ()
synchronized void dataWrapStruct (Object obj)
IRubyObject display (ThreadContext context, IRubyObject[] args)
IRubyObject dup ()
IRubyObject encoding (ThreadContext context)
boolean eql (IRubyObject other)
IRubyObject eql_p (IRubyObject obj)
IRubyObject eqq (ThreadContext context, IRubyObject arg)
IRubyObject eqq19 (ThreadContext context, IRubyObject arg)
IRubyObject equal_p (ThreadContext context, IRubyObject obj)
IRubyObject equal_p19 (ThreadContext context, IRubyObject other)
boolean equals (Object other)
IRubyObject evalUnder (final ThreadContext context, RubyModule under, IRubyObject src, IRubyObject file, IRubyObject line)
IRubyObject evalUnder (final ThreadContext context, RubyModule under, RubyString src, String file, int line)
IRubyObject extend (IRubyObject[] args)
IRubyObject fastGetInstanceVariable (String internedName)
Object fastGetInternalVariable (String internedName)
boolean fastHasInstanceVariable (String internedName)
boolean fastHasInternalVariable (String internedName)
IRubyObject fastSetInstanceVariable (String internedName, IRubyObject value)
void fastSetInternalVariable (String internedName, Object value)
IRubyObject fixed_encoding_p (ThreadContext context)
IRubyObject freeze (ThreadContext context)
RubyBoolean frozen_p (ThreadContext context)
Encoding getEncoding ()
final boolean getFlag (int flag)
IRubyObject getInstanceVariable (String name)
List< Variable< IRubyObject > > getInstanceVariableList ()
List< String > getInstanceVariableNameList ()
InstanceVariables getInstanceVariables ()
Object getInternalVariable (String name)
InternalVariables getInternalVariables ()
Class getJavaClass ()
KCode getKCode ()
final RubyClass getMetaClass ()
int getNativeTypeIndex ()
final Ruby getRuntime ()
RubyClass getSingletonClass ()
RubyClass getType ()
Object getVariable (int index)
int getVariableCount ()
List< Variable< Object > > getVariableList ()
List< String > getVariableNameList ()
RubyFixnum hash ()
int hashCode ()
IRubyObject hashyInspect ()
boolean hasInstanceVariable (String name)
boolean hasInternalVariable (String name)
boolean hasVariables ()
IRubyObject id ()
IRubyObject id_deprecated ()
IRubyObject infectBy (IRubyObject obj)
IRubyObject initialize ()
IRubyObject initialize_copy (IRubyObject re)
IRubyObject initialize_m (IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
IRubyObject initialize_m (IRubyObject arg)
IRubyObject initialize_m (IRubyObject arg0, IRubyObject arg1)
IRubyObject initialize_m19 (IRubyObject arg)
IRubyObject initialize_m19 (IRubyObject arg0, IRubyObject arg1)
IRubyObject initialize_m19 (IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
IRubyObject inspect ()
IRubyObject inspect19 ()
IRubyObject instance_eval (ThreadContext context, IRubyObject[] args, Block block)
IRubyObject instance_eval (ThreadContext context, Block block)
IRubyObject instance_eval (ThreadContext context, IRubyObject arg0, Block block)
IRubyObject instance_eval (ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
IRubyObject instance_eval (ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
IRubyObject instance_exec (ThreadContext context, IRubyObject[] args, Block block)
RubyBoolean instance_of_p (ThreadContext context, IRubyObject type)
IRubyObject instance_variable_defined_p (ThreadContext context, IRubyObject name)
IRubyObject instance_variable_get (ThreadContext context, IRubyObject name)
IRubyObject instance_variable_set (IRubyObject name, IRubyObject value)
RubyArray instance_variables (ThreadContext context)
boolean isBuiltin (String methodName)
boolean isClass ()
boolean isEncodingNone ()
final boolean isFalse ()
boolean isFrozen ()
boolean isImmediate ()
boolean isKCodeDefault ()
boolean isLiteral ()
boolean isModule ()
final boolean isNil ()
boolean isTaint ()
final boolean isTrue ()
boolean isUntrusted ()
IRubyObject kcode (ThreadContext context)
RubyBoolean kind_of_p (ThreadContext context, IRubyObject type)
RubyClass makeMetaClass (RubyClass superClass)
IRubyObject match_m (ThreadContext context, IRubyObject str)
IRubyObject match_m19 (ThreadContext context, IRubyObject str, Block block)
IRubyObject match_m19 (ThreadContext context, IRubyObject str, IRubyObject pos, Block block)
IRubyObject method (IRubyObject symbol)
IRubyObject methods (ThreadContext context, IRubyObject[] args)
IRubyObject methods (ThreadContext context, IRubyObject[] args, boolean useSymbols)
IRubyObject methods19 (ThreadContext context, IRubyObject[] args)
IRubyObject named_captures (ThreadContext context)
IRubyObject names (ThreadContext context)
IRubyObject nil_p (ThreadContext context)
IRubyObject op_eqq (ThreadContext context, IRubyObject other)
IRubyObject op_equal (ThreadContext context, IRubyObject other)
IRubyObject op_equal_19 (ThreadContext context, IRubyObject obj)
IRubyObject op_match (ThreadContext context, IRubyObject str)
IRubyObject op_match19 (ThreadContext context, IRubyObject arg)
IRubyObject op_match2 (ThreadContext context)
IRubyObject op_not (ThreadContext context)
IRubyObject op_not_equal (ThreadContext context, IRubyObject other)
IRubyObject op_not_match (ThreadContext context, IRubyObject arg)
IRubyObject options ()
IRubyObject private_methods (ThreadContext context, IRubyObject[] args)
IRubyObject private_methods19 (ThreadContext context, IRubyObject[] args)
IRubyObject protected_methods (ThreadContext context, IRubyObject[] args)
IRubyObject protected_methods19 (ThreadContext context, IRubyObject[] args)
IRubyObject public_methods (ThreadContext context, IRubyObject[] args)
IRubyObject public_methods19 (ThreadContext context, IRubyObject[] args)
IRubyObject rbClone ()
IRubyObject remove_instance_variable (ThreadContext context, IRubyObject name, Block block)
void removeFinalizers ()
IRubyObject removeInstanceVariable (String name)
Object removeInternalVariable (String name)
RubyBoolean respond_to_p (IRubyObject mname)
RubyBoolean respond_to_p (IRubyObject mname, IRubyObject includePrivate)
final boolean respondsTo (String name)
final int search (ThreadContext context, RubyString str, int pos, boolean reverse)
final int search19 (ThreadContext context, RubyString str, int pos, boolean reverse)
IRubyObject send (ThreadContext context, IRubyObject[] args, Block block)
IRubyObject send (ThreadContext context, IRubyObject arg0, Block block)
IRubyObject send (ThreadContext context, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
IRubyObject send (ThreadContext context, Block block)
IRubyObject send (ThreadContext context, IRubyObject arg0, IRubyObject arg1, Block block)
void setEncodingNone ()
final void setFlag (int flag, boolean set)
void setFrozen (boolean frozen)
IRubyObject setInstanceVariable (String name, IRubyObject value)
void setInternalVariable (String name, Object value)
void setKCodeDefault ()
void setLiteral ()
void setMetaClass (RubyClass metaClass)
void setTaint (boolean taint)
void setUntrusted (boolean untrusted)
synchronized void setVariable (int index, Object value)
RubyArray singleton_methods (ThreadContext context, IRubyObject[] args)
RubyArray singleton_methods19 (ThreadContext context, IRubyObject[] args)
RubyArray singletonMethods (ThreadContext context, IRubyObject[] args, boolean asSymbols)
IRubyObject source ()
IRubyObject specificEval (ThreadContext context, RubyModule mod, IRubyObject[] args, Block block)
IRubyObject specificEval (ThreadContext context, RubyModule mod, IRubyObject arg0, IRubyObject arg1, Block block)
IRubyObject specificEval (ThreadContext context, RubyModule mod, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2, Block block)
IRubyObject specificEval (ThreadContext context, RubyModule mod, Block block)
IRubyObject specificEval (ThreadContext context, RubyModule mod, IRubyObject arg, Block block)
void syncVariables (List< Variable< Object >> variables)
IRubyObject taint (ThreadContext context)
RubyBoolean tainted_p (ThreadContext context)
RubyArray to_a ()
IRubyObject to_s ()
Object toJava (Class target)
String toString ()
IRubyObject trust (ThreadContext context)
RubyClass type ()
RubyClass type_deprecated ()
IRubyObject untaint (ThreadContext context)
IRubyObject untrust (ThreadContext context)
RubyBoolean untrusted_p (ThreadContext context)

Static Public Member Functions

static RubyClass createBasicObjectClass (Ruby runtime, RubyClass objectClass)
static RubyClass createObjectClass (Ruby runtime, RubyClass objectClass)
static RubyClass createRegexpClass (Ruby runtime)
static IRubyObject last_match (IRubyObject match)
static IRubyObject last_match_s (ThreadContext context, IRubyObject recv, IRubyObject[] args)
static IRubyObject last_match_s (ThreadContext context, IRubyObject recv)
static IRubyObject last_match_s (ThreadContext context, IRubyObject recv, IRubyObject nth)
static void marshalTo (RubyRegexp regexp, MarshalStream output) throws java.io.IOException
static IRubyObject match_last (IRubyObject match)
static IRubyObject match_post (IRubyObject match)
static IRubyObject match_pre (IRubyObject match)
static RubyRegexp newDRegexp (Ruby runtime, RubyString pattern, int options)
static RubyRegexp newInstance (IRubyObject recv, IRubyObject[] args)
static RubyRegexp newRegexp (Ruby runtime, String pattern, int options)
static RubyRegexp newRegexp (Ruby runtime, ByteList pattern)
static RubyRegexp newRegexp (Ruby runtime, ByteList pattern, int options)
static IRubyObject nth_match (int nth, IRubyObject match)
static void preprocessCheck (Ruby runtime, IRubyObject obj)
static void puts (Object obj)
static RubyString quote (ThreadContext context, IRubyObject recv, IRubyObject[] args)
static IRubyObject quote19 (ThreadContext context, IRubyObject recv, IRubyObject arg)
static IRubyObject try_convert (ThreadContext context, IRubyObject recv, IRubyObject args)
static IRubyObject union (ThreadContext context, IRubyObject recv, IRubyObject[] args)
static RubyRegexp unmarshalFrom (UnmarshalStream input) throws java.io.IOException

Public Attributes

int RE_MAY_IGNORECASE = 32
int RE_OPTION_EXTENDED = 2
int RE_OPTION_LONGEST = 16
int RE_OPTION_MULTILINE = 4
int RE_OPTION_ONCE = 0x80
int RE_OPTION_POSIXLINE = (RE_OPTION_MULTILINE | RE_OPTION_SINGLELINE)
int RE_OPTION_SINGLELINE = 8
int RE_UNICODE = 64

Static Public Attributes

static final int ALL_F = -1
static final int COMPARE_BY_IDENTITY_F = (1<<(FL_USHIFT+8))
static final int FALSE_F = 1 << 0
static final int FL_USHIFT = 5
static final int FROZEN_F = 1 << 2
static final IRubyObject NEVER = new RubyBasicObject()
static final int NIL_F = 1 << 1
static final IRubyObject[] NULL_ARRAY = new IRubyObject[0]
static final ObjectAllocator OBJECT_ALLOCATOR
static final int TAINTED_F = 1 << 3
static final IRubyObject UNDEF = new RubyBasicObject()
static final int UNTRUSTED_F = 1 << 4
static final int USER0_F = (1<<(FL_USHIFT+0))
static final int USER1_F = (1<<(FL_USHIFT+1))
static final int USER2_F = (1<<(FL_USHIFT+2))
static final int USER3_F = (1<<(FL_USHIFT+3))
static final int USER4_F = (1<<(FL_USHIFT+4))
static final int USER5_F = (1<<(FL_USHIFT+5))
static final int USER6_F = (1<<(FL_USHIFT+6))
static final int USER7_F = (1<<(FL_USHIFT+7))

Protected Member Functions

void checkFrozen ()
final void ensureInstanceVariablesSettable ()
synchronized long getObjectId ()
RubyClass getSingletonClassClone ()
synchronized long initObjectId (RubyClass.VariableAccessor objectIdAccessor)
int inspectHashCode ()
void taint (Ruby runtime)
final void testFrozen (String message)
final void testFrozen ()
String validateInstanceVariable (String name)
boolean variableTableContains (String name)
boolean variableTableFastContains (String internedName)
Object variableTableFastFetch (String internedName)
Object variableTableFastStore (String internedName, Object value)
Object variableTableFetch (String name)
Object variableTableRemove (String name)
Object variableTableStore (String name, Object value)
void variableTableSync (List< Variable< Object >> vars)

Static Protected Member Functions

static boolean eqlInternal (final ThreadContext context, final IRubyObject that, final IRubyObject other)
static boolean equalInternal (final ThreadContext context, final IRubyObject that, final IRubyObject other)

Protected Attributes

int flags
transient RubyClass metaClass

Static Protected Attributes

static final String ERR_INSECURE_SET_INST_VAR = "Insecure: can't modify instance variable"

Package Functions

final int adjustStartPos (RubyString str, int pos, boolean reverse)
final int adjustStartPos19 (RubyString str, int pos, boolean reverse)
IRubyObject checkIntegerType (Ruby runtime, IRubyObject obj, String method)
final Regex getPattern ()
final RubyBasicObject infectBy (int tuFlags)
final RubyBasicObject infectBy (RubyBasicObject obj)
final int length ()
final Regex preparePattern (RubyString str)

Static Package Functions

static Regex getQuotedRegexpFromCache (Ruby runtime, ByteList bytes, Encoding enc, int options)
static Regex getQuotedRegexpFromCache19 (Ruby runtime, ByteList bytes, int options, boolean asciiOnly)
static Regex getRegexpFromCache (Ruby runtime, ByteList bytes, Encoding enc, int options)
static RubyString inspect (ThreadContext context, IRubyObject object)
static RubyRegexp newDummyRegexp (Ruby runtime, Regex regex)
static RubyRegexp newRegexp (Ruby runtime, ByteList str, Regex pattern)
static Regex preparePattern (Ruby runtime, Regex pattern, RubyString str)
static ByteList quote19 (ByteList bs, boolean asciiOnly)
static ByteList regexpDescription19 (Ruby runtime, ByteList bytes, int options, Encoding enc)
static RubyString regsub (RubyString str, RubyString src, Matcher matcher, Encoding enc)
static RubyString regsub19 (RubyString str, RubyString src, Matcher matcher, Regex pattern)
static final RubyMatchData updateBackRef (ThreadContext context, RubyString str, DynamicScope scope, Matcher matcher, Regex pattern)
static final RubyMatchData updateBackRef19 (ThreadContext context, RubyString str, DynamicScope scope, Matcher matcher, Regex pattern)

Package Attributes

int RE_OPTION_IGNORECASE = 1

Private Types

enum  ErrorMode { RAISE, PREPROCESS, DESC }

Private Member Functions

final int adjustStartPosInternal (RubyString str, Encoding enc, int pos, boolean reverse)
void check ()
Encoding checkEncoding (RubyString str, boolean warn)
int getKcode ()
int getOptions ()
IRubyObject initializeByRegexp (RubyRegexp regexp)
IRubyObject initializeByRegexp19 (RubyRegexp regexp)
RubyRegexp initializeCommon (ByteList bytes, int options)
RubyRegexp initializeCommon19 (RubyString str, int options)
RubyRegexp initializeCommon19 (ByteList bytes, Encoding enc, int options)
IRubyObject match19Common (ThreadContext context, IRubyObject arg, int pos, Block block)
int matchPos (ThreadContext context, RubyString str, int pos)
 RubyRegexp (Ruby runtime, ByteList str, int options)
 RubyRegexp (Ruby runtime)
 RubyRegexp (Ruby runtime, ByteList str)
 RubyRegexp (Ruby runtime, RubyClass klass)
void setKCode (Ruby runtime, int options)
RubyMatchData updateBackRef (ThreadContext context, RubyString str, DynamicScope scope, Matcher matcher)

Static Private Member Functions

static void appendOptions (ByteList to, int options)
static void appendRegexpString (Ruby runtime, ByteList to, byte[]bytes, int start, int len, Encoding enc)
static void appendRegexpString19 (Ruby runtime, ByteList to, byte[]bytes, int start, int len, Encoding enc)
static void appendUtf8 (Ruby runtime, ByteList to, int code, Encoding[]enc, ByteList str, ErrorMode mode)
static void checkUnicodeRange (Ruby runtime, int code, ByteList str, ErrorMode mode)
static void encodingMatchError (Ruby runtime, Regex pattern, Encoding strEnc)
static Regex getPreprocessedRegexpFromCache (Ruby runtime, ByteList bytes, Encoding enc, int options, ErrorMode mode)
static Regex makeRegexp (Ruby runtime, ByteList bytes, int flags, Encoding enc)
static RubyString operandCheck (Ruby runtime, IRubyObject str)
static IRubyObject operandNoCheck (IRubyObject str)
static ByteList preprocess (Ruby runtime, ByteList str, Encoding enc, Encoding[]fixedEnc, ErrorMode mode)
static ByteList quote (ByteList bs, Encoding enc)
static int raisePreprocessError (Ruby runtime, ByteList str, String err, ErrorMode mode)
static void raiseRegexpError (Ruby runtime, ByteList bytes, Encoding enc, int flags, String err)
static void raiseRegexpError19 (Ruby runtime, ByteList bytes, Encoding enc, int flags, String err)
static int readEscapedByte (Ruby runtime, byte[]to, int toP, byte[]bytes, int p, int end, ByteList str, ErrorMode mode)
static ByteList regexpDescription (Ruby runtime, ByteList bytes, Encoding enc, int options)
static ByteList regexpDescription (Ruby runtime, byte[] bytes, int start, int len, Encoding enc, int options)
static ByteList regexpDescription19 (Ruby runtime, byte[] s, int start, int len, int options, Encoding enc)
static int unescapeEscapedNonAscii (Ruby runtime, ByteList to, byte[]bytes, int p, int end, Encoding enc, Encoding[]encp, ByteList str, ErrorMode mode)
static boolean unescapeNonAscii (Ruby runtime, ByteList to, byte[]bytes, int p, int end, Encoding enc, Encoding[]encp, ByteList str, ErrorMode mode)
static int unescapeUnicodeBmp (Ruby runtime, ByteList to, byte[]bytes, int p, int end, Encoding[]encp, ByteList str, ErrorMode mode)
static int unescapeUnicodeList (Ruby runtime, ByteList to, byte[]bytes, int p, int end, Encoding[]encp, ByteList str, ErrorMode mode)

Private Attributes

KCode kcode
Regex pattern
ByteList str = ByteList.EMPTY_BYTELIST

Static Private Attributes

static final int ARG_ENCODING_FIXED = 16
static final int ARG_ENCODING_NONE = 32
static final int ARG_OPTION_MASK = RE_OPTION_IGNORECASE | RE_OPTION_EXTENDED | RE_OPTION_MULTILINE
static final int EMBEDDABLE = RE_OPTION_MULTILINE|RE_OPTION_IGNORECASE|RE_OPTION_EXTENDED
static final RegexpCache patternCache = new RegexpCache()
static final RegexpCache preprocessedPatternCache = new RegexpCache()
static final RegexpCache quotedPatternCache = new RegexpCache()
static ObjectAllocator REGEXP_ALLOCATOR
static final int REGEXP_ENCODING_NONE = USER3_F
static final int REGEXP_KCODE_DEFAULT = USER2_F
static final int REGEXP_LITERAL_F = USER1_F

Detailed Description

Definition at line 81 of file RubyRegexp.java.


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index