org.mozilla.javascript
Class ContextHelper

java.lang.Object
  extended by org.mozilla.javascript.ContextHelper

public class ContextHelper
extends java.lang.Object

Hack to enable creating E4X XML from Axiom OMElements outside of a script invocation. To do this requires Context.topCallScope not be null, but outside of a script invocation it is null, hence this method to enable setting it. Could be a bug in the Axiom E4X impl as the XmlBeans impl does not require this.


Constructor Summary
ContextHelper()
           
 
Method Summary
static void setTopCallScope(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextHelper

public ContextHelper()
Method Detail

setTopCallScope

public static void setTopCallScope(org.mozilla.javascript.Context cx,
                                   org.mozilla.javascript.Scriptable scope)


Copyright © 1999-2009 Apache Software Foundation. All Rights Reserved.