Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.1 - Português

Change language to:
English - Français - 日本語 - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Ajuda do Scilab >> Java from Scilab > jremove

jremove

Remove a Java Object on the Java side

Syntax

jremove()
jremove(varName_1, varName_2, ...)
jremove varName_1 varName_2 ...
jremove(object_1 , object_2, ...)

Parameters

varName_i

A string giving the variable name

object_i

A mlist typed _JObj or _JClass.

Description

If no argument are given to jremove, then all the variables are removed on the Java side and garbage collection is called.

Else the corresponding variable is removed on the Java side.

Examples

jimport java.lang.String;

s = String.new("Hello world");
jremove s;

jimport java.lang.String;

s = String.new("Hello world");
clear s;

See also

  • jexists — Test if a Scilab Java Object is valid on the Java side

History

VersãoDescrição
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.
6.1.0 This function is optional, as clear or scope closing will now release the associated Java object.
Report an issue
<< jnull Java from Scilab jsetfield >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Jan 03 14:35:43 CET 2022