java.lang.Object
org.htmlunit.corejs.javascript.SlotMapOwner<Scriptable>
org.htmlunit.corejs.javascript.ScriptableObject
org.htmlunit.corejs.javascript.regexp.NativeRegExp
- All Implemented Interfaces:
Serializable,ConstProperties<Scriptable>,DebuggableObject,PropHolder<Scriptable>,Scriptable,SymbolScriptable
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
- Author:
- Brendan Eich, Norris Boyd
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.htmlunit.corejs.javascript.ScriptableObject
ScriptableObject.DescriptorInfo, ScriptableObject.KeyComparator, ScriptableObject.LambdaGetterFunction, ScriptableObject.LambdaSetterFunction -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class org.htmlunit.corejs.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, LEGACY_CONST, PERMANENT, READONLY, STRICTLY_READONLY, UNINITIALIZED_CONSTFields inherited from class org.htmlunit.corejs.javascript.SlotMapOwner
isSealedFields inherited from interface org.htmlunit.corejs.javascript.Scriptable
NOT_FOUND -
Method Summary
Modifier and TypeMethodDescriptionReturn the name of the class.intgetFlags()Gets the value to be returned by the typeof operator called on this object.static booleanparseRegExpUnicodeEscapeSequence(org.htmlunit.corejs.javascript.regexp.CompilerState state, org.htmlunit.corejs.javascript.regexp.NativeRegExp.ParserParameters params) static booleanparseUnicodePropertyEscape(org.htmlunit.corejs.javascript.regexp.CompilerState state) static intreadRegExpUnicodeEscapeSequence(org.htmlunit.corejs.javascript.regexp.CompilerState state, org.htmlunit.corejs.javascript.regexp.NativeRegExp.ParserParameters params) static ObjectregExpExec(Scriptable regexp, String string, Context cx, VarScope scope) toString()Methods inherited from class org.htmlunit.corejs.javascript.ScriptableObject
applyDescriptorToAttributeBitset, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkNotSealed, checkPropertyChangeForSlot, checkPropertyChangeForSlot, checkPropertyDefinition, checkPropertyDefinition, checkSlotRemoval, defineBuiltinProperty, defineBuiltinProperty, defineBuiltInProperty, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureScriptableObjectButNotSymbol, ensureSymbolScriptable, ensureType, equivalentValues, get, get, getAllIds, getAncestor, getArrayPrototype, getClassPrototype, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSuperProperty, getSuperProperty, getSuperProperty, getThis, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, has, hasInstance, hasProperty, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGenericDescriptor, isGetterOrSetter, isGetterOrSetter, isTrue, preventExtensions, put, put, put, putConst, putConstProperty, putConstProperty, putOwnProperty, putOwnProperty, putOwnProperty, putProperty, putProperty, putProperty, putProperty, putSuperProperty, putSuperProperty, putSuperProperty, querySlot, redefineProperty, redefineProperty, sameValue, sealObject, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, sizeMethods inherited from class org.htmlunit.corejs.javascript.SlotMapOwner
associateValue, checkNotSealed, copyAssociatedValue, createSlotMap, createSlotMap, defineProperty, defineProperty, get, get, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getIds, has, has, isSealed, readMaps, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, writeMapsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.htmlunit.corejs.javascript.Scriptable
get, get, getIds, has, hasMethods inherited from interface org.htmlunit.corejs.javascript.SymbolScriptable
get, has
-
Field Details
-
JSREG_GLOB
public static final int JSREG_GLOB- See Also:
-
JSREG_FOLD
public static final int JSREG_FOLD- See Also:
-
JSREG_MULTILINE
public static final int JSREG_MULTILINE- See Also:
-
JSREG_DOTALL
public static final int JSREG_DOTALL- See Also:
-
JSREG_STICKY
public static final int JSREG_STICKY- See Also:
-
JSREG_UNICODE
public static final int JSREG_UNICODE- See Also:
-
TEST
public static final int TEST- See Also:
-
MATCH
public static final int MATCH- See Also:
-
PREFIX
public static final int PREFIX- See Also:
-
-
Method Details
-
getClassName
Description copied from class:ScriptableObjectReturn the name of the class.This is typically the same name as the constructor. Classes extending ScriptableObject must implement this abstract method.
- Specified by:
getClassNamein interfaceScriptable- Specified by:
getClassNamein classScriptableObject
-
getTypeOf
Gets the value to be returned by the typeof operator called on this object.- Overrides:
getTypeOfin classScriptableObject- Returns:
- "object"
- See Also:
-
toString
-
readRegExpUnicodeEscapeSequence
public static int readRegExpUnicodeEscapeSequence(org.htmlunit.corejs.javascript.regexp.CompilerState state, org.htmlunit.corejs.javascript.regexp.NativeRegExp.ParserParameters params) -
parseRegExpUnicodeEscapeSequence
public static boolean parseRegExpUnicodeEscapeSequence(org.htmlunit.corejs.javascript.regexp.CompilerState state, org.htmlunit.corejs.javascript.regexp.NativeRegExp.ParserParameters params) -
parseUnicodePropertyEscape
public static boolean parseUnicodePropertyEscape(org.htmlunit.corejs.javascript.regexp.CompilerState state) -
getFlags
public int getFlags() -
regExpExec
-