Class HtmlUnitRegExpProxy

java.lang.Object
org.htmlunit.corejs.javascript.regexp.RegExpImpl
org.htmlunit.javascript.regexp.HtmlUnitRegExpProxy
All Implemented Interfaces:
org.htmlunit.corejs.javascript.RegExpProxy

public class HtmlUnitRegExpProxy extends org.htmlunit.corejs.javascript.regexp.RegExpImpl
Begins customization of JavaScript RegExp base on JDK regular expression support.
Author:
Marc Guillemot, Ahmed Ashour, Ronald Brill, Carsten Steul
  • Field Summary

    Fields inherited from class org.htmlunit.corejs.javascript.regexp.RegExpImpl

    input, lastMatch, lastParen, leftContext, multiline, parens, rightContext

    Fields inherited from interface org.htmlunit.corejs.javascript.RegExpProxy

    RA_MATCH, RA_REPLACE, RA_REPLACE_ALL, RA_SEARCH
  • Constructor Summary

    Constructors
    Constructor
    Description
    HtmlUnitRegExpProxy(org.htmlunit.corejs.javascript.RegExpProxy wrapped)
    Wraps a proxy to enhance it.
  • Method Summary

    Modifier and Type
    Method
    Description
    action(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, int actionType)
    Use the wrapped proxy except for replacement with string arg where it uses Java regular expression.
    compileRegExp(org.htmlunit.corejs.javascript.Context cx, String source, String flags)
    int
    find_split(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable scope, String target, String separator, org.htmlunit.corejs.javascript.Scriptable re, int[] ip, int[] matchlen, boolean[] matched, String[][] parensp)
    boolean
    isRegExp(org.htmlunit.corejs.javascript.Scriptable obj)
    org.htmlunit.corejs.javascript.Scriptable
    wrapRegExp(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable scope, Object compiled)

    Methods inherited from class org.htmlunit.corejs.javascript.regexp.RegExpImpl

    js_split

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HtmlUnitRegExpProxy

      public HtmlUnitRegExpProxy(org.htmlunit.corejs.javascript.RegExpProxy wrapped)
      Wraps a proxy to enhance it.
      Parameters:
      wrapped - the original proxy
  • Method Details

    • action

      public Object action(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable scope, org.htmlunit.corejs.javascript.Scriptable thisObj, Object[] args, int actionType)
      Use the wrapped proxy except for replacement with string arg where it uses Java regular expression.
      Specified by:
      action in interface org.htmlunit.corejs.javascript.RegExpProxy
      Overrides:
      action in class org.htmlunit.corejs.javascript.regexp.RegExpImpl
    • compileRegExp

      public Object compileRegExp(org.htmlunit.corejs.javascript.Context cx, String source, String flags)
      Specified by:
      compileRegExp in interface org.htmlunit.corejs.javascript.RegExpProxy
      Overrides:
      compileRegExp in class org.htmlunit.corejs.javascript.regexp.RegExpImpl
    • find_split

      public int find_split(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable scope, String target, String separator, org.htmlunit.corejs.javascript.Scriptable re, int[] ip, int[] matchlen, boolean[] matched, String[][] parensp)
      Specified by:
      find_split in interface org.htmlunit.corejs.javascript.RegExpProxy
      Overrides:
      find_split in class org.htmlunit.corejs.javascript.regexp.RegExpImpl
    • isRegExp

      public boolean isRegExp(org.htmlunit.corejs.javascript.Scriptable obj)
      Specified by:
      isRegExp in interface org.htmlunit.corejs.javascript.RegExpProxy
      Overrides:
      isRegExp in class org.htmlunit.corejs.javascript.regexp.RegExpImpl
    • wrapRegExp

      public org.htmlunit.corejs.javascript.Scriptable wrapRegExp(org.htmlunit.corejs.javascript.Context cx, org.htmlunit.corejs.javascript.Scriptable scope, Object compiled)
      Specified by:
      wrapRegExp in interface org.htmlunit.corejs.javascript.RegExpProxy
      Overrides:
      wrapRegExp in class org.htmlunit.corejs.javascript.regexp.RegExpImpl