Package org.ringojs.engine
Class RingoWrapFactory
- java.lang.Object
-
- org.mozilla.javascript.WrapFactory
-
- org.ringojs.engine.RingoWrapFactory
-
public class RingoWrapFactory extends org.mozilla.javascript.WrapFactory
Ringo default wrap factory implementation.
-
-
Constructor Summary
Constructors Constructor Description RingoWrapFactory()
-
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.
-
-
-
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 classorg.mozilla.javascript.WrapFactory
- Parameters:
cx
- the current Context for this threadscope
- the scope of the executing scriptobj
- 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.
-
-