Java Nashorn Javascript Library isNativeObject(final Object value)

Here you can find the source of isNativeObject(final Object value)

Description

is Native Object

License

Open Source License

Declaration

public static boolean isNativeObject(final Object value) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import jdk.nashorn.internal.runtime.ScriptObject;

public class Main {
    public static boolean isNativeObject(final Object value) {
        return (value instanceof ScriptObject) && !isNativeArray(value);
    }/*  ww w . ja va  2s.  com*/

    public static boolean isNativeArray(final Object value) {
        return (value instanceof ScriptObject) && ((ScriptObject) value).isArray();
    }
}

Related

  1. escape(Object value)
  2. getArrayLength(NativeArray arr)
  3. isArrayType(final Object value)
  4. isDateType(final ScriptObjectMirror value)
  5. isNashornScript(final String className)
  6. newObject()
  7. parse(final String code, final String name, final boolean includeLoc)
  8. rightAdjustCharHeadWithPrev(final int s, final IntHolder prev)
  9. toDate(final Object value)