/** * Use the wrapped proxy except for replacement with string arg where it uses Java regular expression. * {@inheritDoc} */ @Override public Object action(final Context cx, final Scriptable scope, final Scriptable thisObj, final Object[] args, final int actionType) { try { return doAction(cx, scope, thisObj, args, actionType); } catch (final StackOverflowError e) { // TODO: We shouldn't have to catch this exception and fall back to Rhino's regex support! // See HtmlUnitRegExpProxyTest.stackOverflow() LOG.warn(e.getMessage(), e); return wrapped_.action(cx, scope, thisObj, args, actionType); } }
/** * Use the wrapped proxy except for replacement with string arg where it uses Java regular expression. * {@inheritDoc} */ @Override public Object action(final Context cx, final Scriptable scope, final Scriptable thisObj, final Object[] args, final int actionType) { try { return doAction(cx, scope, thisObj, args, actionType); } catch (final StackOverflowError e) { // TODO: We shouldn't have to catch this exception and fall back to Rhino's regex support! // See HtmlUnitRegExpProxyTest.stackOverflow() LOG.warn(e.getMessage(), e); return wrapped_.action(cx, scope, thisObj, args, actionType); } }
/** * Calls action on the wrapped RegExp proxy. */ private Object wrappedAction(final Context cx, final Scriptable scope, final Scriptable thisObj, final Object[] args, final int actionType) { // take care to set the context's RegExp proxy to the original one as this is checked // (cf net.sourceforge.htmlunit.corejs.javascript.regexp.RegExpImp:334) try { ScriptRuntime.setRegExpProxy(cx, wrapped_); return wrapped_.action(cx, scope, thisObj, args, actionType); } finally { ScriptRuntime.setRegExpProxy(cx, this); } }
/** * Use the wrapped proxy except for replacement with string arg where it uses Java regular expression. * {@inheritDoc} */ @Override public Object action(final Context cx, final Scriptable scope, final Scriptable thisObj, final Object[] args, final int actionType) { try { return doAction(cx, scope, thisObj, args, actionType); } catch (final StackOverflowError e) { // TODO: We shouldn't have to catch this exception and fall back to Rhino's regex support! // See HtmlUnitRegExpProxyTest.stackOverflow() LOG.warn(e.getMessage(), e); return wrapped_.action(cx, scope, thisObj, args, actionType); } }
/** * Use the wrapped proxy except for replacement with string arg where it uses Java regular expression. * {@inheritDoc} */ @Override public Object action(final Context cx, final Scriptable scope, final Scriptable thisObj, final Object[] args, final int actionType) { try { return doAction(cx, scope, thisObj, args, actionType); } catch (final StackOverflowError e) { // TODO: We shouldn't have to catch this exception and fall back to Rhino's regex support! // See HtmlUnitRegExpProxyTest.stackOverflow() LOG.warn(e.getMessage(), e); return wrapped_.action(cx, scope, thisObj, args, actionType); } }
/** * Use the wrapped proxy except for replacement with string arg where it uses Java regular expression. * {@inheritDoc} */ @Override public Object action(final Context cx, final Scriptable scope, final Scriptable thisObj, final Object[] args, final int actionType) { try { return doAction(cx, scope, thisObj, args, actionType); } catch (final StackOverflowError e) { // TODO: We shouldn't have to catch this exception and fall back to Rhino's regex support! // See HtmlUnitRegExpProxyTest.stackOverflow() LOG.warn(e.getMessage(), e); return wrapped_.action(cx, scope, thisObj, args, actionType); } }
/** * Calls action on the wrapped RegExp proxy. */ private Object wrappedAction(final Context cx, final Scriptable scope, final Scriptable thisObj, final Object[] args, final int actionType) { // take care to set the context's RegExp proxy to the original one as this is checked // (cf net.sourceforge.htmlunit.corejs.javascript.regexp.RegExpImp:334) try { ScriptRuntime.setRegExpProxy(cx, wrapped_); return wrapped_.action(cx, scope, thisObj, args, actionType); } finally { ScriptRuntime.setRegExpProxy(cx, this); } }
/** * Calls action on the wrapped RegExp proxy. */ private Object wrappedAction(final Context cx, final Scriptable scope, final Scriptable thisObj, final Object[] args, final int actionType) { // take care to set the context's RegExp proxy to the original one as this is checked // (cf net.sourceforge.htmlunit.corejs.javascript.regexp.RegExpImp:334) try { ScriptRuntime.setRegExpProxy(cx, wrapped_); return wrapped_.action(cx, scope, thisObj, args, actionType); } finally { ScriptRuntime.setRegExpProxy(cx, this); } }
/** * Calls action on the wrapped RegExp proxy. */ private Object wrappedAction(final Context cx, final Scriptable scope, final Scriptable thisObj, final Object[] args, final int actionType) { // take care to set the context's RegExp proxy to the original one as this is checked // (cf net.sourceforge.htmlunit.corejs.javascript.regexp.RegExpImp:334) try { ScriptRuntime.setRegExpProxy(cx, wrapped_); return wrapped_.action(cx, scope, thisObj, args, actionType); } finally { ScriptRuntime.setRegExpProxy(cx, this); } }
/** * Calls action on the wrapped RegExp proxy. */ private Object wrappedAction(final Context cx, final Scriptable scope, final Scriptable thisObj, final Object[] args, final int actionType) { // take care to set the context's RegExp proxy to the original one as this is checked // (cf net.sourceforge.htmlunit.corejs.javascript.regexp.RegExpImp:334) try { ScriptRuntime.setRegExpProxy(cx, wrapped_); return wrapped_.action(cx, scope, thisObj, args, actionType); } finally { ScriptRuntime.setRegExpProxy(cx, this); } }
action(cx, scope, thisObj, args, actionType);