Class NativeMapper

java.lang.Object
me.topchetoeu.j2s.runtime.values.objects.ObjectValue
me.topchetoeu.j2s.runtime.values.functions.FunctionValue
me.topchetoeu.j2s.lib.NativeMapper
All Implemented Interfaces:
me.topchetoeu.j2s.runtime.values.Value

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 interface me.topchetoeu.j2s.runtime.values.Value

    me.topchetoeu.j2s.runtime.values.Value.State
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final 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 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
    Constructor
    Description
    NativeMapper(Function<me.topchetoeu.j2s.common.Location,me.topchetoeu.j2s.common.Location> mapper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    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 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface me.topchetoeu.j2s.runtime.values.Value

    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, 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

    • mapper

      public final Function<me.topchetoeu.j2s.common.Location,me.topchetoeu.j2s.common.Location> 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 class me.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 class me.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)