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