public static interface Fn.KeepAlive
Fn.Presenter to control more precisely
garbage collection behavior of individual parameters. See
JavaScriptBody.keepAlive() attribute for description of the
actual behavior of the interface.Fn defineFn(String code, String[] names, boolean[] keepAlive)
code - the body of the function. Can refer to variables named
as namesnames - names of parameters of the function - these will be
available when the code body executeskeepAlive - array of booleans describing for each parameter
whether it should be kept alive or not. Length of the array
must be the same as length of names array. The
array may be null to signal that all parameters
should be kept alive.Copyright © 2015 NetBeans. All Rights Reserved.