Java Nashorn Javascript Library isDateType(final ScriptObjectMirror value)

Here you can find the source of isDateType(final ScriptObjectMirror value)

Description

is Date Type

License

Apache License

Declaration

private static boolean isDateType(final ScriptObjectMirror value) 

Method Source Code

//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());
    }
}

Related

  1. encode(final Object self, final String string, final boolean component)
  2. error(final String string, final int index)
  3. escape(Object value)
  4. getArrayLength(NativeArray arr)
  5. isArrayType(final Object value)
  6. isNashornScript(final String className)
  7. isNativeObject(final Object value)
  8. newObject()
  9. parse(final String code, final String name, final boolean includeLoc)