Package me.topchetoeu.j2s.lib.debug
Class ScopeObject
java.lang.Object
me.topchetoeu.j2s.lib.debug.ScopeObject
- All Implemented Interfaces:
me.topchetoeu.j2s.runtime.values.Value
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface me.topchetoeu.j2s.runtime.values.Value
me.topchetoeu.j2s.runtime.values.Value.State
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal 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
ConstructorsConstructorDescriptionScopeObject
(me.topchetoeu.j2s.runtime.Frame frame, String[] names, IntUnaryOperator transformer, me.topchetoeu.j2s.runtime.values.objects.ObjectValue proto) -
Method Summary
Modifier and TypeMethodDescriptionvoid
static ScopeObject
static ScopeObject
capturables
(me.topchetoeu.j2s.runtime.Frame frame, String[] names) static ScopeObject
static ScopeObject
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
freeze()
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
getState()
boolean
static ScopeObject
void
void
void
seal()
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
type()
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 interfaceme.topchetoeu.j2s.runtime.values.Value
-
isPrimitive
public boolean isPrimitive()- Specified by:
isPrimitive
in interfaceme.topchetoeu.j2s.runtime.values.Value
-
toPrimitive
public me.topchetoeu.j2s.runtime.values.Value toPrimitive(me.topchetoeu.j2s.common.Environment env) - Specified by:
toPrimitive
in interfaceme.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 interfaceme.topchetoeu.j2s.runtime.values.Value
-
toString
- Specified by:
toString
in interfaceme.topchetoeu.j2s.runtime.values.Value
-
toBoolean
public boolean toBoolean()- Specified by:
toBoolean
in interfaceme.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 interfaceme.topchetoeu.j2s.runtime.values.Value
-
getOwnMembers
- Specified by:
getOwnMembers
in interfaceme.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 interfaceme.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 interfaceme.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 interfaceme.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 interfaceme.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 interfaceme.topchetoeu.j2s.runtime.values.Value
-
getState
public me.topchetoeu.j2s.runtime.values.Value.State getState()- Specified by:
getState
in interfaceme.topchetoeu.j2s.runtime.values.Value
-
preventExtensions
public void preventExtensions()- Specified by:
preventExtensions
in interfaceme.topchetoeu.j2s.runtime.values.Value
-
seal
public void seal()- Specified by:
seal
in interfaceme.topchetoeu.j2s.runtime.values.Value
-
freeze
public void freeze()- Specified by:
freeze
in interfaceme.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 interfaceme.topchetoeu.j2s.runtime.values.Value
-
add
-
remove
-
locals
-
capturables
-
captures
-
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)
-