Package snap.util
Class JSObject
java.lang.Object
snap.util.JSValue
snap.util.JSObject
This JSValue subclass represents an object.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAsMap()
Returns the node as a map.Returns the KeyValues.Returns this JS object as a native object.getNativeValue
(String aKey) Returns the native value for given key.getStringValue
(String aKey) Returns the native value for given key.Returns a value for a key.int
Returns the number of key values.void
setNativeValue
(String aKey, Object aValue) Sets a native value.void
Sets a value for key.Methods inherited from class snap.util.JSValue
equals, getValue, getValueAsString, hashCode, readSource, setValue, toString, toStringCompacted
-
Constructor Details
-
JSObject
public JSObject()Constructor.
-
-
Method Details
-
getKeyValues
Returns the KeyValues. -
getValueCount
public int getValueCount()Returns the number of key values. -
getValue
Returns a value for a key. -
setValue
Sets a value for key. -
getNativeValue
Returns the native value for given key. -
setNativeValue
Sets a native value. -
getStringValue
Returns the native value for given key. -
getNative
Returns this JS object as a native object. -
getAsMap
Returns the node as a map.
-