org.mozilla.javascript
Interface RegExpProxy

All Known Implementing Classes:
RegExpImpl

public interface RegExpProxy

A proxy for the regexp package, so that the regexp package can be loaded optionally.

Author:
Norris Boyd

Method Summary
 int find_split(Scriptable scope, java.lang.String target, java.lang.String separator, java.lang.Object re, int[] ip, int[] matchlen, boolean[] matched, java.lang.String[][] parensp)
           
 boolean isRegExp(java.lang.Object obj)
           
 java.lang.Object match(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
           
 java.lang.Object newRegExp(Context cx, Scriptable scope, java.lang.String source, java.lang.String global, boolean flat)
           
 java.lang.Object replace(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
           
 java.lang.Object search(Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
           
 

Method Detail

isRegExp

public boolean isRegExp(java.lang.Object obj)

newRegExp

public java.lang.Object newRegExp(Context cx,
                                  Scriptable scope,
                                  java.lang.String source,
                                  java.lang.String global,
                                  boolean flat)

match

public java.lang.Object match(Context cx,
                              Scriptable scope,
                              Scriptable thisObj,
                              java.lang.Object[] args)
                       throws JavaScriptException

search

public java.lang.Object search(Context cx,
                               Scriptable scope,
                               Scriptable thisObj,
                               java.lang.Object[] args)
                        throws JavaScriptException

replace

public java.lang.Object replace(Context cx,
                                Scriptable scope,
                                Scriptable thisObj,
                                java.lang.Object[] args)
                         throws JavaScriptException

find_split

public int find_split(Scriptable scope,
                      java.lang.String target,
                      java.lang.String separator,
                      java.lang.Object re,
                      int[] ip,
                      int[] matchlen,
                      boolean[] matched,
                      java.lang.String[][] parensp)