Java Code Examples for jdk.nashorn.api.scripting.AbstractJSObject#getDefaultValue()

The following examples show how to use jdk.nashorn.api.scripting.AbstractJSObject#getDefaultValue() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JSONListAdapter.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Implements this object's {@code [[DefaultValue]]} method by returning its wrapped object's {@code [[DefaultValue]]}.
 *
 * @param hint the type hint. Should be either {@code null}, {@code Number.class} or {@code String.class}.
 * @return the wrapped object's default value.
 * @throws UnsupportedOperationException if the conversion can't be performed. The engine will convert this
 * exception into a JavaScript {@code TypeError}.
 */
public Object getDefaultValue(final Class<?> hint) {
    return AbstractJSObject.getDefaultValue(obj, hint);
}
 
Example 2
Source File: JSONListAdapter.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Implements this object's {@code [[DefaultValue]]} method by returning its wrapped object's {@code [[DefaultValue]]}.
 *
 * @param hint the type hint. Should be either {@code null}, {@code Number.class} or {@code String.class}.
 * @return the wrapped object's default value.
 * @throws UnsupportedOperationException if the conversion can't be performed. The engine will convert this
 * exception into a JavaScript {@code TypeError}.
 */
public Object getDefaultValue(final Class<?> hint) {
    return AbstractJSObject.getDefaultValue(obj, hint);
}
 
Example 3
Source File: JSONListAdapter.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Implements this object's {@code [[DefaultValue]]} method by returning its wrapped object's {@code [[DefaultValue]]}.
 *
 * @param hint the type hint. Should be either {@code null}, {@code Number.class} or {@code String.class}.
 * @return the wrapped object's default value.
 * @throws UnsupportedOperationException if the conversion can't be performed. The engine will convert this
 * exception into a JavaScript {@code TypeError}.
 */
public Object getDefaultValue(final Class<?> hint) {
    return AbstractJSObject.getDefaultValue(obj, hint);
}
 
Example 4
Source File: JSONListAdapter.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Implements this object's {@code [[DefaultValue]]} method by returning its wrapped object's {@code [[DefaultValue]]}.
 *
 * @param hint the type hint. Should be either {@code null}, {@code Number.class} or {@code String.class}.
 * @return the wrapped object's default value.
 * @throws UnsupportedOperationException if the conversion can't be performed. The engine will convert this
 * exception into a JavaScript {@code TypeError}.
 */
public Object getDefaultValue(final Class<?> hint) {
    return AbstractJSObject.getDefaultValue(obj, hint);
}
 
Example 5
Source File: JSONListAdapter.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Implements this object's {@code [[DefaultValue]]} method by returning its wrapped object's {@code [[DefaultValue]]}.
 *
 * @param hint the type hint. Should be either {@code null}, {@code Number.class} or {@code String.class}.
 * @return the wrapped object's default value.
 * @throws UnsupportedOperationException if the conversion can't be performed. The engine will convert this
 * exception into a JavaScript {@code TypeError}.
 */
public Object getDefaultValue(final Class<?> hint) {
    return AbstractJSObject.getDefaultValue(obj, hint);
}
 
Example 6
Source File: JSONListAdapter.java    From jdk8u_nashorn with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Implements this object's {@code [[DefaultValue]]} method by returning its wrapped object's {@code [[DefaultValue]]}.
 *
 * @param hint the type hint. Should be either {@code null}, {@code Number.class} or {@code String.class}.
 * @return the wrapped object's default value.
 * @throws UnsupportedOperationException if the conversion can't be performed. The engine will convert this
 * exception into a JavaScript {@code TypeError}.
 */
public Object getDefaultValue(final Class<?> hint) {
    return AbstractJSObject.getDefaultValue(obj, hint);
}