Class RingoWrapFactory


  • public class RingoWrapFactory
    extends org.mozilla.javascript.WrapFactory
    Ringo default wrap factory implementation.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object wrap​(org.mozilla.javascript.Context cx, org.mozilla.javascript.Scriptable scope, java.lang.Object obj, java.lang.Class staticType)
      Override to wrap maps as scriptables.
      • Methods inherited from class org.mozilla.javascript.WrapFactory

        isJavaPrimitiveWrap, setJavaPrimitiveWrap, wrapAsJavaObject, wrapJavaClass, wrapNewObject
      • Methods inherited from class java.lang.Object

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

      • RingoWrapFactory

        public RingoWrapFactory()
    • Method Detail

      • wrap

        public java.lang.Object wrap​(org.mozilla.javascript.Context cx,
                                     org.mozilla.javascript.Scriptable scope,
                                     java.lang.Object obj,
                                     java.lang.Class staticType)
        Override to wrap maps as scriptables.
        Overrides:
        wrap in class org.mozilla.javascript.WrapFactory
        Parameters:
        cx - the current Context for this thread
        scope - the scope of the executing script
        obj - the object to be wrapped. Note it can be null.
        staticType - type hint. If security restrictions prevent to wrap object based on its class, staticType will be used instead.
        Returns:
        the wrapped value.