Example usage for Java jdk.nashorn.internal.runtime ScriptObject fields, constructors, methods, implement or subclass
The text is from its open source code.
Property | addOwnProperty(final String key, final int propertyFlags, final Object value) Add a new property to the object. |
boolean | containsKey(final Object key) Checks if a property with a given key is present in a ScriptObject (java.util.Map-like method to help ScriptObjectMirror implementation) |
Object | get(final Object key) |
Object | get(final double key) |
Object | get(final int key) |
String[] | getOwnKeys(final boolean all) return an array of own property keys associated with the object. |
boolean | has(final Object key) |
boolean | has(final double key) |
boolean | has(final int key) |
boolean | isArray() Check if this ScriptObject is an array |
Set | keySet() Return the set of keys (property names) for all properties in this ScriptObject (java.util.Map-like method to help ScriptObjectMirror implementation) |
Iterator | propertyIterator() Return a property iterator. |
Object | put(final Object key, final Object value, final boolean strict) Put a property in the ScriptObject (java.util.Map-like method to help ScriptObjectMirror implementation) |
void | putAll(final Map, ?> otherMap, final boolean strict) Put several properties in the ScriptObject given a mapping of their keys to their values (java.util.Map-like method to help ScriptObjectMirror implementation) |
Collection | values() Return the values of the properties in the ScriptObject (java.util.Map-like method to help ScriptObjectMirror implementation) |