Class NativeIterator.StopIteration

All Implemented Interfaces:
Serializable, Map, ConstProperties, DebuggableObject, IdFunctionCall, Scriptable, SymbolScriptable
Enclosing class:
NativeIterator

public static class NativeIterator.StopIteration extends NativeObject
See Also:
  • Constructor Details

    • StopIteration

      public StopIteration()
    • StopIteration

      public StopIteration(Object val)
  • Method Details

    • getValue

      public Object getValue()
    • getClassName

      public 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