javonet-ruby-sdk 2.5.8 → 2.5.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Clr/Javonet.Clr.Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Clr/JavonetClrRuntime.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Jvm/JavonetJvmRuntime.jar +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/NetVersionLatest.runtimeconfig.json +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetActivationService.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetCppRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetGoRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetJvmRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetNetcoreRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetPythonRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetRuby278RuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetRubyRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetTcpClient.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetTcpTlsClient.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libUtils.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/NativeUtilsUnitTests.xml +30 -29
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/NetVersionLatest.runtimeconfig.json +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetActivationService.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetCppRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetGoRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetJvmRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNetcoreRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNodejs1816RuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetNodejsRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetPerlRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetPythonRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetRuby278RuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetRubyRuntimeNative.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetTcpClient.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libJavonetTcpTlsClient.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/libUtils.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/openssl3/libJavonetActivationService.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/openssl3/libJavonetTcpTlsClient.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/openssl3/libUtils.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/X64/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/NetVersionLatest.runtimeconfig.json +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetActivationService.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetCppRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetGoRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetJvmRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNetcoreRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNodejs1816RuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetNodejsRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetPerlRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetPythonRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetRuby278RuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetRubyRuntimeNative.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetTcpClient.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libJavonetTcpTlsClient.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libUtils.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/libpython3.11.dylib +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/MacOs/X64/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetActivationService.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetCppRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetGoRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetJvmRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetNetcoreRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetPythonRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetRuby278RuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetRubyRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetTcpClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/JavonetTcpTlsClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/NetVersionLatest.runtimeconfig.json +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/ARM64/version.txt +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetActivationService.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetClrRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetCppRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetGoRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetJvmRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNetcoreRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNodejs1816RuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetNodejsRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPerlRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPythonRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetRuby278RuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetRubyRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetTcpClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetTcpTlsClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/NetVersionLatest.runtimeconfig.json +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetActivationService.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetClrRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetCppRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetGoRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetJvmRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetNetcoreRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetPythonRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetTcpClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetTcpTlsClient.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/NetVersion90LatestPatch.runtimeconfig.json +10 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/NetVersionLatest.runtimeconfig.json +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Netcore/Javonet.Netcore.Core.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Netcore/Javonet.Netcore.Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/index.js +64 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/generator/handler/AbstractGeneratorHandler.js +0 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/CreateInstanceGeneratorHandler.js +27 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/GeneratorHandler.js +38 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/GetInstanceFieldGeneratorHandler.js +26 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/GetStaticFieldGeneratorHandler.js +24 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/GetTypeGeneratorHandler.js +39 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/Handlers.js +58 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/InvokeInstanceMethodGeneratorHandler.js +33 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/InvokeStandaloneMethodGeneratorHandler.js +35 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/InvokeStaticMethodGeneratorHandler.js +35 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/shared/SharedArgumentNameHandler.js +15 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/generator/handler/shared/SharedClassInstanceHandler.js +4 -5
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/generator/handler/shared/SharedClassNameHandler.js +10 -12
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/generator/handler/shared/SharedMethodNameHandler.js +9 -12
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/shared/SharedReturnTypeHandler.js +9 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedBodyHandler.js +18 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js +29 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler.js +21 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.js +31 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js +21 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler.js +33 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedInvokeStandaloneMethodBodyHandler.js +39 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler.js +39 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/internal/CommonGenerator.js +39 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/internal/NodejsStringBuilder.js +17 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/generator/internal/SharedHandlerType.js +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/generator/utils/StringUtils.js +2 -2
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/AbstractHandler.js +12 -12
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/ArrayGetItemHandler.js +3 -4
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/ArrayGetRankHandler.js +5 -7
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/ArrayGetSizeHandler.js +3 -4
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/ArrayHandler.js +2 -3
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/ArraySetItemHandler.js +4 -5
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/CastingHandler.js +3 -3
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/CreateClassInstanceHandler.js +36 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/DestructReferenceHandler.js +3 -4
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/EnableNamespaceHandler.js +8 -11
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/EnableTypeHandler.js +8 -10
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/GetGlobalStaticFieldHandler.js +37 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/GetInstanceFieldHandler.js +35 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/GetStaticFieldHandler.js +36 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/GetTypeHandler.js +22 -21
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/Handler.js +12 -11
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/InvokeGlobalMethodHandler.js +43 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/InvokeInstanceMethodHandler.js +38 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/InvokeStandaloneMethodHandler.js +56 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/InvokeStaticMethodHandler.js +38 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/LoadLibraryHandler.js +4 -3
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/ResolveReferenceHandler.js +13 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/SetGlobalStaticFieldHandler.js +38 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/SetInstanceFieldHandler.js +35 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/SetStaticFieldHandler.js +33 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/handler/ValueHandler.js +3 -5
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/interpreter/Interpreter.js +142 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/namespaceCache/NamespaceCache.js +12 -12
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/protocol/CommandDeserializer.js +43 -48
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/protocol/CommandSerializer.js +4 -5
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/protocol/TypeDeserializer.js +17 -15
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/protocol/TypeSerializer.js +6 -7
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/receiver/Receiver.js +32 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/receiver/ReceiverNative.js +3 -3
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/referenceCache/ReferencesCache.js +4 -4
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/transmitter/Transmitter.js +2 -3
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/transmitter/TransmitterWebsocket.js +33 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/transmitter/TransmitterWrapper.js +34 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{core → lib/core}/typeCache/TypeCache.js +12 -12
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/webSocketClient/WebSocketClient.js +131 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/declarations.d.ts +64 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/sdk/ConfigRuntimeFactory.js +145 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/sdk/InvocationContext.js +454 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/sdk/Javonet.js +89 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/sdk/RuntimeContext.js +266 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/sdk/RuntimeFactory.js +78 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/sdk/tools/JsonFileResolver.js +101 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/sdk/tools/SdkExceptionHelper.js +79 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/Command.js +69 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{utils → lib/utils}/CommandType.js +6 -2
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/ConnectionType.js +8 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{utils → lib/utils}/ExceptionType.js +6 -3
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/RuntimeLogger.js +30 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{utils → lib/utils}/RuntimeName.js +6 -3
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/RuntimeNameHandler.js +34 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/StringEncodingMode.js +9 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{utils → lib/utils}/Type.js +5 -2
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{utils → lib/utils}/connectionData/IConnectionData.js +4 -6
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/connectionData/InMemoryConnectionData.js +35 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/connectionData/TcpConnectionData.js +77 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/connectionData/WsConnectionData.js +50 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{utils → lib/utils}/exception/ExceptionSerializer.js +24 -31
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{utils → lib/utils}/exception/ExceptionThrower.js +36 -30
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/uuid/REGEX.js +2 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/uuid/rng.js +12 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/uuid/stringify.js +51 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/uuid/v4.js +27 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/uuid/validate.js +6 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Class/Load/XS/XS.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Data/UUID/UUID.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/FFI/Platypus/Platypus.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/List/Util/Util.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Moose/Moose.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/PPI/XS/XS.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Package/Stash/XS/XS.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Params/Util/Util.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Want/Want.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/lib/libplfill.so +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/perllocal.pod +90 -90
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Data/UUID/UUID.xs.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/PPI/XS/XS.xs.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Scalar/Util/Numeric/Numeric.xs.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Want/Want.xs.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/autobox/autobox.xs.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/perllocal.pod +20 -20
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/delegateCache/__pycache__/DelegatesCache.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/delegateCache/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/internal/__pycache__/PythonStringBuilder.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/internal/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/AbstractCommandHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/AbstractHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetItemHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetRankHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetSizeHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArrayHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ArraySetItemHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/CastingHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/CreateClassInstanceHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/DestructReferenceHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/EnableNamespaceHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/EnableTypeHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetEnumItemHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetEnumNameHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetEnumValueHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetInstanceFieldHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetInstanceMethodAsDelegateHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetStaticFieldHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetStaticMethodAsDelegateHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/GetTypeHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/Handler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/HandlerDictionary.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeDelegateHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeInstanceMethodHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/InvokeStaticMethodHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/LoadLibraryHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/PassDelegateHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ResolveInstanceHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/SetInstanceFieldHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/SetStaticFieldHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/ValueHandler.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/handler/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/interpreter/__pycache__/Interpreter.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/interpreter/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/namespaceCache/__pycache__/NamespaceCache.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/namespaceCache/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/CommandDeserializer.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/CommandSerializer.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/TypeDeserializer.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/TypeSerializer.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/protocol/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/receiver/__pycache__/Receiver.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/receiver/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/referenceCache/__pycache__/ReferencesCache.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/referenceCache/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/typeCache/__pycache__/TypeCache.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/core/typeCache/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/Command.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/CommandType.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/ConnectionType.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/ExceptionType.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/RuntimeLogger.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/RuntimeName.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/StringEncodingMode.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/Type.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/IConnectionData.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/InMemoryConnectionData.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/connectionData/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/__pycache__/ExceptionSerializer.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Python/javonet/utils/exception/__pycache__/__init__.cpython-312.pyc +0 -0
- data/lib/javonet-ruby-sdk/Binaries/version.txt +1 -1
- metadata +105 -85
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/CreateInstanceGeneratorHandler.js +0 -17
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/GeneratorHandler.js +0 -30
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/GetInstanceFieldGeneratorHandler.js +0 -18
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/GetStaticFieldGeneratorHandler.js +0 -17
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/GetTypeGeneratorHandler.js +0 -26
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/Handlers.js +0 -51
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/InvokeInstanceMethodGeneratorHandler.js +0 -18
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/InvokeStaticMethodGeneratorHandler.js +0 -20
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/shared/SharedArgumentNameHandler.js +0 -11
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/shared/SharedReturnTypeHandler.js +0 -10
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/shared/body/SharedBodyHandler.js +0 -14
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js +0 -24
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler.js +0 -19
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.js +0 -27
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js +0 -20
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler.js +0 -27
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler.js +0 -31
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/internal/CommonGenerator.js +0 -26
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/generator/internal/NodejsStringBuilder.js +0 -18
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/CreateClassInstanceHandler.js +0 -38
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/GetGlobalStaticFieldHandler.js +0 -39
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/GetInstanceFieldHandler.js +0 -35
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/GetStaticFieldHandler.js +0 -36
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/InvokeGlobalMethodHandler.js +0 -47
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/InvokeInstanceMethodHandler.js +0 -40
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/InvokeStaticMethodHandler.js +0 -40
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/ResolveReferenceHandler.js +0 -14
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/SetGlobalStaticFieldHandler.js +0 -44
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/SetInstanceFieldHandler.js +0 -35
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/handler/SetStaticFieldHandler.js +0 -33
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/interpreter/Interpreter.js +0 -69
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/receiver/Receiver.js +0 -26
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/transmitter/TransmitterWrapper.js +0 -28
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/core/webSocketClient/WebSocketClient.js +0 -134
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/Command.js +0 -66
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/ConnectionType.js +0 -5
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/RuntimeLogger.js +0 -27
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/RuntimeNameHandler.js +0 -30
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/StringEncodingMode.js +0 -6
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/connectionData/InMemoryConnectionData.js +0 -28
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/connectionData/TcpConnectionData.js +0 -69
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/connectionData/WsConnectionData.js +0 -33
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/uuid/REGEX.js +0 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/uuid/rng.js +0 -12
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/uuid/stringify.js +0 -51
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/uuid/v4.js +0 -27
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/utils/uuid/validate.js +0 -6
@@ -1,27 +0,0 @@
|
|
1
|
-
const AbstractGeneratorHandler = require("../../AbstractGeneratorHandler");
|
2
|
-
const CommonGenerator = require("../../../internal/CommonGenerator");
|
3
|
-
const SharedHandlerType = require("../../../internal/SharedHandlerType");
|
4
|
-
const OS = require("os");
|
5
|
-
|
6
|
-
class SharedInvokeInstanceMethodBodyHandler extends AbstractGeneratorHandler {
|
7
|
-
|
8
|
-
generate_code(existing_string_builder, common_command, used_object, handlers) {
|
9
|
-
handlers.SHARED_HANDLER[SharedHandlerType.RETURN_TYPE].generate_code(existing_string_builder, common_command,
|
10
|
-
used_object.payload[1],
|
11
|
-
handlers)
|
12
|
-
existing_string_builder.append("this.instance.")
|
13
|
-
existing_string_builder.append("invokeInstanceMethod")
|
14
|
-
existing_string_builder.append("(")
|
15
|
-
existing_string_builder.append("\"")
|
16
|
-
existing_string_builder.append(used_object.payload[0])
|
17
|
-
existing_string_builder.append("\"")
|
18
|
-
existing_string_builder.append(", ")
|
19
|
-
CommonGenerator.process_method_arguments_names(existing_string_builder, common_command,
|
20
|
-
used_object.payload[4], handlers)
|
21
|
-
existing_string_builder.append(").")
|
22
|
-
existing_string_builder.append("execute().resultValue")
|
23
|
-
existing_string_builder.append(OS.EOL)
|
24
|
-
}
|
25
|
-
}
|
26
|
-
|
27
|
-
module.exports = SharedInvokeInstanceMethodBodyHandler
|
@@ -1,31 +0,0 @@
|
|
1
|
-
const AbstractGeneratorHandler = require("../../AbstractGeneratorHandler");
|
2
|
-
const StringUtils = require("../../../utils/StringUtils");
|
3
|
-
const CommonGenerator = require("../../../internal/CommonGenerator");
|
4
|
-
const SharedHandlerType = require("../../../internal/SharedHandlerType");
|
5
|
-
const RuntimeName = require("../../../../../utils/RuntimeName");
|
6
|
-
const OS = require("os");
|
7
|
-
|
8
|
-
class SharedInvokeStaticMethodBodyHandler extends AbstractGeneratorHandler {
|
9
|
-
|
10
|
-
generate_code(existing_string_builder, common_command, used_object, handlers) {
|
11
|
-
handlers.SHARED_HANDLER[SharedHandlerType.RETURN_TYPE].generate_code(existing_string_builder, common_command,
|
12
|
-
used_object.payload[1],
|
13
|
-
handlers)
|
14
|
-
existing_string_builder.append("Javonet.inMemory().")
|
15
|
-
existing_string_builder.append(StringUtils.capitalizeFirstLetter(Object.keys(RuntimeName)[common_command.runtimeName]))
|
16
|
-
existing_string_builder.append("().")
|
17
|
-
existing_string_builder.append("getType(\"")
|
18
|
-
existing_string_builder.append(used_object.payload[3])
|
19
|
-
existing_string_builder.append("\").")
|
20
|
-
existing_string_builder.append("invokeStaticMethod(\"")
|
21
|
-
existing_string_builder.append(used_object.payload[0])
|
22
|
-
existing_string_builder.append("\", ")
|
23
|
-
CommonGenerator.process_method_arguments_names(existing_string_builder, common_command,
|
24
|
-
used_object.payload[5], handlers)
|
25
|
-
existing_string_builder.append(").")
|
26
|
-
existing_string_builder.append("execute().resultValue")
|
27
|
-
existing_string_builder.append(OS.EOL)
|
28
|
-
}
|
29
|
-
}
|
30
|
-
|
31
|
-
module.exports = SharedInvokeStaticMethodBodyHandler
|
@@ -1,26 +0,0 @@
|
|
1
|
-
const SharedHandlerType = require("./SharedHandlerType");
|
2
|
-
|
3
|
-
class CommonGenerator {
|
4
|
-
|
5
|
-
static process_method_arguments(existing_string_builder, common_command, type_array, name_array, handlers) {
|
6
|
-
|
7
|
-
for (let i = 0; i < name_array.length; i++) {
|
8
|
-
handlers.SHARED_HANDLER[SharedHandlerType.ARGUMENT_NAME].generate_code(existing_string_builder, common_command, name_array[i], handlers)
|
9
|
-
if (i < name_array.length - 1) {
|
10
|
-
existing_string_builder.append(", ")
|
11
|
-
}
|
12
|
-
}
|
13
|
-
}
|
14
|
-
|
15
|
-
static process_method_arguments_names(existing_string_builder, common_command, name_array, handlers) {
|
16
|
-
for (let i = 0; i < name_array.length; i++) {
|
17
|
-
handlers.SHARED_HANDLER[SharedHandlerType.ARGUMENT_NAME].generate_code(existing_string_builder,
|
18
|
-
common_command, name_array[i], handlers)
|
19
|
-
if (i < name_array.length - 1) {
|
20
|
-
existing_string_builder.append(", ")
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
24
|
-
}
|
25
|
-
|
26
|
-
module.exports = CommonGenerator
|
@@ -1,38 +0,0 @@
|
|
1
|
-
const AbstractHandler = require("./AbstractHandler");
|
2
|
-
|
3
|
-
class CreateClassInstanceHandler extends AbstractHandler {
|
4
|
-
requiredParametersCount = 1;
|
5
|
-
|
6
|
-
constructor() {
|
7
|
-
super();
|
8
|
-
}
|
9
|
-
|
10
|
-
process(command) {
|
11
|
-
try {
|
12
|
-
if (command.payload.length < this.requiredParametersCount) {
|
13
|
-
throw new Error("Create Class Instance parameters mismatch");
|
14
|
-
}
|
15
|
-
let clazz = command.payload[0];
|
16
|
-
let constructorArguments = command.payload.slice(1);
|
17
|
-
let instance = new clazz(...constructorArguments);
|
18
|
-
if (typeof instance === "undefined") {
|
19
|
-
let methods = Object.getOwnPropertyNames(type).filter(function (
|
20
|
-
property
|
21
|
-
) {
|
22
|
-
return typeof type[property] === "function";
|
23
|
-
});
|
24
|
-
let message = `Method 'constructor' not found in class. Available methods:\n`;
|
25
|
-
methods.forEach((methodIter) => {
|
26
|
-
message += `${methodIter}\n`;
|
27
|
-
});
|
28
|
-
throw new Error(message);
|
29
|
-
} else {
|
30
|
-
return instance;
|
31
|
-
}
|
32
|
-
} catch (error) {
|
33
|
-
throw this.process_stack_trace(error, this.constructor.name);
|
34
|
-
}
|
35
|
-
}
|
36
|
-
}
|
37
|
-
|
38
|
-
module.exports = new CreateClassInstanceHandler();
|
@@ -1,39 +0,0 @@
|
|
1
|
-
const AbstractHandler = require("./AbstractHandler");
|
2
|
-
|
3
|
-
class GetGlobalStaticFieldHandler extends AbstractHandler {
|
4
|
-
requiredParametersCount = 1;
|
5
|
-
|
6
|
-
constructor() {
|
7
|
-
super();
|
8
|
-
}
|
9
|
-
|
10
|
-
process(command) {
|
11
|
-
try {
|
12
|
-
if (command.payload.length < this.requiredParametersCount) {
|
13
|
-
throw new Error("Get global static field parameters mismatch");
|
14
|
-
}
|
15
|
-
const { payload } = command;
|
16
|
-
const splitted = payload[0].split(".");
|
17
|
-
let fieldToGet;
|
18
|
-
|
19
|
-
for (let i = 0; i < splitted.length; i++) {
|
20
|
-
fieldToGet = !fieldToGet
|
21
|
-
? global[splitted[i]]
|
22
|
-
: fieldToGet[splitted[i]];
|
23
|
-
if (typeof fieldToGet === "undefined") {
|
24
|
-
let fields = Object.keys(global);
|
25
|
-
let message = `Field ${payload[0]} not found in global. Available fields:\n`;
|
26
|
-
fields.forEach((fieldIter) => {
|
27
|
-
message += `${fieldIter}\n`;
|
28
|
-
});
|
29
|
-
throw new Error(message);
|
30
|
-
}
|
31
|
-
}
|
32
|
-
return fieldToGet;
|
33
|
-
} catch (error) {
|
34
|
-
throw this.process_stack_trace(error, this.constructor.name);
|
35
|
-
}
|
36
|
-
}
|
37
|
-
}
|
38
|
-
|
39
|
-
module.exports = new GetGlobalStaticFieldHandler();
|
@@ -1,35 +0,0 @@
|
|
1
|
-
const AbstractHandler = require("./AbstractHandler");
|
2
|
-
|
3
|
-
class GetInstanceFieldHandler extends AbstractHandler {
|
4
|
-
requiredParametersCount = 2;
|
5
|
-
|
6
|
-
constructor() {
|
7
|
-
super();
|
8
|
-
}
|
9
|
-
|
10
|
-
process(command) {
|
11
|
-
try {
|
12
|
-
if (command.payload.length < this.requiredParametersCount) {
|
13
|
-
throw new Error("Get Instance Field parameters mismatch");
|
14
|
-
}
|
15
|
-
const { payload } = command;
|
16
|
-
let instance = payload[0];
|
17
|
-
let field = payload[1];
|
18
|
-
let instanceField = instance[field];
|
19
|
-
if (typeof instanceField === "undefined") {
|
20
|
-
let fields = Object.keys(instance);
|
21
|
-
let message = `Field ${field} not found in object. Available fields:\n`;
|
22
|
-
fields.forEach((fieldIter) => {
|
23
|
-
message += `${fieldIter}\n`;
|
24
|
-
});
|
25
|
-
throw new Error(message);
|
26
|
-
} else {
|
27
|
-
return instanceField;
|
28
|
-
}
|
29
|
-
} catch (error) {
|
30
|
-
throw this.process_stack_trace(error, this.constructor.name);
|
31
|
-
}
|
32
|
-
}
|
33
|
-
}
|
34
|
-
|
35
|
-
module.exports = new GetInstanceFieldHandler();
|
@@ -1,36 +0,0 @@
|
|
1
|
-
const AbstractHandler = require("./AbstractHandler");
|
2
|
-
|
3
|
-
class GetStaticFieldHandler extends AbstractHandler {
|
4
|
-
requiredParametersCount = 2;
|
5
|
-
|
6
|
-
constructor() {
|
7
|
-
super();
|
8
|
-
}
|
9
|
-
|
10
|
-
process(command) {
|
11
|
-
try {
|
12
|
-
if (command.payload.length < this.requiredParametersCount) {
|
13
|
-
throw new Error("Array Static Field parameters mismatch");
|
14
|
-
}
|
15
|
-
const { payload } = command;
|
16
|
-
let type = payload[0];
|
17
|
-
let field = payload[1];
|
18
|
-
|
19
|
-
let staticField = type[field];
|
20
|
-
if (typeof staticField === "undefined") {
|
21
|
-
let fields = Object.keys(type);
|
22
|
-
let message = `Field ${field} not found in class. Available fields:\n`;
|
23
|
-
fields.forEach((fieldIter) => {
|
24
|
-
message += `${fieldIter}\n`;
|
25
|
-
});
|
26
|
-
throw new Error(message);
|
27
|
-
} else {
|
28
|
-
return staticField;
|
29
|
-
}
|
30
|
-
} catch (error) {
|
31
|
-
throw this.process_stack_trace(error, this.constructor.name);
|
32
|
-
}
|
33
|
-
}
|
34
|
-
}
|
35
|
-
|
36
|
-
module.exports = new GetStaticFieldHandler();
|
@@ -1,47 +0,0 @@
|
|
1
|
-
const AbstractHandler = require("./AbstractHandler");
|
2
|
-
|
3
|
-
class InvokeGlobalMethodHandler extends AbstractHandler {
|
4
|
-
requiredParametersCount = 1;
|
5
|
-
|
6
|
-
constructor() {
|
7
|
-
super();
|
8
|
-
}
|
9
|
-
|
10
|
-
process(command) {
|
11
|
-
try {
|
12
|
-
if (command.payload.length < this.requiredParametersCount) {
|
13
|
-
throw new Error("Invoke Global Method parameters mismatch");
|
14
|
-
}
|
15
|
-
const { payload } = command;
|
16
|
-
const splitted = payload[0].split(".");
|
17
|
-
let methodToInvoke;
|
18
|
-
for (let i = 0; i < splitted.length; i++) {
|
19
|
-
methodToInvoke = !methodToInvoke
|
20
|
-
? global[splitted[i]]
|
21
|
-
: methodToInvoke[splitted[i]];
|
22
|
-
}
|
23
|
-
if (typeof methodToInvoke === "undefined") {
|
24
|
-
let methods = Object.getOwnPropertyNames(global).filter(function (
|
25
|
-
property
|
26
|
-
) {
|
27
|
-
return typeof global[property] === "function";
|
28
|
-
});
|
29
|
-
let message = `Method ${payload[0]} not found in global. Available methods:\n`;
|
30
|
-
methods.forEach((methodIter) => {
|
31
|
-
message += `${methodIter}\n`;
|
32
|
-
});
|
33
|
-
throw new Error(message);
|
34
|
-
}
|
35
|
-
if (payload.length > 1) {
|
36
|
-
const args = payload.slice(1);
|
37
|
-
return methodToInvoke(args);
|
38
|
-
} else {
|
39
|
-
return methodToInvoke();
|
40
|
-
}
|
41
|
-
} catch (error) {
|
42
|
-
throw this.process_stack_trace(error, this.constructor.name);
|
43
|
-
}
|
44
|
-
}
|
45
|
-
}
|
46
|
-
|
47
|
-
module.exports = new InvokeGlobalMethodHandler();
|
@@ -1,40 +0,0 @@
|
|
1
|
-
const AbstractHandler = require("./AbstractHandler");
|
2
|
-
|
3
|
-
class InvokeInstanceMethodHandler extends AbstractHandler {
|
4
|
-
requiredParametersCount = 2;
|
5
|
-
|
6
|
-
constructor() {
|
7
|
-
super();
|
8
|
-
}
|
9
|
-
|
10
|
-
process(command) {
|
11
|
-
try {
|
12
|
-
if (command.payload.length < this.requiredParametersCount) {
|
13
|
-
throw new Error("Invoke Instance Method parameters mismatch");
|
14
|
-
}
|
15
|
-
const { payload } = command;
|
16
|
-
let instance = payload[0];
|
17
|
-
let methodName = payload[1];
|
18
|
-
let args = payload.slice(2);
|
19
|
-
let method = instance[methodName];
|
20
|
-
if (typeof method === "undefined") {
|
21
|
-
let methods = Object.getOwnPropertyNames(instance.__proto__).filter(
|
22
|
-
function (property) {
|
23
|
-
return typeof instance.__proto__[property] === "function";
|
24
|
-
}
|
25
|
-
);
|
26
|
-
let message = `Method ${methodName} not found in object. Available methods:\n`;
|
27
|
-
methods.forEach((methodIter) => {
|
28
|
-
message += `${methodIter}\n`;
|
29
|
-
});
|
30
|
-
throw new Error(message);
|
31
|
-
} else {
|
32
|
-
return Reflect.apply(method, instance, args);
|
33
|
-
}
|
34
|
-
} catch (error) {
|
35
|
-
throw this.process_stack_trace(error, this.constructor.name);
|
36
|
-
}
|
37
|
-
}
|
38
|
-
}
|
39
|
-
|
40
|
-
module.exports = new InvokeInstanceMethodHandler();
|
@@ -1,40 +0,0 @@
|
|
1
|
-
const AbstractHandler = require("./AbstractHandler");
|
2
|
-
|
3
|
-
class InvokeStaticMethodHandler extends AbstractHandler {
|
4
|
-
requiredParametersCount = 2;
|
5
|
-
|
6
|
-
constructor() {
|
7
|
-
super();
|
8
|
-
}
|
9
|
-
|
10
|
-
process(command) {
|
11
|
-
try {
|
12
|
-
if (command.payload.length < this.requiredParametersCount) {
|
13
|
-
throw new Error("Invoke Static Method parameters mismatch");
|
14
|
-
}
|
15
|
-
const { payload } = command;
|
16
|
-
let type = payload[0];
|
17
|
-
let methodName = payload[1];
|
18
|
-
let args = payload.slice(2);
|
19
|
-
let method = type[methodName];
|
20
|
-
if (typeof method === "undefined") {
|
21
|
-
let methods = Object.getOwnPropertyNames(type).filter(function (
|
22
|
-
property
|
23
|
-
) {
|
24
|
-
return typeof type[property] === "function";
|
25
|
-
});
|
26
|
-
let message = `Method ${methodName} not found in class. Available methods:\n`;
|
27
|
-
methods.forEach((methodIter) => {
|
28
|
-
message += `${methodIter}\n`;
|
29
|
-
});
|
30
|
-
throw new Error(message);
|
31
|
-
} else {
|
32
|
-
return Reflect.apply(method, undefined, args);
|
33
|
-
}
|
34
|
-
} catch (error) {
|
35
|
-
throw this.process_stack_trace(error, this.constructor.name);
|
36
|
-
}
|
37
|
-
}
|
38
|
-
}
|
39
|
-
|
40
|
-
module.exports = new InvokeStaticMethodHandler();
|
@@ -1,14 +0,0 @@
|
|
1
|
-
const AbstractHandler = require("./AbstractHandler");
|
2
|
-
const ReferenceCache = require("../referenceCache/ReferencesCache")
|
3
|
-
|
4
|
-
class ResolveReferenceHandler extends AbstractHandler {
|
5
|
-
constructor() {
|
6
|
-
super()
|
7
|
-
}
|
8
|
-
|
9
|
-
process(command) {
|
10
|
-
return ReferenceCache.getInstance().resolveReference(command.payload[0])
|
11
|
-
}
|
12
|
-
}
|
13
|
-
|
14
|
-
module.exports = new ResolveReferenceHandler()
|
@@ -1,44 +0,0 @@
|
|
1
|
-
const AbstractHandler = require("./AbstractHandler");
|
2
|
-
|
3
|
-
class SetGlobalStaticFieldHandler extends AbstractHandler {
|
4
|
-
requiredParametersCount = 2;
|
5
|
-
|
6
|
-
constructor() {
|
7
|
-
super();
|
8
|
-
}
|
9
|
-
|
10
|
-
process(command) {
|
11
|
-
try {
|
12
|
-
if (command.payload.length < this.requiredParametersCount) {
|
13
|
-
throw new Error("Set gloabal static field parameters mismatch");
|
14
|
-
}
|
15
|
-
const { payload } = command;
|
16
|
-
const splitted = payload[0].split(".");
|
17
|
-
const value = payload[1];
|
18
|
-
let fieldToSet;
|
19
|
-
|
20
|
-
for (let i = 0; i < splitted.length; i++) {
|
21
|
-
if (
|
22
|
-
typeof (fieldToSet
|
23
|
-
? fieldToSet[splitted[i]]
|
24
|
-
: global[splitted[i]]) === "undefined"
|
25
|
-
) {
|
26
|
-
let fields = Object.keys(fieldToSet ? fieldToSet : global);
|
27
|
-
let message = `Field ${splitted[i]} not found in object. Available fields:\n`;
|
28
|
-
fields.forEach((fieldIter) => {
|
29
|
-
message += `${fieldIter}\n`;
|
30
|
-
});
|
31
|
-
throw new Error(message);
|
32
|
-
}
|
33
|
-
fieldToSet = !fieldToSet
|
34
|
-
? global[splitted[i]]
|
35
|
-
: fieldToSet[splitted[i]];
|
36
|
-
}
|
37
|
-
fieldToSet = value;
|
38
|
-
} catch (error) {
|
39
|
-
throw this.process_stack_trace(error, this.constructor.name);
|
40
|
-
}
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
module.exports = new SetGlobalStaticFieldHandler();
|
@@ -1,35 +0,0 @@
|
|
1
|
-
const AbstractHandler = require("./AbstractHandler");
|
2
|
-
|
3
|
-
class SetInstanceFieldHandler extends AbstractHandler {
|
4
|
-
requiredParametersCount = 3;
|
5
|
-
|
6
|
-
constructor() {
|
7
|
-
super();
|
8
|
-
}
|
9
|
-
|
10
|
-
process(command) {
|
11
|
-
try {
|
12
|
-
if (command.payload.length < this.requiredParametersCount) {
|
13
|
-
throw new Error("Set Instance Field parameters mismatch");
|
14
|
-
}
|
15
|
-
const { payload } = command;
|
16
|
-
let instance = payload[0];
|
17
|
-
let field = payload[1];
|
18
|
-
let value = payload[2];
|
19
|
-
if (typeof instance[field] === "undefined") {
|
20
|
-
let fields = Object.keys(instance);
|
21
|
-
let message = `Field ${field} not found in object. Available fields:\n`;
|
22
|
-
fields.forEach((fieldIter) => {
|
23
|
-
message += `${fieldIter}\n`;
|
24
|
-
});
|
25
|
-
throw new Error(message);
|
26
|
-
}
|
27
|
-
instance[field] = value;
|
28
|
-
return 0;
|
29
|
-
} catch (error) {
|
30
|
-
throw this.process_stack_trace(error, this.constructor.name);
|
31
|
-
}
|
32
|
-
}
|
33
|
-
}
|
34
|
-
|
35
|
-
module.exports = new SetInstanceFieldHandler();
|
@@ -1,33 +0,0 @@
|
|
1
|
-
const AbstractHandler = require("./AbstractHandler");
|
2
|
-
|
3
|
-
class SetStaticFieldHandler extends AbstractHandler {
|
4
|
-
requiredParametersCount = 3;
|
5
|
-
|
6
|
-
constructor() {
|
7
|
-
super();
|
8
|
-
}
|
9
|
-
|
10
|
-
process(command) {
|
11
|
-
try {
|
12
|
-
if (command.payload.length < this.requiredParametersCount) {
|
13
|
-
throw new Error("Set static field parameters mismatch");
|
14
|
-
}
|
15
|
-
const { payload } = command;
|
16
|
-
let [obj, field, value] = payload;
|
17
|
-
if (typeof obj[field] === "undefined") {
|
18
|
-
let fields = Object.keys(obj);
|
19
|
-
let message = `Field ${field} not found in class ${obj.constructor.name}. Available fields:\n`;
|
20
|
-
fields.forEach((fieldIter) => {
|
21
|
-
message += `${fieldIter}\n`;
|
22
|
-
});
|
23
|
-
throw new Error(message);
|
24
|
-
}
|
25
|
-
obj[field] = value;
|
26
|
-
return 0;
|
27
|
-
} catch (error) {
|
28
|
-
throw this.process_stack_trace(error, this.constructor.name);
|
29
|
-
}
|
30
|
-
}
|
31
|
-
}
|
32
|
-
|
33
|
-
module.exports = new SetStaticFieldHandler();
|
@@ -1,69 +0,0 @@
|
|
1
|
-
const { Handler } = require('../handler/Handler')
|
2
|
-
const CommandSerializer = require('../protocol/CommandSerializer')
|
3
|
-
const CommandDeserializer = require('../protocol/CommandDeserializer')
|
4
|
-
const Runtime = require("../../utils/RuntimeName");
|
5
|
-
const ConnectionType = require('../../utils/ConnectionType');
|
6
|
-
|
7
|
-
let Transmitter
|
8
|
-
let Receiver
|
9
|
-
|
10
|
-
class Interpreter {
|
11
|
-
handler = new Handler()
|
12
|
-
|
13
|
-
async executeAsync(command, connectionData) {
|
14
|
-
try {
|
15
|
-
const messageByteArray = new CommandSerializer().serialize(command, connectionData)
|
16
|
-
|
17
|
-
if (connectionData.connectionType === ConnectionType.WEB_SOCKET) {
|
18
|
-
const { WebSocketClient } = require("../webSocketClient/WebSocketClient");
|
19
|
-
const wsClient = new WebSocketClient(connectionData.hostname, null)
|
20
|
-
|
21
|
-
const responseByteArray = await wsClient.send(messageByteArray)
|
22
|
-
if (!responseByteArray) {
|
23
|
-
// TODO: handle error exception log?
|
24
|
-
return []
|
25
|
-
}
|
26
|
-
return new CommandDeserializer(responseByteArray).deserialize()
|
27
|
-
}
|
28
|
-
else {
|
29
|
-
return this.execute(command, connectionData)
|
30
|
-
}
|
31
|
-
} catch (error) {
|
32
|
-
// TODO: handle error exception log?
|
33
|
-
}
|
34
|
-
}
|
35
|
-
|
36
|
-
execute(command, connectionData) {
|
37
|
-
try {
|
38
|
-
let messageByteArray = new CommandSerializer().serialize(command, connectionData)
|
39
|
-
let responseByteArray
|
40
|
-
|
41
|
-
if (command.runtimeName === Runtime.Nodejs && connectionData.connectionType === ConnectionType.IN_MEMORY)
|
42
|
-
{
|
43
|
-
// lazy receiver loading
|
44
|
-
if (!Receiver) {
|
45
|
-
Receiver = require('../receiver/Receiver')
|
46
|
-
}
|
47
|
-
responseByteArray = Receiver.sendCommand(messageByteArray)
|
48
|
-
|
49
|
-
}
|
50
|
-
else {
|
51
|
-
// lazy transmitter loading
|
52
|
-
if (!Transmitter) {
|
53
|
-
Transmitter = require('../transmitter/Transmitter')
|
54
|
-
}
|
55
|
-
responseByteArray = Transmitter.sendCommand(messageByteArray)
|
56
|
-
}
|
57
|
-
return new CommandDeserializer(responseByteArray).deserialize()
|
58
|
-
} catch (error) {
|
59
|
-
// TODO: handle error exception log?
|
60
|
-
}
|
61
|
-
}
|
62
|
-
|
63
|
-
process(messageByteArray) {
|
64
|
-
let receivedCommand = new CommandDeserializer(messageByteArray).deserialize()
|
65
|
-
return this.handler.handleCommand(receivedCommand)
|
66
|
-
}
|
67
|
-
}
|
68
|
-
|
69
|
-
module.exports = Interpreter
|
@@ -1,26 +0,0 @@
|
|
1
|
-
const Interpreter = require('../interpreter/Interpreter')
|
2
|
-
const CommandSerializer = require("../protocol/CommandSerializer");
|
3
|
-
const InMemoryConnectionData = require("../../utils/connectionData/InMemoryConnectionData");
|
4
|
-
const RuntimeLogger = require("../../utils/RuntimeLogger");
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
class Receiver {
|
9
|
-
|
10
|
-
static connectionData = new InMemoryConnectionData();
|
11
|
-
Receiver() {
|
12
|
-
RuntimeLogger.printRuntimeInfo()
|
13
|
-
}
|
14
|
-
|
15
|
-
static sendCommand(messageByteArray) {
|
16
|
-
return new CommandSerializer().serialize(new Interpreter().process(messageByteArray), this.connectionData)
|
17
|
-
}
|
18
|
-
static heartBeat(messageByteArray) {
|
19
|
-
let response = new Int8Array(2)
|
20
|
-
response[0] = messageByteArray[11]
|
21
|
-
response[1] = messageByteArray[12]-2
|
22
|
-
return response
|
23
|
-
}
|
24
|
-
}
|
25
|
-
|
26
|
-
module.exports = Receiver
|
@@ -1,28 +0,0 @@
|
|
1
|
-
let library;
|
2
|
-
|
3
|
-
class TransmitterWrapper {
|
4
|
-
static initialize() {
|
5
|
-
if (process.platform === "win32")
|
6
|
-
library = require(`${require('path').resolve(__dirname, '../../../')}/build/Release/JavonetNodejsRuntimeAddon.node`)
|
7
|
-
else if (process.platform === "darwin")
|
8
|
-
library = require(`${require('path').resolve(__dirname, '../../../')}/build/Release/JavonetNodejsRuntimeAddon.node`)
|
9
|
-
else
|
10
|
-
library = require(`${require('path').resolve(__dirname, '../../../')}/build/Release/JavonetNodejsRuntimeAddon.node`)
|
11
|
-
let binariesRootPath = String(`${require('path').resolve(__dirname, '../../../')}`)
|
12
|
-
return library.initializeTransmitter(binariesRootPath)
|
13
|
-
}
|
14
|
-
|
15
|
-
static activate(licenseKey) {
|
16
|
-
return library.activate(licenseKey)
|
17
|
-
}
|
18
|
-
|
19
|
-
static sendCommand(messageArray) {
|
20
|
-
return library.sendCommand(messageArray)
|
21
|
-
}
|
22
|
-
|
23
|
-
static setConfigSource(configSource) {
|
24
|
-
return library.setConfigSource(configSource)
|
25
|
-
}
|
26
|
-
}
|
27
|
-
|
28
|
-
module.exports = TransmitterWrapper
|