org.mozilla.javascript.regexp
Class NativeRegExp
- Callable, ConstProperties, DebuggableObject, Function, IdFunctionCall, Scriptable, Serializable
public class NativeRegExp
This class implements the RegExp native object.
Revision History:
Implementation in C by Brendan Eich
Initial port to Java by Norris Boyd from jsregexp.c version 1.36
Merged up to version 1.38, which included Unicode support.
Merged bug fixes in version 1.39.
Merged JSFUN13_BRANCH changes up to 1.32.2.13
Object | call(Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
|
Scriptable | construct(Context cx, Scriptable scope, Object[] args)
|
Object | execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args) - 'thisObj' will be null if invoked as constructor, in which case
instance of Scriptable should be returned.
|
protected int | findInstanceIdInfo(String s) - Map name to id of instance property.
|
protected int | findPrototypeId(String s)
|
String | getClassName()
|
protected String | getInstanceIdName(int id) - Map id back to property name it defines.
|
protected Object | getInstanceIdValue(int id) - Get id value.
|
protected int | getMaxInstanceId() - Get maximum id findInstanceIdInfo can generate.
|
static void | init(Context cx, Scriptable scope, boolean sealed)
|
protected void | initPrototypeId(int id)
|
protected void | setInstanceIdValue(int id, Object value) - Set or delete id value.
|
String | toString()
|
activatePrototypeMap , addIdFunctionProperty , defaultGet , defaultPut , delete , execIdCall , exportAsJSClass , fillConstructorProperties , findInstanceIdInfo , findPrototypeId , get , getAttributes , getInstanceIdName , getInstanceIdValue , getMaxInstanceId , has , hasPrototypeMap , incompatibleCallError , initPrototypeConstructor , initPrototypeId , initPrototypeMethod , initPrototypeValue , instanceIdInfo , put , setAttributes , setInstanceIdValue |
associateValue , avoidObjectDetection , callMethod , callMethod , defineClass , defineClass , defineClass , defineConst , defineConstProperty , defineFunctionProperties , defineProperty , defineProperty , defineProperty , defineProperty , delete , delete , deleteProperty , deleteProperty , equivalentValues , get , get , getAllIds , getAssociatedValue , getAttributes , getAttributes , getAttributes , getAttributes , getClassName , getClassPrototype , getDefaultValue , getDefaultValue , getFunctionPrototype , getGetterOrSetter , getIds , getObjectPrototype , getParentScope , getProperty , getProperty , getPropertyIds , getPrototype , getTopLevelScope , getTopScopeValue , has , has , hasInstance , hasProperty , hasProperty , isConst , isGetterOrSetter , isSealed , put , put , putConst , putConstProperty , putProperty , putProperty , redefineProperty , sealObject , setAttributes , setAttributes , setAttributes , setAttributes , setGetterOrSetter , setParentScope , setPrototype |
JSREG_FOLD
public static final int JSREG_FOLD
JSREG_GLOB
public static final int JSREG_GLOB
JSREG_MULTILINE
public static final int JSREG_MULTILINE
MATCH
public static final int MATCH
PREFIX
public static final int PREFIX
TEST
public static final int TEST
getInstanceIdValue
protected Object getInstanceIdValue(int id)
Get id value.
If id value is constant, descendant can call cacheIdValue to store
value in the permanent cache.
Default implementation creates IdFunctionObject instance for given id
and cache its value
- getInstanceIdValue in interface IdScriptableObject
setInstanceIdValue
protected void setInstanceIdValue(int id,
Object value)
Set or delete id value. If value == NOT_FOUND , the implementation
should make sure that the following getInstanceIdValue return NOT_FOUND.
- setInstanceIdValue in interface IdScriptableObject
toString
public String toString()