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.Modifier and Type | Method and Description |
---|---|
Fn |
defineFn(String code,
String[] names,
boolean[] keepAlive)
Creates new function with given parameter names and provided body.
|
Fn defineFn(String code, String[] names, boolean[] keepAlive)
code
- the body of the function. Can refer to variables named
as names
names
- 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 © 2018 NetBeans. All rights reserved.