Class ScopeObject

java.lang.Object
me.topchetoeu.j2s.runtime.values.Value
me.topchetoeu.j2s.repl.debug.ScopeObject

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

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
     

    Nested classes/interfaces inherited from class 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 class 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 me.topchetoeu.j2s.runtime.values.Value

    add, and, apply, bitwiseNot, 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, divide, errorToReadable, fromIterator, getMember, getMember, getMember, getMember, getMember, getMemberDescriptor, getMemberOrNull, getMemberOrNull, getMemberOrNull, getMemberOrNull, getMemberOrNull, getMemberPath, getMemberPath, getMembers, getOwnMember, getOwnMember, getOwnMember, getOwnMember, getSymbolMembers, global, greater, greaterOrEqual, hasMember, hasMember, hasMember, hasMember, hasMember, intrinsics, isInstanceOf, isNaN, less, lessOrEqual, looseEqual, modulo, multiply, negative, or, setMember, setMember, setMember, setMember, setMember, setMemberIfExists, setMemberIfExists, setMemberIfExists, setMemberIfExists, setMemberIfExists, shiftLeft, shiftRight, subtract, toIterable, toReadable, toReadableLines, unsignedShiftRight, xor

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 class me.topchetoeu.j2s.runtime.values.Value
    • isPrimitive

      public boolean isPrimitive()
      Specified by:
      isPrimitive in class 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 class 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 class me.topchetoeu.j2s.runtime.values.Value
    • toString

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

      public boolean toBoolean()
      Specified by:
      toBoolean in class 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 class me.topchetoeu.j2s.runtime.values.Value
    • getOwnMembers

      public Set<String> getOwnMembers(me.topchetoeu.j2s.common.Environment env, boolean onlyEnumerable)
      Specified by:
      getOwnMembers in class 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 class 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 class 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 class 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 class 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 class me.topchetoeu.j2s.runtime.values.Value
    • getState

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

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

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

      public void freeze()
      Specified by:
      freeze in class 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 class 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)