org.mozilla.javascript

Interface RegExpProxy

public interface RegExpProxy

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

Author: Norris Boyd

Field Summary
static intRA_MATCH
static intRA_REPLACE
static intRA_SEARCH
Method Summary
Objectaction(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, int actionType)
ObjectcompileRegExp(Context cx, String source, String flags)
intfind_split(Context cx, Scriptable scope, String target, String separator, Scriptable re, int[] ip, int[] matchlen, boolean[] matched, String[][] parensp)
booleanisRegExp(Scriptable obj)
ScriptablewrapRegExp(Context cx, Scriptable scope, Object compiled)

Field Detail

RA_MATCH

public static final int RA_MATCH

RA_REPLACE

public static final int RA_REPLACE

RA_SEARCH

public static final int RA_SEARCH

Method Detail

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)