public interface JsVariable
Modifier and Type | Method and Description |
---|---|
JsDeclarativeVariable |
asDeclarativeVariable()
Casts this to declarative variable type if available or returns null.
|
JsObjectProperty |
asObjectProperty()
Returns object property data if variable is an object property and its descriptor
is available.
|
java.lang.String |
getName()
Returns variable name.
|
JsValue |
getValue()
Returns the value of this variable.
|
JsValue getValue() throws java.lang.UnsupportedOperationException
null
if there was an error reading the value data
or the property has accessor descriptorjava.lang.UnsupportedOperationException
- if this variable is not readable#isReadable()
java.lang.String getName()
JsObjectProperty asObjectProperty()
JsDeclarativeVariable asDeclarativeVariable()
Copyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.