|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface used to represent the GlobalObject wrapper of the interpreter. The global object is used for functions which require the evaluator. It is possible to get it from any JSObject.
This interface is exported by FESI objects, it is not intended or useful for user objects to extend this interface.
Method Summary | |
---|---|
java.lang.Object |
makeBeanWrapper(java.lang.Object object)
Mark an object as a bean, restricting its access by FESI scripts to the public bean methods and properties. |
JSObject |
makeJSArrayObject()
Make a new array object. |
JSObject |
makeJSObject()
Make a new object based the object prototype object. |
JSObject |
makeJSObject(JSObject prototype)
Make a new object based on a given prototype (which may be null). |
JSObject |
makeObjectWrapper(java.lang.Object object)
Package any object as an EcmaScript object, allowing to use it for example with an "eval" function, where it becomes the 'this' object. |
Methods inherited from interface FESI.jslib.JSObject |
---|
call, eval, eval, evalAsFunction, evalAsFunction, getGlobalObject, getMember, getSlot, removeMember, setMember, setSlot |
Method Detail |
public java.lang.Object makeBeanWrapper(java.lang.Object object)
object
- The object to wrap as a bean.
public JSObject makeJSObject()
public JSObject makeJSObject(JSObject prototype)
prototype
- An object to use as prototype for this object
public JSObject makeObjectWrapper(java.lang.Object object)
object
- The object to wrap.
public JSObject makeJSArrayObject()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |