Package me.topchetoeu.j2s.lib
Class NativeMapper
java.lang.Object
me.topchetoeu.j2s.runtime.values.Value
me.topchetoeu.j2s.runtime.values.objects.ObjectValue
me.topchetoeu.j2s.runtime.values.functions.FunctionValue
me.topchetoeu.j2s.lib.NativeMapper
public class NativeMapper
extends me.topchetoeu.j2s.runtime.values.functions.FunctionValue
-
Nested Class Summary
Nested classes/interfaces inherited from class me.topchetoeu.j2s.runtime.values.objects.ObjectValue
me.topchetoeu.j2s.runtime.values.objects.ObjectValue.Property, me.topchetoeu.j2s.runtime.values.objects.ObjectValue.PrototypeProvider
Nested classes/interfaces inherited from class me.topchetoeu.j2s.runtime.values.Value
me.topchetoeu.j2s.runtime.values.Value.State
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Function<me.topchetoeu.j2s.common.Location,
me.topchetoeu.j2s.common.Location> Fields inherited from class me.topchetoeu.j2s.runtime.values.functions.FunctionValue
enableApply, enableConstruct, length, name, prototype
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
ConstructorsConstructorDescriptionNativeMapper
(Function<me.topchetoeu.j2s.common.Location, me.topchetoeu.j2s.common.Location> mapper) -
Method Summary
Modifier and TypeMethodDescriptionprotected me.topchetoeu.j2s.runtime.values.Value
onApply
(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.values.Value thisArg, me.topchetoeu.j2s.runtime.values.Value... args) protected me.topchetoeu.j2s.runtime.values.Value
onConstruct
(me.topchetoeu.j2s.common.Environment ext, me.topchetoeu.j2s.runtime.values.Value target, me.topchetoeu.j2s.runtime.values.Value... args) static Function<me.topchetoeu.j2s.common.Location,
me.topchetoeu.j2s.common.Location> unwrap
(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.values.functions.FunctionValue func) Methods inherited from class me.topchetoeu.j2s.runtime.values.functions.FunctionValue
apply, construct, deleteOwnMember, getOwnMember, setName, toReadableLines, toString, type
Methods inherited from class me.topchetoeu.j2s.runtime.values.objects.ObjectValue
defineOwnField, defineOwnProperty, freeze, getOwnMembers, getOwnSymbolMembers, getPrototype, getState, isPrimitive, preventExtensions, seal, setPrototype, setPrototype, setPrototype, toBoolean, toNumber, toPrimitive, toReadableLines, toString
Methods inherited from class me.topchetoeu.j2s.runtime.values.Value
add, and, bitwiseNot, callWith, callWithAsync, 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
-
mapper
-
-
Constructor Details
-
NativeMapper
public NativeMapper(Function<me.topchetoeu.j2s.common.Location, me.topchetoeu.j2s.common.Location> mapper)
-
-
Method Details
-
onApply
protected me.topchetoeu.j2s.runtime.values.Value onApply(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.values.Value thisArg, me.topchetoeu.j2s.runtime.values.Value... args) - Specified by:
onApply
in classme.topchetoeu.j2s.runtime.values.functions.FunctionValue
-
onConstruct
protected me.topchetoeu.j2s.runtime.values.Value onConstruct(me.topchetoeu.j2s.common.Environment ext, me.topchetoeu.j2s.runtime.values.Value target, me.topchetoeu.j2s.runtime.values.Value... args) - Specified by:
onConstruct
in classme.topchetoeu.j2s.runtime.values.functions.FunctionValue
-
unwrap
public static Function<me.topchetoeu.j2s.common.Location,me.topchetoeu.j2s.common.Location> unwrap(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.values.functions.FunctionValue func)
-