Class ScopeObject

java.lang.Object
me.topchetoeu.j2s.lib.debug.ScopeObject
All Implemented Interfaces:
me.topchetoeu.j2s.runtime.values.Value

public class ScopeObject extends Object implements me.topchetoeu.j2s.runtime.values.Value
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     

    Nested classes/interfaces inherited from interface me.topchetoeu.j2s.runtime.values.Value

    me.topchetoeu.j2s.runtime.values.Value.State
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final me.topchetoeu.j2s.runtime.values.objects.ObjectValue
     

    Fields inherited from interface me.topchetoeu.j2s.runtime.values.Value

    ARRAY_PROTO, BOOL_PROTO, ERROR_PROTO, FUNCTION_PROTO, GLOBAL, INT32_ARR_PROTO, INT8_ARR_PROTO, INTRINSICS, NULL, NUMBER_PROTO, OBJECT_PROTO, RANGE_ERR_PROTO, STRING_PROTO, SYMBOL_PROTO, SYNTAX_ERR_PROTO, TYPE_ERR_PROTO, UINT8_ARR_PROTO, UNDEFINED
  • Constructor Summary

    Constructors
    Constructor
    Description
    ScopeObject(me.topchetoeu.j2s.runtime.Frame frame, String[] names, IntUnaryOperator transformer, me.topchetoeu.j2s.runtime.values.objects.ObjectValue proto)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(String name, me.topchetoeu.j2s.runtime.values.Value val)
     
    all(me.topchetoeu.j2s.runtime.Frame frame, String[] local, String[] capturables, String[] captures)
     
    capturables(me.topchetoeu.j2s.runtime.Frame frame, String[] names)
     
    captures(me.topchetoeu.j2s.runtime.Frame frame, String[] names)
     
    combine(me.topchetoeu.j2s.runtime.values.objects.ObjectValue proto, ScopeObject... objs)
     
    boolean
    defineOwnField(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.values.KeyCache key, me.topchetoeu.j2s.runtime.values.Value val, Boolean writable, Boolean enumerable, Boolean configurable)
     
    boolean
    defineOwnProperty(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.values.KeyCache key, Optional<me.topchetoeu.j2s.runtime.values.functions.FunctionValue> get, Optional<me.topchetoeu.j2s.runtime.values.functions.FunctionValue> set, Boolean enumerable, Boolean configurable)
     
    boolean
    deleteOwnMember(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.values.KeyCache key)
     
    void
     
    me.topchetoeu.j2s.runtime.values.Member
    getOwnMember(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.values.KeyCache key)
     
    getOwnMembers(me.topchetoeu.j2s.common.Environment env, boolean onlyEnumerable)
     
    Set<me.topchetoeu.j2s.runtime.values.primitives.SymbolValue>
    getOwnSymbolMembers(me.topchetoeu.j2s.common.Environment env, boolean onlyEnumerable)
     
    me.topchetoeu.j2s.runtime.values.objects.ObjectValue
    getPrototype(me.topchetoeu.j2s.common.Environment env)
     
    me.topchetoeu.j2s.runtime.values.Value.State
     
    boolean
     
    locals(me.topchetoeu.j2s.runtime.Frame frame, String[] names)
     
    void
     
    void
    remove(String name)
     
    void
     
    boolean
    setPrototype(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.values.objects.ObjectValue val)
     
    boolean
     
    me.topchetoeu.j2s.runtime.values.primitives.numbers.NumberValue
    toNumber(me.topchetoeu.j2s.common.Environment env)
     
    me.topchetoeu.j2s.runtime.values.Value
    toPrimitive(me.topchetoeu.j2s.common.Environment env)
     
    toString(me.topchetoeu.j2s.common.Environment env)
     
    me.topchetoeu.j2s.runtime.values.primitives.StringValue
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface me.topchetoeu.j2s.runtime.values.Value

    apply, callWith, callWithAsync, construct, constructNoSelf, defineOwnField, defineOwnField, defineOwnField, defineOwnField, defineOwnField, defineOwnField, defineOwnField, defineOwnField, defineOwnField, defineOwnProperty, defineOwnProperty, defineOwnProperty, defineOwnProperty, deleteMember, deleteMember, deleteMember, deleteMember, deleteMember, deleteOwnMember, deleteOwnMember, deleteOwnMember, deleteOwnMember, getMember, getMember, getMember, getMember, getMember, getMemberDescriptor, getMemberOrNull, getMemberOrNull, getMemberOrNull, getMemberOrNull, getMemberOrNull, getMemberPath, getMemberPath, getMembers, getOwnMember, getOwnMember, getOwnMember, getOwnMember, getSymbolMembers, hasMember, hasMember, hasMember, hasMember, hasMember, isInstanceOf, isNaN, setMember, setMember, setMember, setMember, setMember, setMemberIfExists, setMemberIfExists, setMemberIfExists, setMemberIfExists, setMemberIfExists, toIterable, toReadable, toReadableLines
  • Field Details

    • proto

      public final me.topchetoeu.j2s.runtime.values.objects.ObjectValue proto
  • Constructor Details

    • ScopeObject

      public ScopeObject(me.topchetoeu.j2s.runtime.Frame frame, String[] names, IntUnaryOperator transformer, me.topchetoeu.j2s.runtime.values.objects.ObjectValue proto)
  • Method Details

    • type

      public me.topchetoeu.j2s.runtime.values.primitives.StringValue type()
      Specified by:
      type in interface me.topchetoeu.j2s.runtime.values.Value
    • isPrimitive

      public boolean isPrimitive()
      Specified by:
      isPrimitive in interface me.topchetoeu.j2s.runtime.values.Value
    • toPrimitive

      public me.topchetoeu.j2s.runtime.values.Value toPrimitive(me.topchetoeu.j2s.common.Environment env)
      Specified by:
      toPrimitive in interface me.topchetoeu.j2s.runtime.values.Value
    • toNumber

      public me.topchetoeu.j2s.runtime.values.primitives.numbers.NumberValue toNumber(me.topchetoeu.j2s.common.Environment env)
      Specified by:
      toNumber in interface me.topchetoeu.j2s.runtime.values.Value
    • toString

      public String toString(me.topchetoeu.j2s.common.Environment env)
      Specified by:
      toString in interface me.topchetoeu.j2s.runtime.values.Value
    • toBoolean

      public boolean toBoolean()
      Specified by:
      toBoolean in interface me.topchetoeu.j2s.runtime.values.Value
    • getOwnMember

      public me.topchetoeu.j2s.runtime.values.Member getOwnMember(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.values.KeyCache key)
      Specified by:
      getOwnMember in interface me.topchetoeu.j2s.runtime.values.Value
    • getOwnMembers

      public Set<String> getOwnMembers(me.topchetoeu.j2s.common.Environment env, boolean onlyEnumerable)
      Specified by:
      getOwnMembers in interface me.topchetoeu.j2s.runtime.values.Value
    • getOwnSymbolMembers

      public Set<me.topchetoeu.j2s.runtime.values.primitives.SymbolValue> getOwnSymbolMembers(me.topchetoeu.j2s.common.Environment env, boolean onlyEnumerable)
      Specified by:
      getOwnSymbolMembers in interface me.topchetoeu.j2s.runtime.values.Value
    • defineOwnField

      public boolean defineOwnField(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.values.KeyCache key, me.topchetoeu.j2s.runtime.values.Value val, Boolean writable, Boolean enumerable, Boolean configurable)
      Specified by:
      defineOwnField in interface me.topchetoeu.j2s.runtime.values.Value
    • defineOwnProperty

      public boolean defineOwnProperty(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.values.KeyCache key, Optional<me.topchetoeu.j2s.runtime.values.functions.FunctionValue> get, Optional<me.topchetoeu.j2s.runtime.values.functions.FunctionValue> set, Boolean enumerable, Boolean configurable)
      Specified by:
      defineOwnProperty in interface me.topchetoeu.j2s.runtime.values.Value
    • deleteOwnMember

      public boolean deleteOwnMember(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.values.KeyCache key)
      Specified by:
      deleteOwnMember in interface me.topchetoeu.j2s.runtime.values.Value
    • setPrototype

      public boolean setPrototype(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.values.objects.ObjectValue val)
      Specified by:
      setPrototype in interface me.topchetoeu.j2s.runtime.values.Value
    • getState

      public me.topchetoeu.j2s.runtime.values.Value.State getState()
      Specified by:
      getState in interface me.topchetoeu.j2s.runtime.values.Value
    • preventExtensions

      public void preventExtensions()
      Specified by:
      preventExtensions in interface me.topchetoeu.j2s.runtime.values.Value
    • seal

      public void seal()
      Specified by:
      seal in interface me.topchetoeu.j2s.runtime.values.Value
    • freeze

      public void freeze()
      Specified by:
      freeze in interface me.topchetoeu.j2s.runtime.values.Value
    • getPrototype

      public me.topchetoeu.j2s.runtime.values.objects.ObjectValue getPrototype(me.topchetoeu.j2s.common.Environment env)
      Specified by:
      getPrototype in interface me.topchetoeu.j2s.runtime.values.Value
    • add

      public void add(String name, me.topchetoeu.j2s.runtime.values.Value val)
    • remove

      public void remove(String name)
    • locals

      public static ScopeObject locals(me.topchetoeu.j2s.runtime.Frame frame, String[] names)
    • capturables

      public static ScopeObject capturables(me.topchetoeu.j2s.runtime.Frame frame, String[] names)
    • captures

      public static ScopeObject captures(me.topchetoeu.j2s.runtime.Frame frame, String[] names)
    • combine

      public static ScopeObject combine(me.topchetoeu.j2s.runtime.values.objects.ObjectValue proto, ScopeObject... objs)
    • all

      public static ScopeObject all(me.topchetoeu.j2s.runtime.Frame frame, String[] local, String[] capturables, String[] captures)