Interface VarScope

All Superinterfaces:
ConstProperties<VarScope>, PropHolder<VarScope>, Serializable
All Known Implementing Classes:
AInterpreter.DebugScope, CatchScope, DeclarationScope, FunctionScope, Global, ImporterTopLevel, LocalScope, ModuleScope, NativeCall, ScopeObject, TopLevel, WithScope

public interface VarScope extends PropHolder<VarScope>, ConstProperties<VarScope>, Serializable
Interface that represents an the bindings of an ECMAScript environment record. Unlike Scriptable scopes do not have prototypes.
  • Method Details

    • getParentScope

      VarScope getParentScope()
      Get the parent scope of this scope.
      Returns:
      the parent scope
    • getAncestor

      default VarScope getAncestor()
      Description copied from interface: PropHolder
      Get the parent scope of the object.
      Specified by:
      getAncestor in interface PropHolder<VarScope>
      Returns:
      the parent scope
    • isNestedScope

      default boolean isNestedScope()
    • copyScope

      default VarScope copyScope()