Logo Search packages:      
Sourcecode: jruby0.9 version File versions  Download package

org::jruby::RubyRegexp Class Reference

Inheritance diagram for org::jruby::RubyRegexp:

org::jruby::RubyObject org::jruby::runtime::builtin::IRubyObject

List of all members.


Detailed Description

Author:
amoore

Definition at line 62 of file RubyRegexp.java.


Public Member Functions

void addFinalizer (RubyProc finalizer)
IRubyObject anyToString ()
RubyString asString ()
String asSymbol ()
void attachToObjectSpace ()
void callInit (IRubyObject[] args, Block block)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject arg)
IRubyObject callMethod (ThreadContext context, String name, Block block)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name)
IRubyObject callMethod (ThreadContext context, String name)
IRubyObject callMethod (ThreadContext context, RubyModule rubyclass, String name, IRubyObject[] args, CallType callType, Block block)
IRubyObject callMethod (ThreadContext context, RubyModule rubyclass, int methodIndex, String name, IRubyObject[] args, CallType callType)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name, IRubyObject[] args, CallType callType)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name, IRubyObject[] args)
IRubyObject callMethod (ThreadContext context, int methodIndex, String name, IRubyObject arg)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args, CallType callType, Block block)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args, CallType callType)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args, Block block)
IRubyObject callMethod (ThreadContext context, String name, IRubyObject[] args)
IRubyObject callMethod (ThreadContext context, RubyModule rubyclass, int methodIndex, String name, IRubyObject[] args, CallType callType, Block block)
IRubyObject callSuper (ThreadContext context, IRubyObject[] args, Block block)
RubyBoolean casefold ()
IRubyObject checkArrayType ()
IRubyObject checkStringType ()
IRubyObject compilerCallMethod (ThreadContext context, String name, IRubyObject[] args, IRubyObject self, CallType callType, Block block)
IRubyObject compilerCallMethodWithIndex (ThreadContext context, int methodIndex, String name, IRubyObject[] args, IRubyObject self, CallType callType, Block block)
RubyArray convertToArray ()
RubyFloat convertToFloat ()
RubyHash convertToHash ()
RubyInteger convertToInteger ()
RubyString convertToString ()
IRubyObject convertToType (RubyClass targetType, int convertMethodIndex, String convertMethod, boolean raiseOnMissingMethod, boolean raiseOnWrongTypeResult, boolean allowNilThrough)
IRubyObject convertToType (RubyClass targetType, int convertMethodIndex, boolean raise)
IRubyObject convertToType (RubyClass targetType, int convertMethodIndex, String convertMethod, boolean raise)
IRubyObject convertToTypeWithCheck (RubyClass targetType, int convertMethodIndex, String convertMethod)
synchronized Object dataGetStruct ()
synchronized void dataWrapStruct (Object obj)
IRubyObject display (IRubyObject[] args)
IRubyObject dup ()
boolean eql (IRubyObject other)
final boolean eqlInternal (final ThreadContext context, final IRubyObject other)
IRubyObject eqq (IRubyObject target)
IRubyObject equal (IRubyObject other)
final IRubyObject equalInternal (final ThreadContext context, final IRubyObject other)
boolean equals (Object other)
IRubyObject evalSimple (ThreadContext context, IRubyObject src, String file)
IRubyObject evalUnder (RubyModule under, IRubyObject src, IRubyObject file, IRubyObject line)
IRubyObject evalWithBinding (ThreadContext context, IRubyObject src, IRubyObject scope, String file)
IRubyObject extend (IRubyObject[] args)
IRubyObject freeze ()
RubyBoolean frozen ()
IRubyObject getInstanceVariable (String name)
Map getInstanceVariables ()
Map getInstanceVariablesSnapshot ()
Class getJavaClass ()
final RubyClass getMetaClass ()
int getNativeTypeIndex ()
Pattern getPattern ()
Ruby getRuntime ()
RubyClass getSingletonClass ()
RubyClass getSingletonClassClone ()
RubyClass getType ()
RubyFixnum hash ()
int hashCode ()
synchronized RubyFixnum id ()
synchronized RubyFixnum id_deprecated ()
IRubyObject infectBy (IRubyObject obj)
IRubyObject inherited (IRubyObject arg, Block block)
IRubyObject initialize (IRubyObject[] args, Block block)
IRubyObject initialize (IRubyObject[] args)
void initialize (String regex, int options)
IRubyObject initialize_copy (IRubyObject original)
IRubyObject inspect ()
IRubyObject instance_eval (IRubyObject[] args, Block block)
RubyBoolean instance_of (IRubyObject type)
IRubyObject instance_variable_get (IRubyObject var)
IRubyObject instance_variable_set (IRubyObject var, IRubyObject value)
RubyArray instance_variables ()
Iterator instanceVariableNames ()
final boolean isFalse ()
boolean isFrozen ()
boolean isImmediate ()
boolean isKindOf (RubyModule type)
boolean isNil ()
boolean isSingleton ()
boolean isTaint ()
final boolean isTrue ()
IRubyObject kcode ()
RubyBoolean kind_of (IRubyObject type)
RubyClass makeMetaClass (RubyClass superClass, SinglyLinkedList parentCRef)
IRubyObject match (String target, RubyString rtarget, int startPos)
IRubyObject match (IRubyObject target)
IRubyObject match2 ()
IRubyObject match_m (IRubyObject target)
IRubyObject method (IRubyObject symbol)
IRubyObject method_missing (IRubyObject[] args, Block block)
IRubyObject methods (IRubyObject[] args)
IRubyObject nil_p ()
IRubyObject obj_equal (IRubyObject obj)
IRubyObject private_methods ()
IRubyObject protected_methods ()
IRubyObject public_methods (IRubyObject[] args)
IRubyObject rbClone ()
IRubyObject regsub (IRubyObject str, RubyMatchData match)
void regsub (RubyString str, RubyMatchData match, ByteList sb)
IRubyObject remove_instance_variable (IRubyObject name, Block block)
void removeFinalizers ()
IRubyObject removeInstanceVariable (String name)
RubyBoolean respond_to (IRubyObject[] args)
boolean respondsTo (String name)
 RubyRegexp (Ruby runtime, RubyClass klass)
