Debian Codegraph @

rhino/src/org/mozilla/javascript/RegExpProxy.java

raw symbols SCIP
1 /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7 package org.mozilla.javascript;
8
9 /**
10 * A proxy for the regexp package, so that the regexp package can be
11 * loaded optionally.
12 *
13 * @author Norris Boyd
14 */
15 public interface RegExpProxy
16 {
17 // Types of regexp actions
18 public static final int RA_MATCH = 1;
19 public static final int RA_REPLACE = 2;
20 public static final int RA_SEARCH = 3;
21
22 public boolean isRegExp(Scriptable obj);
23
24 public Object compileRegExp(Context cx, String source, String flags);
25
26 public Scriptable wrapRegExp(Context cx, Scriptable scope,
27 Object compiled);
28
29 public Object action(Context cx, Scriptable scope,
30 Scriptable thisObj, Object[] args,
31 int actionType);
32
33 public int find_split(Context cx, Scriptable scope, String target,
34 String separator, Scriptable re,
35 int[] ip, int[] matchlen,
36 boolean[] matched, String[][] parensp);
37
38 public Object js_split(Context _cx, Scriptable _scope,
39 String thisString, Object[] _args);
40 }