com.gargoylesoftware.htmlunit.javascript.regexp
Class HtmlUnitRegExpProxy

java.lang.Object
  extended by org.mozilla.javascript.regexp.RegExpImpl
      extended by com.gargoylesoftware.htmlunit.javascript.regexp.HtmlUnitRegExpProxy
All Implemented Interfaces:
org.mozilla.javascript.RegExpProxy

public class HtmlUnitRegExpProxy
extends org.mozilla.javascript.regexp.RegExpImpl

Begins customisation of JavaScript RegExp base on JDK regular expression support.

Version:
$Revision: 1.3 $
Author:
Marc Guillemot

Field Summary
 
Fields inherited from interface org.mozilla.javascript.RegExpProxy
RA_MATCH, RA_REPLACE, RA_SEARCH
 
Constructor Summary
HtmlUnitRegExpProxy(org.mozilla.javascript.RegExpProxy wrapped)
 Wraps a proxy to enhance it
 
Method Summary
 java.lang.Object action(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, org.mozilla.javascript.Scriptable thisObj, java.lang.Object[] args, int actionType)
 Use wrapped proxy except for replacement with string arg where it uses Java regular expression
 java.lang.Object compileRegExp(org.mozilla.javascript.Context cx, java.lang.String source, java.lang.String flags)
 
 int find_split(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, java.lang.String target, java.lang.String separator, org.mozilla.javascript.Scriptable re, int[] ip, int[] matchlen, boolean[] matched, java.lang.String[][] parensp)
 
 boolean isRegExp(org.mozilla.javascript.Scriptable obj)
 
 org.mozilla.javascript.Scriptable wrapRegExp(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, java.lang.Object compiled)
 
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlUnitRegExpProxy

public HtmlUnitRegExpProxy(org.mozilla.javascript.RegExpProxy wrapped)
Wraps a proxy to enhance it

Parameters:
wrapped - the original proxy
Method Detail

action

public java.lang.Object action(org.mozilla.javascript.Context cx,
                               org.mozilla.javascript.Scriptable scope,
                               org.mozilla.javascript.Scriptable thisObj,
                               java.lang.Object[] args,
                               int actionType)
Use wrapped proxy except for replacement with string arg where it uses Java regular expression

Specified by:
action in interface org.mozilla.javascript.RegExpProxy
Overrides:
action in class org.mozilla.javascript.regexp.RegExpImpl

compileRegExp

public java.lang.Object compileRegExp(org.mozilla.javascript.Context cx,
                                      java.lang.String source,
                                      java.lang.String flags)

Specified by:
compileRegExp in interface org.mozilla.javascript.RegExpProxy
Overrides:
compileRegExp in class org.mozilla.javascript.regexp.RegExpImpl

find_split

public int find_split(org.mozilla.javascript.Context cx,
                      org.mozilla.javascript.Scriptable scope,
                      java.lang.String target,
                      java.lang.String separator,
                      org.mozilla.javascript.Scriptable re,
                      int[] ip,
                      int[] matchlen,
                      boolean[] matched,
                      java.lang.String[][] parensp)

Specified by:
find_split in interface org.mozilla.javascript.RegExpProxy
Overrides:
find_split in class org.mozilla.javascript.regexp.RegExpImpl

isRegExp

public boolean isRegExp(org.mozilla.javascript.Scriptable obj)

Specified by:
isRegExp in interface org.mozilla.javascript.RegExpProxy
Overrides:
isRegExp in class org.mozilla.javascript.regexp.RegExpImpl

wrapRegExp

public org.mozilla.javascript.Scriptable wrapRegExp(org.mozilla.javascript.Context cx,
                                                    org.mozilla.javascript.Scriptable scope,
                                                    java.lang.Object compiled)

Specified by:
wrapRegExp in interface org.mozilla.javascript.RegExpProxy
Overrides:
wrapRegExp in class org.mozilla.javascript.regexp.RegExpImpl


Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.