|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jruby.runtime.regexp.IRegexpAdapter
org.jruby.runtime.regexp.JDKRegexpAdapter
Regexp adapter for Java 1.4+.
| Constructor Summary | |
JDKRegexpAdapter()
|
|
| Method Summary | |
void |
compile(Ruby ruby,
java.lang.String regex)
Compile the regex. |
boolean |
getCasefold()
Get whether matches are case-insensitive or not |
IRubyObject |
search(Ruby ruby,
java.lang.String target,
int startPos)
Does the given argument match the pattern? |
void |
setCasefold(boolean set)
Set whether matches should be case-insensitive or not |
void |
setExtended(boolean set)
Set whether patterns can contain comments and extra whitespace |
void |
setMultiline(boolean set)
Set whether the dot metacharacter should match newlines |
| Methods inherited from class org.jruby.runtime.regexp.IRegexpAdapter |
getAdapter, unextend |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JDKRegexpAdapter()
| Method Detail |
public void compile(Ruby ruby,
java.lang.String regex)
throws RegexpError
compile in class IRegexpAdapterRegexpErrorpublic void setCasefold(boolean set)
setCasefold in class IRegexpAdapterpublic boolean getCasefold()
getCasefold in class IRegexpAdapterpublic void setExtended(boolean set)
setExtended in class IRegexpAdapterpublic void setMultiline(boolean set)
setMultiline in class IRegexpAdapter
public IRubyObject search(Ruby ruby,
java.lang.String target,
int startPos)
search in class IRegexpAdapter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||