Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.1 - English

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

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

Scilab Help >> Java from Scilab > jexists

jexists

Test if a Scilab Java Object is valid on the Java side

Syntax

bool = jexists(obj)

Parameters

obj

A mlist typed _JObj or _JClass

bool

A boolean

Description

Returns true if the corresponding Java object is always valid. An object can be invalidated with jremove.

Examples

jimport java.lang.Double;
d = Double.new("1.23456");
jexists(d)
jremove d;
jexists(d) // Will fail

See also

  • jremove — Remove a Java Object on the Java side

History

VersionDescription
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
<< jenableTrace Java from Scilab jgetclassname >>

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:23:44 CET 2022