Here you can find the source of isDateType(final ScriptObjectMirror value)
private static boolean isDateType(final ScriptObjectMirror value)
//package com.java2s; //License from project: Apache License import jdk.nashorn.api.scripting.ScriptObjectMirror; public class Main { public static boolean isDateType(final Object value) { return (value instanceof ScriptObjectMirror) && isDateType((ScriptObjectMirror) value); }//from www . j av a2s . c om private static boolean isDateType(final ScriptObjectMirror value) { return "Date".equalsIgnoreCase(value.getClassName()); } }