Scilab 5.5.2
- Aide de Scilab
- Java depuis Scilab
- Getting started - Beginning
- Getting started - Second step
- jallowClassReloading
- jarray
- jautoTranspose
- jautoUnwrap
- jcast
- jcompile
- jconvMatrixMethod
- jcreatejar
- jdeff
- jdisableTrace
- jenableTrace
- jexists
- jgetclassname
- jgetfield
- jgetfields
- jgetinfo
- jgetmethods
- jimport
- jinvoke
- jinvoke_db
- jnewInstance
- jnull
- jremove
- jsetfield
- junwrap
- junwraprem
- jvoid
- jwrap
- jwrapinchar
- jwrapinfloat
- new
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
junwrap
Convert a Java object into a Scilab native type
Calling Sequence
[var_1, var_2, ...] = junwrap(obj_1 [, obj_2 [, ...]])
Parameters
- obj_i
A mlist typed _JObj
- var_i
Scilab variable
Description
Convert a native Java object in a Scilab's one.
Examples
jimport java.lang.String; s = String.new("Hello JIMS !!"); s1 = s.toUpperCase(); s2 = s.toLowerCase() typeof(s1), typeof(s2) typeof(jwrap(s1)) typeof(jwrap(s2)) jremove String s s1 s2
jautoUnwrap(%f) jimport java.io.File; f = File.new(SCI); jfiles = f.list(), // a java object due to a disabled autoUnwrap files = junwrap(jfiles); // the corresponding scilab vector jremove File f jfiles
See Also
- junwraprem — Convert a Java object into a Scilab native type and remove it from the Java side
- jwrap — Wrap a Scilab variable into a Java one if possible
- jautoUnwrap — Unwrap automatically returned values
History
Version | Description |
5.5.0 | Function introduced. Based on the 'JIMS' module. The main difference in the behavior compared to the JIMS module is that jautoUnwrap is enabled by default. |
Report an issue | ||
<< jsetfield | Java depuis Scilab | junwraprem >> |