Class NativeBoolean

    • Constructor Detail

      • NativeBoolean

        NativeBoolean​(boolean b)
    • Method Detail

      • init

        static void init​(Scriptable scope,
                         boolean sealed)
      • getClassName

        public java.lang.String getClassName()
        Description copied from class: ScriptableObject
        Return the name of the class.

        This is typically the same name as the constructor. Classes extending ScriptableObject must implement this abstract method.

        Specified by:
        getClassName in interface Scriptable
        Specified by:
        getClassName in class ScriptableObject
      • getDefaultValue

        public java.lang.Object getDefaultValue​(java.lang.Class<?> typeHint)
        Description copied from class: ScriptableObject
        Implements the [[DefaultValue]] internal method.

        Note that the toPrimitive conversion is a no-op for every type other than Object, for which [[DefaultValue]] is called. See ECMA 9.1.

        A hint of null means "no hint".

        Specified by:
        getDefaultValue in interface Scriptable
        Overrides:
        getDefaultValue in class ScriptableObject
        Parameters:
        typeHint - the type hint
        Returns:
        the default value for the object

        See ECMA 8.6.2.6.