Class NativeIterator

All Implemented Interfaces:
Serializable, ConstProperties<Scriptable>, DebuggableObject, PropHolder<Scriptable>, Scriptable, SymbolScriptable

public final class NativeIterator extends ScriptableObject
This class implements iterator objects. See Iterators
Author:
Norris Boyd
See Also:
  • Field Details

  • Method Details

    • getStopIterationObject

      public static Object getStopIterationObject(VarScope scope)
      Get the value of the "StopIteration" object. Note that this value is stored in the top-level scope using "associateValue" so the value can still be found even if a script overwrites or deletes the global "StopIteration" property.
      Parameters:
      scope - a scope whose parent chain reaches a top-level scope
      Returns:
      the StopIteration object
    • 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
      Specified by:
      getClassName in class ScriptableObject