Class UserValue<T>
java.lang.Object
me.topchetoeu.j2s.runtime.values.Value
me.topchetoeu.j2s.runtime.values.primitives.UserValue<T>
-
Nested Class Summary
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
-
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) boolean
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()
int
hashCode()
final boolean
static <T> UserValue<T>
of
(T value) static <T> UserValue<T>
of
(T value, ObjectValue prototype) void
void
seal()
final boolean
setPrototype
(me.topchetoeu.j2s.common.Environment env, ObjectValue val) boolean
toNumber
(me.topchetoeu.j2s.common.Environment ext) final Value
toPrimitive
(me.topchetoeu.j2s.common.Environment env) toReadableLines
(me.topchetoeu.j2s.common.Environment env, HashSet<ObjectValue> passed) toString
(me.topchetoeu.j2s.common.Environment ext) type()
static <T> T
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
-
value
-
prototype
-
-
Method Details
-
type
-
toBoolean
public boolean toBoolean() -
toNumber
-
toString
-
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() -
hashCode
public int hashCode() -
equals
-
getPrototype
- Specified by:
getPrototype
in classValue
-
toReadableLines
public List<String> toReadableLines(me.topchetoeu.j2s.common.Environment env, HashSet<ObjectValue> passed) - Overrides:
toReadableLines
in classValue
-
of
-
of
-
unwrap
-