Class ObjectValue
java.lang.Object
me.topchetoeu.j2s.runtime.values.Value
me.topchetoeu.j2s.runtime.values.objects.ObjectValue
- Direct Known Subclasses:
ArrayLikeValue
,FunctionValue
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static interface
Nested classes/interfaces inherited from class me.topchetoeu.j2s.runtime.values.Value
Value.State
-
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionboolean
defineOwnField
(me.topchetoeu.j2s.common.Environment env, KeyCache key, Value val, Boolean writable, Boolean enumerable, Boolean configurable) boolean
defineOwnProperty
(me.topchetoeu.j2s.common.Environment env, KeyCache key, Optional<FunctionValue> get, Optional<FunctionValue> set, Boolean enumerable, Boolean configurable) boolean
deleteOwnMember
(me.topchetoeu.j2s.common.Environment env, KeyCache key) final void
freeze()
getOwnMember
(me.topchetoeu.j2s.common.Environment env, KeyCache key) getOwnMembers
(me.topchetoeu.j2s.common.Environment env, boolean onlyEnumerable) getOwnSymbolMembers
(me.topchetoeu.j2s.common.Environment env, boolean onlyEnumerable) getPrototype
(me.topchetoeu.j2s.common.Environment env) getState()
boolean
final void
final void
seal()
final boolean
setPrototype
(me.topchetoeu.j2s.common.Environment env, ObjectValue val) final boolean
setPrototype
(me.topchetoeu.j2s.common.Key<ObjectValue> key) final boolean
boolean
toNumber
(me.topchetoeu.j2s.common.Environment env) toPrimitive
(me.topchetoeu.j2s.common.Environment env) toReadableLines
(me.topchetoeu.j2s.common.Environment env, HashSet<ObjectValue> passed) toReadableLines
(me.topchetoeu.j2s.common.Environment env, HashSet<ObjectValue> passed, HashSet<String> ignoredKeys) toString
(me.topchetoeu.j2s.common.Environment env) 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, unsignedShiftRight, xor
-
Field Details
-
prototype
-
-
Constructor Details
-
ObjectValue
public ObjectValue()
-
-
Method Details
-
isPrimitive
public boolean isPrimitive()- Specified by:
isPrimitive
in classValue
-
toPrimitive
- Specified by:
toPrimitive
in classValue
-
toString
-
toBoolean
public boolean toBoolean() -
toNumber
-
type
-
getState
-
preventExtensions
public final void preventExtensions()- Specified by:
preventExtensions
in classValue
-
seal
public final void seal() -
freeze
public final void freeze() -
getOwnMember
- Specified by:
getOwnMember
in classValue
-
defineOwnField
public boolean defineOwnField(me.topchetoeu.j2s.common.Environment env, KeyCache key, Value val, Boolean writable, Boolean enumerable, Boolean configurable) - Specified by:
defineOwnField
in classValue
-
defineOwnProperty
public boolean defineOwnProperty(me.topchetoeu.j2s.common.Environment env, KeyCache key, Optional<FunctionValue> get, Optional<FunctionValue> set, Boolean enumerable, Boolean configurable) - Specified by:
defineOwnProperty
in classValue
-
deleteOwnMember
- Specified by:
deleteOwnMember
in classValue
-
getOwnMembers
- Specified by:
getOwnMembers
in classValue
-
getOwnSymbolMembers
public Set<SymbolValue> getOwnSymbolMembers(me.topchetoeu.j2s.common.Environment env, boolean onlyEnumerable) - Specified by:
getOwnSymbolMembers
in classValue
-
getPrototype
- Specified by:
getPrototype
in classValue
-
setPrototype
- Specified by:
setPrototype
in classValue
-
toReadableLines
-
toReadableLines
public List<String> toReadableLines(me.topchetoeu.j2s.common.Environment env, HashSet<ObjectValue> passed) - Overrides:
toReadableLines
in classValue
-
setPrototype
-
setPrototype
-