Map safeGetInstanceVariables ()
boolean safeHasInstanceVariables ()
int search (String target, RubyString rtarget, int pos)
IRubyObject search2 (String str, RubyString rtarget)
int searchAgain (String target, RubyString rtarget, boolean utf)
IRubyObject send (IRubyObject[] args, Block block)
void setFrozen (boolean frozen)
IRubyObject setInstanceVariable (String name, IRubyObject value)
IRubyObject setInstanceVariable (String name, IRubyObject value, String taintError, String freezeError)
void setInstanceVariables (Map instanceVariables)
void setMetaClass (RubyClass metaClass)
void setTaint (boolean taint)
RubyArray singleton_methods (IRubyObject[] args)
RubyString source ()
IRubyObject specificEval (RubyModule mod, IRubyObject[] args, Block block)
IRubyObject taint ()
RubyBoolean tainted ()
IRubyObject to_s ()
String toString ()
RubyClass type ()
RubyClass type_deprecated ()
IRubyObject untaint ()

Static Public Member Functions

static IRubyObject callMethodMissingIfNecessary (ThreadContext context, IRubyObject receiver, DynamicMethod method, String name, IRubyObject[] args, IRubyObject self, CallType callType, Block block)
static RubyClass createObjectClass (Ruby runtime, RubyClass objectClass)
static RubyClass createRegexpClass (Ruby runtime)
static String escapeSpecialChars (String original)
static void initCopy (IRubyObject clone, IRubyObject original)
static IRubyObject last_match (IRubyObject match)
static IRubyObject last_match_s (IRubyObject recv, IRubyObject[] args)
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 newInstance (IRubyObject recv, IRubyObject[] args)
static RubyRegexp newRegexp (Ruby runtime, String str, int options, String kcode)
static RubyRegexp newRegexp (Ruby runtime, String source, Pattern pattern, int flags, String lang)
static RubyRegexp newRegexp (RubyString str, int options, String lang)
static IRubyObject nth_match (int n, IRubyObject match)
static void puts (Object obj)
static RubyString quote (IRubyObject recv, RubyString str)
static RubyString quote (IRubyObject recv, IRubyObject[] args)
static RubyRegexp regexpValue (IRubyObject obj)
static String trueFalseNil (String v)
static String trueFalseNil (IRubyObject v)
static IRubyObject union (IRubyObject recv, IRubyObject[] args)
static RubyRegexp unmarshalFrom (UnmarshalStream input) throws java.io.IOException

Public Attributes

int RE_MAY_IGNORECASE = (RE_OPTION_LONGEST << 1)
int RE_OPTION_EXTENDED = (RE_OPTION_IGNORECASE << 1)
int RE_OPTION_LONGEST = (RE_OPTION_SINGLELINE << 1)
int RE_OPTION_MULTILINE = (RE_OPTION_EXTENDED << 1)
int RE_OPTION_ONCE = 0x80
int RE_OPTION_POSIXLINE = (RE_OPTION_MULTILINE | RE_OPTION_SINGLELINE)
int RE_OPTION_SINGLELINE = (RE_OPTION_MULTILINE << 1)

Static Public Attributes

static final byte EQQ_SWITCHVALUE = 6
static final byte EQUALEQUAL_SWITCHVALUE = 2
static final byte HASH_SWITCHVALUE = 4
static final byte MATCH_SWITCHVALUE = 5
static final IRubyObject NEVER = new RubyObject()
static final byte NIL_P_SWITCHVALUE = 1
static final IRubyObject[] NULL_ARRAY = new IRubyObject[0]
static ObjectAllocator OBJECT_ALLOCATOR
static final byte TO_S_SWITCHVALUE = 3

Protected Member Functions

void checkFrozen ()
IRubyObject doClone ()
void testFrozen (String message)

Protected Attributes

Map instanceVariables
boolean isTrue = true
RubyClass metaClass

Package Functions

KCode getCode ()

Package Attributes

int RE_OPTION_IGNORECASE = 1

Private Member Functions

void checkInitialized ()
void flagToString (StringBuffer buffer, StringBuffer off, int flag, char c)
void recompileIfNeeded ()
 RubyRegexp (Ruby runtime)

Private Attributes

KCode code
int flags
String lastTarget = null
Matcher matcher = null
Pattern pattern
String source

Static Private Attributes

static ObjectAllocator REGEXP_ALLOCATOR
static final RegexpTranslator REGEXP_TRANSLATOR = new RegexpTranslator()
static final Pattern SPECIAL_CHARS = new Pattern("([\\\t\\\n\\\f\\\r\\ \\#\\\013\\+\\-\\[\\]\\.\\?\\*\\(\\)\\{\\}\\|\\\\\\^\\$])")

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

Generated by  Doxygen 1.6.0   Back to index