Package me.topchetoeu.j2s.runtime.values
Interface Value
- All Known Subinterfaces:
NumberValue
,PrimitiveValue
- All Known Implementing Classes:
ArgumentsValue
,ArrayLikeValue
,ArrayValue
,BoolValue
,CodeFunction
,DoubleValue
,FunctionValue
,IntValue
,NativeFunction
,ObjectValue
,StringValue
,SymbolValue
,UserValue
,VoidValue
public interface Value
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final me.topchetoeu.j2s.common.Key<ObjectValue>
static final me.topchetoeu.j2s.common.Key<ObjectValue>
static final me.topchetoeu.j2s.common.Key<ObjectValue>
static final me.topchetoeu.j2s.common.Key<ObjectValue>
static final me.topchetoeu.j2s.common.Key<Value>
static final me.topchetoeu.j2s.common.Key<ObjectValue>
static final me.topchetoeu.j2s.common.Key<ObjectValue>
static final VoidValue
static final me.topchetoeu.j2s.common.Key<ObjectValue>
static final me.topchetoeu.j2s.common.Key<ObjectValue>
static final me.topchetoeu.j2s.common.Key<ObjectValue>
static final me.topchetoeu.j2s.common.Key<ObjectValue>
static final me.topchetoeu.j2s.common.Key<ObjectValue>
static final me.topchetoeu.j2s.common.Key<ObjectValue>
static final me.topchetoeu.j2s.common.Key<ObjectValue>
static final me.topchetoeu.j2s.common.Key<ObjectValue>
static final VoidValue
-
Method Summary
Modifier and TypeMethodDescriptionstatic Value
static NumberValue
default Value
static NumberValue
bitwiseNot
(me.topchetoeu.j2s.common.Environment env, Value a) default void
default void
callWithAsync
(me.topchetoeu.j2s.common.Environment env, Iterable<? extends Value> it, boolean async) default Value
default Value
constructNoSelf
(me.topchetoeu.j2s.common.Environment env, Value... args) default boolean
defineOwnField
(me.topchetoeu.j2s.common.Environment env, double key, Value val) default boolean
defineOwnField
(me.topchetoeu.j2s.common.Environment env, double key, Value val, Boolean writable, Boolean enumerable, Boolean configurable) default boolean
defineOwnField
(me.topchetoeu.j2s.common.Environment env, int key, Value val) default boolean
defineOwnField
(me.topchetoeu.j2s.common.Environment env, int key, Value val, Boolean writable, Boolean enumerable, Boolean configurable) default boolean
defineOwnField
(me.topchetoeu.j2s.common.Environment env, String key, Value val) default boolean
defineOwnField
(me.topchetoeu.j2s.common.Environment env, String key, Value val, Boolean writable, Boolean enumerable, Boolean configurable) default boolean
defineOwnField
(me.topchetoeu.j2s.common.Environment env, KeyCache key, Value val) boolean
defineOwnField
(me.topchetoeu.j2s.common.Environment env, KeyCache key, Value val, Boolean writable, Boolean enumerable, Boolean configurable) default boolean
defineOwnField
(me.topchetoeu.j2s.common.Environment env, Value key, Value val) default boolean
defineOwnField
(me.topchetoeu.j2s.common.Environment env, Value key, Value val, Boolean writable, Boolean enumerable, Boolean configurable) default boolean
defineOwnProperty
(me.topchetoeu.j2s.common.Environment env, double key, Optional<FunctionValue> get, Optional<FunctionValue> set, Boolean enumerable, Boolean configurable) default boolean
defineOwnProperty
(me.topchetoeu.j2s.common.Environment env, int key, Optional<FunctionValue> get, Optional<FunctionValue> set, Boolean enumerable, Boolean configurable) default boolean
defineOwnProperty
(me.topchetoeu.j2s.common.Environment env, String key, Optional<FunctionValue> get, Optional<FunctionValue> set, Boolean enumerable, Boolean configurable) boolean
defineOwnProperty
(me.topchetoeu.j2s.common.Environment env, KeyCache key, Optional<FunctionValue> get, Optional<FunctionValue> set, Boolean enumerable, Boolean configurable) default boolean
defineOwnProperty
(me.topchetoeu.j2s.common.Environment env, Value key, Optional<FunctionValue> get, Optional<FunctionValue> set, Boolean enumerable, Boolean configurable) default boolean
deleteMember
(me.topchetoeu.j2s.common.Environment env, double key) default boolean
deleteMember
(me.topchetoeu.j2s.common.Environment env, int key) default boolean
deleteMember
(me.topchetoeu.j2s.common.Environment env, String key) default boolean
deleteMember
(me.topchetoeu.j2s.common.Environment env, KeyCache key) default boolean
deleteMember
(me.topchetoeu.j2s.common.Environment env, Value key) default boolean
deleteOwnMember
(me.topchetoeu.j2s.common.Environment env, double key) default boolean
deleteOwnMember
(me.topchetoeu.j2s.common.Environment env, int key) default boolean
deleteOwnMember
(me.topchetoeu.j2s.common.Environment env, String key) boolean
deleteOwnMember
(me.topchetoeu.j2s.common.Environment env, KeyCache key) default boolean
deleteOwnMember
(me.topchetoeu.j2s.common.Environment env, Value key) static NumberValue
static String
errorToReadable
(me.topchetoeu.j2s.common.Environment env, RuntimeException err, String prefix) void
freeze()
static FunctionValue
fromIterator
(me.topchetoeu.j2s.common.Environment ext, Iterable<? extends Value> iterable) default Value
getMember
(me.topchetoeu.j2s.common.Environment env, double key) default Value
getMember
(me.topchetoeu.j2s.common.Environment env, int key) default Value
default Value
default Value
default ObjectValue
getMemberDescriptor
(me.topchetoeu.j2s.common.Environment env, Value key) default Value
getMemberOrNull
(me.topchetoeu.j2s.common.Environment env, double key) default Value
getMemberOrNull
(me.topchetoeu.j2s.common.Environment env, int key) default Value
getMemberOrNull
(me.topchetoeu.j2s.common.Environment env, String key) default Value
getMemberOrNull
(me.topchetoeu.j2s.common.Environment env, KeyCache key) default Value
getMemberOrNull
(me.topchetoeu.j2s.common.Environment env, Value key) default Value
getMemberPath
(me.topchetoeu.j2s.common.Environment env, String... path) default Value
getMemberPath
(me.topchetoeu.j2s.common.Environment env, Value... path) getMembers
(me.topchetoeu.j2s.common.Environment env, boolean own, boolean onlyEnumerable) default Member
getOwnMember
(me.topchetoeu.j2s.common.Environment env, double key) default Member
getOwnMember
(me.topchetoeu.j2s.common.Environment env, int key) default Member
getOwnMember
(me.topchetoeu.j2s.common.Environment env, String key) getOwnMember
(me.topchetoeu.j2s.common.Environment env, KeyCache key) default Member
getOwnMember
(me.topchetoeu.j2s.common.Environment env, Value 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()
default Set<SymbolValue>
getSymbolMembers
(me.topchetoeu.j2s.common.Environment env, boolean own, boolean onlyEnumerable) static Value
global
(me.topchetoeu.j2s.common.Environment env) static boolean
static boolean
greaterOrEqual
(me.topchetoeu.j2s.common.Environment env, Value a, Value b) default boolean
hasMember
(me.topchetoeu.j2s.common.Environment env, double key, boolean own) default boolean
hasMember
(me.topchetoeu.j2s.common.Environment env, int key, boolean own) default boolean
default boolean
default boolean
intrinsics
(me.topchetoeu.j2s.common.Environment env) default boolean
isInstanceOf
(me.topchetoeu.j2s.common.Environment env, Value proto) default boolean
isNaN()
boolean
static boolean
static boolean
lessOrEqual
(me.topchetoeu.j2s.common.Environment env, Value a, Value b) static boolean
looseEqual
(me.topchetoeu.j2s.common.Environment env, Value a, Value b) static NumberValue
static NumberValue
static NumberValue
static NumberValue
void
void
seal()
default boolean
default boolean
default boolean
default boolean
default boolean
default boolean
setMemberIfExists
(me.topchetoeu.j2s.common.Environment env, double key, Value val) default boolean
setMemberIfExists
(me.topchetoeu.j2s.common.Environment env, int key, Value val) default boolean
setMemberIfExists
(me.topchetoeu.j2s.common.Environment env, String key, Value val) default boolean
setMemberIfExists
(me.topchetoeu.j2s.common.Environment env, KeyCache key, Value val) default boolean
setMemberIfExists
(me.topchetoeu.j2s.common.Environment env, Value key, Value val) boolean
setPrototype
(me.topchetoeu.j2s.common.Environment env, ObjectValue val) static NumberValue
static NumberValue
shiftRight
(me.topchetoeu.j2s.common.Environment env, Value a, Value b) static NumberValue
boolean
toIterable
(me.topchetoeu.j2s.common.Environment env) toNumber
(me.topchetoeu.j2s.common.Environment env) toPrimitive
(me.topchetoeu.j2s.common.Environment env) default String
toReadable
(me.topchetoeu.j2s.common.Environment ext) toReadableLines
(me.topchetoeu.j2s.common.Environment env, HashSet<ObjectValue> passed) toString
(me.topchetoeu.j2s.common.Environment env) type()
static NumberValue
unsignedShiftRight
(me.topchetoeu.j2s.common.Environment env, Value a, Value b) static NumberValue
-
Field Details
-
BOOL_PROTO
-
NUMBER_PROTO
-
STRING_PROTO
-
SYMBOL_PROTO
-
OBJECT_PROTO
-
FUNCTION_PROTO
-
ARRAY_PROTO
-
INT8_ARR_PROTO
-
INT32_ARR_PROTO
-
UINT8_ARR_PROTO
-
ERROR_PROTO
-
SYNTAX_ERR_PROTO
-
TYPE_ERR_PROTO
-
RANGE_ERR_PROTO
-
GLOBAL
-
INTRINSICS
-
UNDEFINED
-
NULL
-
-
Method Details
-
type
StringValue type() -
isPrimitive
boolean isPrimitive() -
isNaN
default boolean isNaN() -
apply
-
construct
-
constructNoSelf
-
toPrimitive
-
toNumber
-
toString
-
toBoolean
boolean toBoolean() -
getOwnMember
-
getOwnMembers
-
getOwnSymbolMembers
Set<SymbolValue> getOwnSymbolMembers(me.topchetoeu.j2s.common.Environment env, boolean onlyEnumerable) -
defineOwnField
-
defineOwnProperty
boolean defineOwnProperty(me.topchetoeu.j2s.common.Environment env, KeyCache key, Optional<FunctionValue> get, Optional<FunctionValue> set, Boolean enumerable, Boolean configurable) -
deleteOwnMember
-
getPrototype
-
setPrototype
-
getState
Value.State getState() -
preventExtensions
void preventExtensions() -
seal
void seal() -
freeze
void freeze() -
isInstanceOf
-
getOwnMember
-
getOwnMember
-
getOwnMember
-
getOwnMember
-
defineOwnProperty
default boolean defineOwnProperty(me.topchetoeu.j2s.common.Environment env, Value key, Optional<FunctionValue> get, Optional<FunctionValue> set, Boolean enumerable, Boolean configurable) -
defineOwnProperty
default boolean defineOwnProperty(me.topchetoeu.j2s.common.Environment env, String key, Optional<FunctionValue> get, Optional<FunctionValue> set, Boolean enumerable, Boolean configurable) -
defineOwnProperty
default boolean defineOwnProperty(me.topchetoeu.j2s.common.Environment env, int key, Optional<FunctionValue> get, Optional<FunctionValue> set, Boolean enumerable, Boolean configurable) -
defineOwnProperty
default boolean defineOwnProperty(me.topchetoeu.j2s.common.Environment env, double key, Optional<FunctionValue> get, Optional<FunctionValue> set, Boolean enumerable, Boolean configurable) -
defineOwnField
-
defineOwnField
-
defineOwnField
-
defineOwnField
-
defineOwnField
-
defineOwnField
-
defineOwnField
-
defineOwnField
-
defineOwnField
-
deleteOwnMember
-
deleteOwnMember
-
deleteOwnMember
default boolean deleteOwnMember(me.topchetoeu.j2s.common.Environment env, int key) -
deleteOwnMember
default boolean deleteOwnMember(me.topchetoeu.j2s.common.Environment env, double key) -
getMemberOrNull
-
getMemberOrNull
-
getMemberOrNull
-
getMemberOrNull
-
getMemberOrNull
-
getMember
-
getMember
-
getMember
-
getMember
-
getMember
-
setMember
-
setMember
-
setMember
-
setMember
-
setMember
-
setMemberIfExists
-
setMemberIfExists
-
setMemberIfExists
-
setMemberIfExists
-
setMemberIfExists
-
hasMember
-
hasMember
-
hasMember
-
hasMember
default boolean hasMember(me.topchetoeu.j2s.common.Environment env, int key, boolean own) -
hasMember
default boolean hasMember(me.topchetoeu.j2s.common.Environment env, double key, boolean own) -
deleteMember
-
deleteMember
-
deleteMember
-
deleteMember
default boolean deleteMember(me.topchetoeu.j2s.common.Environment env, int key) -
deleteMember
default boolean deleteMember(me.topchetoeu.j2s.common.Environment env, double key) -
getMembers
-
getSymbolMembers
default Set<SymbolValue> getSymbolMembers(me.topchetoeu.j2s.common.Environment env, boolean own, boolean onlyEnumerable) -
getMemberPath
-
getMemberPath
-
getMemberDescriptor
-
toIterable
-
callWith
-
callWithAsync
-
toReadableLines
default List<String> toReadableLines(me.topchetoeu.j2s.common.Environment env, HashSet<ObjectValue> passed) -
toReadable
-
global
-
intrinsics
-
fromIterator
static FunctionValue fromIterator(me.topchetoeu.j2s.common.Environment ext, Iterable<? extends Value> iterable) -
lessOrEqual
-
greaterOrEqual
-
less
-
greater
-
add
-
subtract
-
multiply
-
divide
-
modulo
-
negative
-
and
-
or
-
xor
-
bitwiseNot
-
shiftLeft
-
shiftRight
-
unsignedShiftRight
-
looseEqual
-
errorToReadable
static String errorToReadable(me.topchetoeu.j2s.common.Environment env, RuntimeException err, String prefix)
-