Scilab 5.5.0
- Scilab Help
- Java from 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
jsetfield
Set the field of a Java object
Calling Sequence
jsetfield(object, fieldName, value)
Parameters
- object
A mlist typed _JObj or _JClass or a Scilab variable
- fieldName
A string giving the field name
- value
A Scilab variable or mlist typed _JObj as new field value
Description
Set the field named fieldName to the given value.
This function also works with beans properties which may not be mapped to a public java field.
Examples
See Also
- jgetfield — Get the field value of a Java object
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 | ||
<< jremove | Java from Scilab | junwrap >> |