org.mozilla.javascript

Interface RegExpProxy

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

Field Summary

static int
RA_MATCH
static int
RA_REPLACE
static int
RA_SEARCH

Method Summary

Object
action(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, int actionType)
Object
compileRegExp(Context cx, String source, String flags)
int
find_split(Context cx, Scriptable scope, String target, String separator, Scriptable re, int[] ip, int[] matchlen, boolean[] matched, String[][] parensp)
boolean
isRegExp(Scriptable obj)
Scriptable
wrapRegExp(Context cx, Scriptable scope, Object compiled)

Field Details

RA_MATCH

public static final int RA_MATCH
Field Value:
1

RA_REPLACE

public static final int RA_REPLACE
Field Value:
2

RA_SEARCH

public static final int RA_SEARCH
Field Value:
3

Method Details

action

public Object action(Context cx,
                     Scriptable scope,
                     Scriptable thisObj,
                     Object[] args,
                     int actionType)

compileRegExp

public Object compileRegExp(Context cx,
                            String source,
                            String flags)

find_split

public int find_split(Context cx,
                      Scriptable scope,
                      String target,
                      String separator,
                      Scriptable re,
                      int[] ip,
                      int[] matchlen,
                      boolean[] matched,
                      String[][] parensp)

isRegExp

public boolean isRegExp(Scriptable obj)

wrapRegExp

public Scriptable wrapRegExp(Context cx,
                             Scriptable scope,
                             Object compiled)