Example usage for Java jdk.nashorn.api.scripting JSObject fields, constructors, methods, implement or subclass
The text is from its open source code.
Object | call(final Object thiz, final Object... args) Call this object as a JavaScript function. |
Object | getMember(final String name) Retrieves a named member of this JavaScript object. |
Object | getSlot(final int index) Retrieves an indexed member of this JavaScript object. |
boolean | hasMember(final String name) Does this object have a named member? |
boolean | hasSlot(final int slot) Does this object have a indexed property? |
boolean | isArray() Is this an array object? |
boolean | isFunction() Is this a function object? |
Set | keySet() Returns the set of all property names of this object. |
void | setMember(final String name, final Object value) Set a named member in this JavaScript object |
Collection | values() Returns the set of all property values of this object. |