Class PrimitiveValue
java.lang.Object
me.topchetoeu.j2s.runtime.values.Value
me.topchetoeu.j2s.runtime.values.primitives.PrimitiveValue
- Direct Known Subclasses:
BoolValue
,NumberValue
,StringValue
,SymbolValue
,VoidValue
-
Nested Class Summary
Nested classes/interfaces inherited from class me.topchetoeu.j2s.runtime.values.Value
Value.State
-
Field Summary
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 -
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) 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) getState()
final boolean
void
void
seal()
final boolean
setPrototype
(me.topchetoeu.j2s.common.Environment env, ObjectValue val) final Value
toPrimitive
(me.topchetoeu.j2s.common.Environment env) 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, getPrototype, 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, toBoolean, toIterable, toNumber, toReadable, toReadableLines, toString, type, unsignedShiftRight, xor
-
Constructor Details
-
PrimitiveValue
public PrimitiveValue()
-
-
Method Details
-
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
-
isPrimitive
public final boolean isPrimitive()- Specified by:
isPrimitive
in classValue
-
toPrimitive
- Specified by:
toPrimitive
in classValue
-
setPrototype
- Specified by:
setPrototype
in classValue
-
getOwnMember
- Specified by:
getOwnMember
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
-
getState
-
preventExtensions
public void preventExtensions()- Specified by:
preventExtensions
in classValue
-
seal
public void seal() -
freeze
public void freeze()
-