Метод | Описание | |
---|---|---|
IsJavaPrimitiveWrap ( ) : bool |
Return Return |
|
SetJavaPrimitiveWrap ( bool value ) : void | ||
Wrap ( |
Wrap the object. Wrap the object. The value returned must be one of
|
|
WrapAsJavaObject ( |
Wrap Java object as Scriptable instance to allow full access to its methods and fields from JavaScript. Wrap Java object as Scriptable instance to allow full access to its methods and fields from JavaScript. Subclasses can override the method to provide custom wrappers for Java objects. |
|
WrapJavaClass ( |
Wrap a Java class as Scriptable instance to allow access to its static members and fields and use as constructor from JavaScript. Wrap a Java class as Scriptable instance to allow access to its static members and fields and use as constructor from JavaScript. Subclasses can override this method to provide custom wrappers for Java classes. |
|
WrapNewObject ( |
Wrap an object newly created by a constructor call. Wrap an object newly created by a constructor call. |
public SetJavaPrimitiveWrap ( bool value ) : void | ||
value | bool | |
Результат | void |
public Wrap ( |
||
cx | the current Context for this thread | |
scope | Scriptable | the scope of the executing script |
obj | object | 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. /// | |
Результат | object |
public WrapAsJavaObject ( |
||
cx | the current Context for this thread | |
scope | Scriptable | the scope of the executing script |
javaObject | object | the object to be wrapped |
staticType | /// type hint. If security restrictions prevent to wrap /// object based on its class, staticType will be used instead. /// | |
Результат | Scriptable |
public WrapJavaClass ( |
||
cx | the current Context for this thread | |
scope | Scriptable | the scope of the executing script |
javaClass | the class to be wrapped | |
Результат | Scriptable |
public WrapNewObject ( |
||
cx | the current Context for this thread | |
scope | Scriptable | the scope of the executing script |
obj | object | the object to be wrapped |
Результат | Scriptable |