Package me.topchetoeu.j2s.repl.debug
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 ClassesNested classes/interfaces inherited from class 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 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
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 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
-
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 classme.topchetoeu.j2s.runtime.values.Value
-
isPrimitive
public boolean isPrimitive()- Specified by:
isPrimitive
in classme.topchetoeu.j2s.runtime.values.Value
-
toPrimitive
public me.topchetoeu.j2s.runtime.values.Value toPrimitive(me.topchetoeu.j2s.common.Environment env) - Specified by:
toPrimitive
in classme.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 classme.topchetoeu.j2s.runtime.values.Value
-
toString
- Specified by:
toString
in classme.topchetoeu.j2s.runtime.values.Value
-
toBoolean
public boolean toBoolean()- Specified by:
toBoolean
in classme.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 classme.topchetoeu.j2s.runtime.values.Value
-
getOwnMembers
- Specified by:
getOwnMembers
in classme.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 classme.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 classme.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 classme.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 classme.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 classme.topchetoeu.j2s.runtime.values.Value
-
getState
public me.topchetoeu.j2s.runtime.values.Value.State getState()- Specified by:
getState
in classme.topchetoeu.j2s.runtime.values.Value
-
preventExtensions
public void preventExtensions()- Specified by:
preventExtensions
in classme.topchetoeu.j2s.runtime.values.Value
-
seal
public void seal()- Specified by:
seal
in classme.topchetoeu.j2s.runtime.values.Value
-
freeze
public void freeze()- Specified by:
freeze
in classme.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 classme.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)
-