Class NativeRegExp

All Implemented Interfaces:
Serializable, ConstProperties<Scriptable>, DebuggableObject, PropHolder<Scriptable>, Scriptable, SymbolScriptable

public class NativeRegExp extends ScriptableObject
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:
  • Field Details

  • Method Details

    • getClassName

      public String getClassName()
      Description copied from class: ScriptableObject
      Return the name of the class.

      This is typically the same name as the constructor. Classes extending ScriptableObject must implement this abstract method.

      Specified by:
      getClassName in interface Scriptable
      Specified by:
      getClassName in class ScriptableObject
    • getTypeOf

      public String getTypeOf()
      Gets the value to be returned by the typeof operator called on this object.
      Overrides:
      getTypeOf in class ScriptableObject
      Returns:
      "object"
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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

      public static Object regExpExec(Scriptable regexp, String string, Context cx, VarScope scope)