Class NativeIterator.StopIteration

    • Constructor Detail

      • StopIteration

        public StopIteration()
      • StopIteration

        public StopIteration​(java.lang.Object val)
    • Method Detail

      • getValue

        public java.lang.Object getValue()
      • 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
        Overrides:
        getClassName in class NativeObject
      • hasInstance

        public boolean hasInstance​(Scriptable instance)
        Description copied from class: ScriptableObject
        Implements the instanceof operator.

        This operator has been proposed to ECMA.

        Specified by:
        hasInstance in interface Scriptable
        Overrides:
        hasInstance in class ScriptableObject
        Parameters:
        instance - The value that appeared on the LHS of the instanceof operator
        Returns:
        true if "this" appears in value's prototype chain