public interface JsDeclarativeVariable extends JsVariable
This variable explicitly supports mutation operation.
JsScope.Declarative}
Modifier and Type | Interface and Description |
---|---|
static interface |
JsDeclarativeVariable.SetValueCallback
A callback to use while setting a variable value.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isMutable() |
RelayOk |
setValue(JsValue newValue,
JsDeclarativeVariable.SetValueCallback callback,
SyncCallback syncCallback)
Sets a new value for this variable.
|
asDeclarativeVariable, asObjectProperty, getName, getValue
boolean isMutable()
RelayOk setValue(JsValue newValue, JsDeclarativeVariable.SetValueCallback callback, SyncCallback syncCallback) throws java.lang.UnsupportedOperationException
newValue
- to setcallback
- to report the operation result tosyncCallback
- to report the end of any processingjava.lang.UnsupportedOperationException
- if this variable is not mutableisMutable()
Copyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.