javonet-ruby-sdk 2.5.15 → 2.5.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Jvm/JavonetJvmRuntime.jar +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Linux/ARM64/libJavonetActivationService.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/libJavonetActivationService.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/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/libJavonetActivationService.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/libUtils.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/JavonetPhpRuntimeNative.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/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/JavonetPhpRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X64/JavonetPython2RuntimeNative.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/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/JavonetPhpRuntimeNative.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/JavonetPython2RuntimeNative.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/Utils.dll +0 -0
- data/lib/javonet-ruby-sdk/Binaries/Native/Windows/X86/version.txt +1 -1
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/delegatesCache/DelegatesCache.cjs +59 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/AbstractHandler.cjs +62 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/ArrayGetItemHandler.cjs +61 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/ArrayGetRankHandler.cjs +52 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/ArrayGetSizeHandler.cjs +52 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/ArrayHandler.cjs +41 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/ArraySetItemHandler.cjs +62 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/CastingHandler.cjs +34 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/ConvertTypeHandler.cjs +53 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/CreateClassInstanceHandler.cjs +62 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/DestructReferenceHandler.cjs +42 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/EnableNamespaceHandler.cjs +56 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/EnableTypeHandler.cjs +58 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/GetGlobalStaticFieldHandler.cjs +62 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/GetInstanceFieldHandler.cjs +61 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/GetInstanceMethodAsDelegateHandler.cjs +83 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/GetStaticFieldHandler.cjs +61 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/GetStaticMethodAsDelegateHandler.cjs +85 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/GetTypeHandler.cjs +87 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/Handler.cjs +136 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/InvokeDelegateHandler.cjs +53 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/InvokeGlobalFunctionHandler.cjs +62 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/InvokeInstanceMethodHandler.cjs +64 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/InvokeStaticMethodHandler.cjs +64 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/LoadLibraryHandler.cjs +71 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/PassDelegateHandler.cjs +164 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/ResolveReferenceHandler.cjs +41 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/SetGlobalStaticFieldHandler.cjs +63 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/SetInstanceFieldHandler.cjs +61 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/SetStaticFieldHandler.cjs +59 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/handler/ValueHandler.cjs +37 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/interpreter/Interpreter.cjs +163 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/namespaceCache/NamespaceCache.cjs +61 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/protocol/CommandDeserializer.cjs +188 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/protocol/CommandSerializer.cjs +64 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/protocol/TypeDeserializer.cjs +91 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/protocol/TypeSerializer.cjs +153 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/receiver/Receiver.cjs +65 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/receiver/ReceiverNative.cjs +37 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/referenceCache/ReferencesCache.cjs +65 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/transmitter/Transmitter.cjs +44 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/transmitter/TransmitterWebsocket.cjs +55 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/transmitter/TransmitterWebsocketBrowser.cjs +59 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/transmitter/TransmitterWrapper.cjs +75 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/typeCache/TypeCache.cjs +61 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/webSocketClient/WebSocketClient.cjs +150 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/core/webSocketClient/WebSocketClientBrowser.cjs +153 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/ConfigRuntimeFactory.cjs +209 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/InvocationContext.cjs +495 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/Javonet.cjs +150 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/RuntimeContext.cjs +304 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/RuntimeFactory.cjs +98 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/tools/browser/ConfigSourceResolver.cjs +153 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/tools/browser/SdkExceptionHelper.cjs +37 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/tools/nodejs/JsonFileResolver.cjs +120 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/sdk/tools/nodejs/SdkExceptionHelper.cjs +100 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/delegatesCache/DelegatesCache.d.ts +21 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/AbstractHandler.d.ts +7 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/ArrayGetItemHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/ArrayGetRankHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/ArrayGetSizeHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/ArrayHandler.d.ts +4 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/ArraySetItemHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/CastingHandler.d.ts +3 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/ConvertTypeHandler.d.ts +22 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/CreateClassInstanceHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/DestructReferenceHandler.d.ts +4 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/EnableNamespaceHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/EnableTypeHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/GetGlobalStaticFieldHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/GetInstanceFieldHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/GetInstanceMethodAsDelegateHandler.d.ts +38 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/GetStaticFieldHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/GetStaticMethodAsDelegateHandler.d.ts +36 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/GetTypeHandler.d.ts +16 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/Handler.d.ts +27 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/InvokeDelegateHandler.d.ts +15 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/InvokeGlobalFunctionHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/InvokeInstanceMethodHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/InvokeStaticMethodHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/LoadLibraryHandler.d.ts +7 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/PassDelegateHandler.d.ts +104 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/ResolveReferenceHandler.d.ts +12 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/SetGlobalStaticFieldHandler.d.ts +4 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/SetInstanceFieldHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/SetStaticFieldHandler.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/handler/ValueHandler.d.ts +4 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/interpreter/Interpreter.d.ts +27 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/namespaceCache/NamespaceCache.d.ts +9 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/protocol/CommandDeserializer.d.ts +25 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/protocol/CommandSerializer.d.ts +4 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/protocol/TypeDeserializer.d.ts +15 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/protocol/TypeSerializer.d.ts +17 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/receiver/Receiver.d.ts +14 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/receiver/ReceiverNative.d.ts +4 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/referenceCache/ReferencesCache.d.ts +24 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/transmitter/Transmitter.d.ts +6 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/transmitter/TransmitterWebsocket.d.ts +21 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/transmitter/TransmitterWebsocketBrowser.d.ts +30 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/transmitter/TransmitterWrapper.d.ts +11 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/typeCache/TypeCache.d.ts +9 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/webSocketClient/WebSocketClient.d.ts +50 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/core/webSocketClient/WebSocketClientBrowser.d.ts +63 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{lib/sdk/ConfigRuntimeFactory.js → dist/types/sdk/ConfigRuntimeFactory.d.ts} +19 -101
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/InvocationContext.d.ts +207 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{lib/sdk/Javonet.js → dist/types/sdk/Javonet.d.ts} +17 -59
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/RuntimeContext.d.ts +103 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/{lib/sdk/RuntimeFactory.js → dist/types/sdk/RuntimeFactory.d.ts} +12 -41
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/tools/browser/ConfigSourceResolver.d.ts +46 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/tools/browser/SdkExceptionHelper.d.ts +7 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/tools/nodejs/JsonFileResolver.d.ts +13 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/tools/nodejs/SdkExceptionHelper.d.ts +6 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/Command.d.ts +42 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/CommandType.d.ts +44 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/ConnectionType.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/CustomError.d.ts +3 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/ExceptionType.d.ts +10 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/Runtime.d.ts +24 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/RuntimeLogger.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/RuntimeLoggerBrowser.d.ts +15 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/RuntimeName.d.ts +13 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/RuntimeNameHandler.d.ts +7 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/StringEncodingMode.d.ts +6 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/Type.d.ts +14 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/connectionData/IConnectionData.d.ts +5 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/connectionData/InMemoryConnectionData.d.ts +16 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/connectionData/WsConnectionData.d.ts +31 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/exception/ExceptionSerializer.d.ts +6 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/exception/ExceptionThrower.d.ts +4 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/guid/generateGuid.d.ts +1 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/nodejs/TypesConverter.d.ts +48 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/nodejs/connectionData/TcpConnectionData.d.ts +25 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/nodejs/uuid/REGEX.d.ts +1 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/nodejs/uuid/rng.d.ts +1 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/nodejs/uuid/stringify.d.ts +1 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/nodejs/uuid/v4.d.ts +1 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/utils/nodejs/uuid/validate.d.ts +1 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/Command.cjs +87 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/CommandType.cjs +74 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/ConnectionType.cjs +35 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/CustomError.cjs +33 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/ExceptionType.cjs +40 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/Runtime.cjs +103 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/RuntimeLogger.cjs +63 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/RuntimeLoggerBrowser.cjs +58 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/RuntimeName.cjs +43 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/RuntimeNameHandler.cjs +62 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/StringEncodingMode.cjs +36 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/Type.cjs +44 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/connectionData/IConnectionData.cjs +38 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/connectionData/InMemoryConnectionData.cjs +52 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/connectionData/WsConnectionData.cjs +61 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/exception/ExceptionSerializer.cjs +82 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/exception/ExceptionThrower.cjs +111 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/guid/generateGuid.cjs +34 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/nodejs/TypesConverter.cjs +102 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/nodejs/connectionData/TcpConnectionData.cjs +111 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/nodejs/uuid/REGEX.cjs +28 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/nodejs/uuid/rng.cjs +47 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/nodejs/uuid/stringify.cjs +39 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/nodejs/uuid/v4.cjs +43 -0
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/utils/nodejs/uuid/validate.cjs +31 -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/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 +26 -26
- data/lib/javonet-ruby-sdk/Binaries/version.txt +1 -1
- metadata +164 -79
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/index.js +0 -66
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/delegatesCache/DelegatesCache.js +0 -35
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/AbstractHandler.js +0 -41
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/ArrayGetItemHandler.js +0 -38
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/ArrayGetRankHandler.js +0 -28
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/ArrayGetSizeHandler.js +0 -29
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/ArrayHandler.js +0 -18
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/ArraySetItemHandler.js +0 -43
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/CastingHandler.js +0 -10
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/ConvertTypeHandler.js +0 -38
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/CreateClassInstanceHandler.js +0 -36
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/DestructReferenceHandler.js +0 -19
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/EnableNamespaceHandler.js +0 -34
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/EnableTypeHandler.js +0 -35
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/GetGlobalStaticFieldHandler.js +0 -37
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/GetInstanceFieldHandler.js +0 -35
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/GetInstanceMethodAsDelegateHandler.js +0 -73
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/GetStaticFieldHandler.js +0 -36
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/GetStaticMethodAsDelegateHandler.js +0 -74
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/GetTypeHandler.js +0 -63
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/Handler.js +0 -98
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/InvokeDelegateHandler.js +0 -36
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/InvokeGlobalFunctionHandler.js +0 -39
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/InvokeInstanceMethodHandler.js +0 -38
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/InvokeStaticMethodHandler.js +0 -38
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/LoadLibraryHandler.js +0 -48
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/PassDelegateHandler.js +0 -157
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/ResolveReferenceHandler.js +0 -13
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/SetGlobalStaticFieldHandler.js +0 -38
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/SetInstanceFieldHandler.js +0 -35
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/SetStaticFieldHandler.js +0 -33
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/handler/ValueHandler.js +0 -13
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/interpreter/Interpreter.js +0 -142
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/namespaceCache/NamespaceCache.js +0 -39
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/protocol/CommandDeserializer.js +0 -181
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/protocol/CommandSerializer.js +0 -50
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/protocol/TypeDeserializer.js +0 -83
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/protocol/TypeSerializer.js +0 -143
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/receiver/Receiver.js +0 -32
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/receiver/ReceiverNative.js +0 -13
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/referenceCache/ReferencesCache.js +0 -30
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/transmitter/Transmitter.js +0 -21
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/transmitter/TransmitterWebsocket.js +0 -33
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/transmitter/TransmitterWrapper.js +0 -47
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/typeCache/TypeCache.js +0 -39
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/webSocketClient/WebSocketClient.js +0 -136
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/declarations.d.ts +0 -64
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/sdk/InvocationContext.js +0 -485
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/sdk/RuntimeContext.js +0 -300
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/sdk/tools/JsonFileResolver.js +0 -101
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/sdk/tools/SdkExceptionHelper.js +0 -79
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/Command.js +0 -69
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/CommandType.js +0 -47
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/ConnectionType.js +0 -8
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/CustomError.js +0 -8
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/ExceptionType.js +0 -13
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/RuntimeLogger.js +0 -30
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/RuntimeName.js +0 -16
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/RuntimeNameHandler.js +0 -38
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/StringEncodingMode.js +0 -9
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/Type.js +0 -17
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/TypesConverter.js +0 -91
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/connectionData/IConnectionData.js +0 -15
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/connectionData/InMemoryConnectionData.js +0 -35
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/connectionData/TcpConnectionData.js +0 -77
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/connectionData/WsConnectionData.js +0 -50
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/exception/ExceptionSerializer.js +0 -64
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/exception/ExceptionThrower.js +0 -95
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/guid/generateGuid.js +0 -9
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/uuid/REGEX.js +0 -2
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/uuid/rng.js +0 -12
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/uuid/stringify.js +0 -51
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/uuid/v4.js +0 -27
- data/lib/javonet-ruby-sdk/Binaries/Nodejs/lib/utils/uuid/validate.js +0 -6
@@ -0,0 +1,207 @@
|
|
1
|
+
/**
|
2
|
+
* InvocationContext is a class that represents a context for invoking commands.
|
3
|
+
* It implements several interfaces for different types of interactions.
|
4
|
+
* This class is used to construct chains of invocations, representing expressions of interaction that have not yet been executed.
|
5
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/invocation-context)
|
6
|
+
* @class
|
7
|
+
*/
|
8
|
+
export class InvocationContext {
|
9
|
+
constructor(runtimeName: any, connectionData: any, command: any, isExecuted?: boolean);
|
10
|
+
get_current_command(): any;
|
11
|
+
/**
|
12
|
+
* Executes the current command.
|
13
|
+
* Because invocation context is building the intent of executing particular expression on target environment, we call the initial state of invocation context as non-materialized.
|
14
|
+
* The non-materialized context wraps either single command or chain of recursively nested commands.
|
15
|
+
* Commands are becoming nested through each invocation of methods on Invocation Context.
|
16
|
+
* Each invocation triggers the creation of new Invocation Context instance wrapping the current command with new parent command valid for invoked method.
|
17
|
+
* Developer can decide on any moment of the materialization for the context taking full control of the chunks of the expression being transferred and processed on target runtime.
|
18
|
+
* @returns {InvocationContext} the InvocationContext after executing the command.
|
19
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/execute-method)
|
20
|
+
* @method
|
21
|
+
*/
|
22
|
+
execute(): InvocationContext;
|
23
|
+
/**
|
24
|
+
* Invokes a static method on the target runtime.
|
25
|
+
* @param {string} methodName - The name of the method to invoke.
|
26
|
+
* @param {...any} args - Method arguments.
|
27
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to invoke the static method.
|
28
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/calling-methods/invoking-static-method)
|
29
|
+
* @method
|
30
|
+
*/
|
31
|
+
invokeStaticMethod(methodName: string, ...args: any[]): InvocationContext;
|
32
|
+
/**
|
33
|
+
* Retrieves the value of a static field from the target runtime.
|
34
|
+
* @param {string} fieldName - The name of the field to get.
|
35
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to get the static field.
|
36
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/fields-and-properties/getting-and-setting-values-for-static-fields-and-properties)
|
37
|
+
* @method
|
38
|
+
*/
|
39
|
+
getStaticField(fieldName: string): InvocationContext;
|
40
|
+
/**
|
41
|
+
* Sets the value of a static field in the target runtime.
|
42
|
+
* @param {string} fieldName - The name of the field to set.
|
43
|
+
* @param {any} value - The new value of the field.
|
44
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to set the static field.
|
45
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/fields-and-properties/getting-and-setting-values-for-static-fields-and-properties)
|
46
|
+
* @method
|
47
|
+
*/
|
48
|
+
setStaticField(fieldName: string, value: any): InvocationContext;
|
49
|
+
/**
|
50
|
+
* Creates a new instance of a class in the target runtime.
|
51
|
+
* @param {...any} args - The arguments to pass to the class constructor
|
52
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to create the instance.
|
53
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/calling-methods/creating-instance-and-calling-instance-methods)
|
54
|
+
* @method
|
55
|
+
*/
|
56
|
+
createInstance(...args: any[]): InvocationContext;
|
57
|
+
/**
|
58
|
+
* Retrieves the value of an instance field from the target runtime.
|
59
|
+
* @param {string} fieldName - The name of the field to get.
|
60
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to get the instance field.
|
61
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/fields-and-properties/getting-and-setting-values-for-instance-fields-and-properties)
|
62
|
+
* @method
|
63
|
+
*/
|
64
|
+
getInstanceField(fieldName: string): InvocationContext;
|
65
|
+
/**
|
66
|
+
* Sets the value of an instance field in the target runtime.
|
67
|
+
* @param {string} fieldName - The name of the field to set.
|
68
|
+
* @param {any} value - The new value of the field.
|
69
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to set the instance field.
|
70
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/fields-and-properties/getting-and-setting-values-for-instance-fields-and-properties)
|
71
|
+
* @method
|
72
|
+
*/
|
73
|
+
setInstanceField(fieldName: string, value: any): InvocationContext;
|
74
|
+
/**
|
75
|
+
* Invokes an instance method on the target runtime.
|
76
|
+
* @param {string} methodName - The name of the method to invoke.
|
77
|
+
* @param {...any} args - Method arguments.
|
78
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to invoke the instance method.
|
79
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/calling-methods/invoking-instance-method)
|
80
|
+
* @method
|
81
|
+
*/
|
82
|
+
invokeInstanceMethod(methodName: string, ...args: any[]): InvocationContext;
|
83
|
+
/**
|
84
|
+
* Retrieves the value at a specific index in an array from the target runtime.
|
85
|
+
* @param {...any} indexes - the arguments to pass to the array getter. The first argument should be the index.
|
86
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to get the index.
|
87
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/arrays-and-collections/one-dimensional-arrays)
|
88
|
+
* @method
|
89
|
+
*/
|
90
|
+
getIndex(...indexes: any[]): InvocationContext;
|
91
|
+
/**
|
92
|
+
* Sets the value at a specific index in an array in the target runtime.
|
93
|
+
* @param {number[]} indexes - The index to set the value at.
|
94
|
+
* @param {any} value - The value to set at the index.
|
95
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to set the index.
|
96
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/arrays-and-collections/one-dimensional-arrays)
|
97
|
+
* @method
|
98
|
+
*/
|
99
|
+
setIndex(indexes: number[], value: any): InvocationContext;
|
100
|
+
/**
|
101
|
+
* Retrieves the size of an array from the target runtime.
|
102
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to get the size.
|
103
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/arrays-and-collections/one-dimensional-arrays)
|
104
|
+
* @method
|
105
|
+
*/
|
106
|
+
getSize(): InvocationContext;
|
107
|
+
/**
|
108
|
+
* Retrieves the rank of an array from the target runtime.
|
109
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to get the rank.
|
110
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/arrays-and-collections/one-dimensional-arrays)
|
111
|
+
* @method
|
112
|
+
*/
|
113
|
+
getRank(): InvocationContext;
|
114
|
+
/**
|
115
|
+
* Invokes a generic static method on the target runtime.
|
116
|
+
* @param {string} methodName - The name of the method to invoke.
|
117
|
+
* @param {...any} args - Method arguments.
|
118
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to invoke the generic static method.
|
119
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/generics/calling-generic-static-method)
|
120
|
+
* @method
|
121
|
+
*/
|
122
|
+
invokeGenericStaticMethod(methodName: string, ...args: any[]): InvocationContext;
|
123
|
+
/**
|
124
|
+
* Invokes a generic method on the target runtime.
|
125
|
+
* @param {string} methodName - The name of the method to invoke.
|
126
|
+
* @param {...any} args - Method arguments.
|
127
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to invoke the generic method.
|
128
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/generics/calling-generic-instance-method)
|
129
|
+
* @method
|
130
|
+
*/
|
131
|
+
invokeGenericMethod(methodName: string, ...args: any[]): InvocationContext;
|
132
|
+
/**
|
133
|
+
* Retrieves the name of an enum from the target runtime.
|
134
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to get the enum name.
|
135
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/enums/using-enum-type)
|
136
|
+
* @method
|
137
|
+
*/
|
138
|
+
getEnumName(): InvocationContext;
|
139
|
+
/**
|
140
|
+
* Retrieves the value of an enum from the target runtime.
|
141
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to get the enum value.
|
142
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/enums/using-enum-type)
|
143
|
+
* @method
|
144
|
+
*/
|
145
|
+
getEnumValue(): InvocationContext;
|
146
|
+
/**
|
147
|
+
* Retrieves the value of a reference from the target runtime.
|
148
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to get the ref value.
|
149
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/methods-arguments/passing-arguments-by-reference-with-ref-keyword)
|
150
|
+
* @method
|
151
|
+
*/
|
152
|
+
getRefValue(): InvocationContext;
|
153
|
+
/**
|
154
|
+
* Creates a null object of a specific type on the target runtime.
|
155
|
+
*
|
156
|
+
* @returns {InvocationContext} An InvocationContext instance with the command to create a null object.
|
157
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/null-handling/create-null-object)
|
158
|
+
* @method
|
159
|
+
*/
|
160
|
+
createNull(): InvocationContext;
|
161
|
+
/**
|
162
|
+
* Creates a null object of a specific type on the target runtime.
|
163
|
+
* @param {string} methodName - The name of the method to invoke.
|
164
|
+
* @param {...any} args - Method arguments.
|
165
|
+
* @returns {InvocationContext} An InvocationContext instance with the command to create a null object.
|
166
|
+
* TODO: connect documentation page url
|
167
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/)
|
168
|
+
* @method
|
169
|
+
*/
|
170
|
+
getStaticMethodAsDelegate(methodName: string, ...args: any[]): InvocationContext;
|
171
|
+
/**
|
172
|
+
* Creates a null object of a specific type on the target runtime.
|
173
|
+
* @param {string} methodName - The name of the method to invoke.
|
174
|
+
* @param {...any} args - Method arguments.
|
175
|
+
* @returns {InvocationContext} An InvocationContext instance with the command to create a null object.
|
176
|
+
* TODO: connect documentation page url
|
177
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/)
|
178
|
+
* @method
|
179
|
+
*/
|
180
|
+
getInstanceMethodAsDelegate(methodName: string, ...args: any[]): InvocationContext;
|
181
|
+
/**
|
182
|
+
* Retrieves an array from the target runtime.
|
183
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to retrieve the array.
|
184
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/arrays-and-collections/retrieve-array)
|
185
|
+
* @method
|
186
|
+
*/
|
187
|
+
retrieveArray(): InvocationContext;
|
188
|
+
/**
|
189
|
+
* Returns the primitive value from the target runtime. This could be any primitive type in JavaScript,
|
190
|
+
* such as int, boolean, byte, char, long, double, float, etc.
|
191
|
+
* @returns {Command} The value of the current command.
|
192
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/execute-method)
|
193
|
+
* @method
|
194
|
+
*/
|
195
|
+
getValue(): Command;
|
196
|
+
[Symbol.iterator]: () => {
|
197
|
+
next: () => {
|
198
|
+
value: any;
|
199
|
+
done: boolean;
|
200
|
+
};
|
201
|
+
};
|
202
|
+
#private;
|
203
|
+
}
|
204
|
+
export class InvocationWsContext extends InvocationContext {
|
205
|
+
#private;
|
206
|
+
}
|
207
|
+
import { Command } from '../utils/Command.js';
|
data/lib/javonet-ruby-sdk/Binaries/Nodejs/{lib/sdk/Javonet.js → dist/types/sdk/Javonet.d.ts}
RENAMED
@@ -1,105 +1,63 @@
|
|
1
|
-
const { RuntimeFactory, InMemoryConnectionData, WsConnectionData } = require('../..')
|
2
|
-
|
3
|
-
const Transmitter = require('../core/transmitter/Transmitter')
|
4
|
-
const ConfigRuntimeFactory = require('./ConfigRuntimeFactory')
|
5
|
-
const RuntimeLogger = require('../utils/RuntimeLogger')
|
6
|
-
const TcpConnectionData = require('../utils/connectionData/TcpConnectionData')
|
7
|
-
const { mkdirSync } = require('node:fs')
|
8
|
-
|
9
1
|
/**
|
10
2
|
* The Javonet class is a singleton class that serves as the entry point for interacting with Javonet.
|
11
3
|
* It provides methods to activate and initialize the Javonet SDK.
|
12
4
|
* It supports both in-memory and TCP connections.
|
13
5
|
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/javonet-static-class)
|
14
6
|
*/
|
15
|
-
class Javonet {
|
16
|
-
// Static block to initialize the Transmitter
|
17
|
-
static {
|
18
|
-
//SDKExceptionHelper.sendExceptionToAppInsights("SdkMessage", "Javonet SDK initialized");
|
19
|
-
}
|
20
|
-
|
7
|
+
export class Javonet {
|
21
8
|
/**
|
22
9
|
* Initializes Javonet using an in-memory channel on the same machine.
|
23
10
|
* @returns {RuntimeFactory} A RuntimeFactory instance configured for an in-memory connection.
|
24
11
|
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/in-memory-channel)
|
25
12
|
*/
|
26
|
-
static inMemory()
|
27
|
-
return new RuntimeFactory(new InMemoryConnectionData())
|
28
|
-
}
|
29
|
-
|
13
|
+
static inMemory(): RuntimeFactory;
|
30
14
|
/**
|
31
15
|
* Initializes Javonet with a TCP connection to a remote machine.
|
32
16
|
* @param {TcpConnectionData} tcpConnectionData - The tcp connection data of the remote machine.
|
33
17
|
* @returns {RuntimeFactory} A RuntimeFactory instance configured for a TCP connection.
|
34
18
|
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/tcp-channel)
|
35
19
|
*/
|
36
|
-
static tcp(tcpConnectionData)
|
37
|
-
return new RuntimeFactory(tcpConnectionData)
|
38
|
-
}
|
39
|
-
|
20
|
+
static tcp(tcpConnectionData: TcpConnectionData): RuntimeFactory;
|
40
21
|
/**
|
41
22
|
* Initializes Javonet with a WebSocket connection to a remote machine.
|
42
23
|
* @param {WsConnectionData} wsConnectionData - The WebSocket connection data of the remote machine.
|
43
24
|
* @returns {RuntimeFactory} A RuntimeFactory instance configured for a WebSocket connection.
|
44
25
|
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/websocket-channel)
|
45
26
|
*/
|
46
|
-
static webSocket(wsConnectionData)
|
47
|
-
return new RuntimeFactory(wsConnectionData)
|
48
|
-
}
|
49
|
-
|
27
|
+
static webSocket(wsConnectionData: WsConnectionData): RuntimeFactory;
|
50
28
|
/**
|
51
29
|
* Initializes Javonet with a custom configuration file taken from external source.
|
52
30
|
* Currentyl supported: Configuration file in JSON format
|
53
|
-
* @param
|
31
|
+
* @param config - Path to a configuration file.
|
54
32
|
* @returns {ConfigRuntimeFactory} A ConfigRuntimeFactory instance with configuration data.
|
55
33
|
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/configure-channel)
|
56
34
|
*/
|
57
|
-
static withConfig(
|
58
|
-
return new ConfigRuntimeFactory(configPath)
|
59
|
-
}
|
60
|
-
|
35
|
+
static withConfig(config: any): ConfigRuntimeFactory;
|
61
36
|
/**
|
62
37
|
* Activates Javonet with the provided license key.
|
63
38
|
* @param {string} licenseKey - The license key to activate Javonet.
|
64
39
|
* @returns {number} The activation status code.
|
65
40
|
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/getting-started/activating-javonet)
|
66
41
|
*/
|
67
|
-
static activate(licenseKey)
|
68
|
-
|
69
|
-
}
|
70
|
-
|
71
|
-
static getRuntimeInfo() {
|
72
|
-
return RuntimeLogger.getRuntimeInfo()
|
73
|
-
}
|
74
|
-
|
42
|
+
static activate(licenseKey: string): number;
|
43
|
+
static getRuntimeInfo(): string;
|
75
44
|
/**
|
76
45
|
* Sets the configuration source for the Javonet SDK.
|
77
46
|
*
|
78
47
|
* @param {string} configSource - The configuration source.
|
79
48
|
*/
|
80
|
-
static setConfigSource(configSource)
|
81
|
-
Transmitter.setConfigSource(configSource)
|
82
|
-
}
|
83
|
-
|
49
|
+
static setConfigSource(configSource: string): any;
|
84
50
|
/**
|
85
51
|
* Sets the working directory for the Javonet SDK.
|
86
52
|
*
|
87
53
|
* @param {string} path - The working directory.
|
88
54
|
*/
|
89
|
-
static setJavonetWorkingDirectory(path)
|
90
|
-
path = path.replace(/\\/g, "/");
|
91
|
-
if (!path.endsWith("/")) {
|
92
|
-
path += "/";
|
93
|
-
}
|
94
|
-
|
95
|
-
mkdirSync(path, { recursive: true, mode: 0o700 });
|
96
|
-
Transmitter.setJavonetWorkingDirectory(path)
|
97
|
-
}
|
98
|
-
|
99
|
-
}
|
100
|
-
|
101
|
-
module.exports = {
|
102
|
-
Javonet,
|
103
|
-
TcpConnectionData,
|
104
|
-
WsConnectionData,
|
55
|
+
static setJavonetWorkingDirectory(path: string): void;
|
105
56
|
}
|
57
|
+
import { TcpConnectionData } from '../utils/nodejs/connectionData/TcpConnectionData.js';
|
58
|
+
import { WsConnectionData } from '../utils/connectionData/WsConnectionData.js';
|
59
|
+
import { CommandSerializer } from '../core/protocol/CommandSerializer.js';
|
60
|
+
import { CommandDeserializer } from '../core/protocol/CommandDeserializer.js';
|
61
|
+
import { RuntimeFactory } from './RuntimeFactory.js';
|
62
|
+
import { ConfigRuntimeFactory } from './ConfigRuntimeFactory.js';
|
63
|
+
export { TcpConnectionData, WsConnectionData, CommandSerializer, CommandDeserializer };
|
@@ -0,0 +1,103 @@
|
|
1
|
+
/**
|
2
|
+
* Represents a single context which allows interaction with a selected technology.
|
3
|
+
* Refers to a single instance of the called runtime within a particular target OS process.
|
4
|
+
* This can be either the local currently running process (inMemory) or a particular remote process identified by the IP Address and PORT of the target Javonet instance.
|
5
|
+
* Multiple Runtime Contexts can be initialized within one process.
|
6
|
+
* Calling the same technology on inMemory communication channel will return the existing instance of runtime context.
|
7
|
+
* Calling the same technology on TCP channel but on different nodes will result in unique Runtime Contexts.
|
8
|
+
* Within the runtime context, any number of libraries can be loaded and any objects from the target technology can be interacted with, as they are aware of each other due to sharing the same memory space and same runtime instance.
|
9
|
+
* @see [Javonet Guides]{@link https://www.javonet.com/guides/v2/javascript/foundations/runtime-context}
|
10
|
+
* @class
|
11
|
+
*/
|
12
|
+
export class RuntimeContext {
|
13
|
+
static memoryRuntimeContexts: Map<any, any>;
|
14
|
+
static networkRuntimeContexts: Map<any, any>;
|
15
|
+
static webSocketRuntimeContexts: Map<any, any>;
|
16
|
+
static getInstance(runtimeName: any, connectionData: any): any;
|
17
|
+
constructor(runtimeName: any, connectionData: any);
|
18
|
+
runtimeName: any;
|
19
|
+
connectionData: any;
|
20
|
+
/**
|
21
|
+
* Executes the current command. The initial state of RuntimeContext is non-materialized,
|
22
|
+
* wrapping either a single command or a chain of recursively nested commands.
|
23
|
+
* Commands become nested through each invocation of methods on RuntimeContext.
|
24
|
+
* Each invocation triggers the creation of a new RuntimeContext instance wrapping the current command with a new parent command.
|
25
|
+
* The developer can decide at any moment of the materialization for the context, taking full control of the chunks of the expression being transferred and processed on the target runtime.
|
26
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/execute-method)
|
27
|
+
* @method
|
28
|
+
*/
|
29
|
+
execute(): void;
|
30
|
+
/**
|
31
|
+
* Adds a reference to a library. Javonet allows you to reference and use modules or packages written in various languages.
|
32
|
+
* This method allows you to use any library from all supported technologies. The necessary libraries need to be referenced.
|
33
|
+
* The argument is a relative or full path to the library. If the library has dependencies on other libraries, the latter needs to be added first.
|
34
|
+
* After referencing the library, any objects stored in this package can be used. Use static classes, create instances, call methods, use fields and properties, and much more.
|
35
|
+
* @param {string} libraryPath - The relative or full path to the library.
|
36
|
+
* @returns {RuntimeContext} RuntimeContext instance.
|
37
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/getting-started/adding-references-to-libraries)
|
38
|
+
* @method
|
39
|
+
*/
|
40
|
+
loadLibrary(libraryPath: string): RuntimeContext;
|
41
|
+
/**
|
42
|
+
* Retrieves a reference to a specific type. The type can be a class, interface or enum. The type can be retrieved from any referenced library.
|
43
|
+
* @param {string} typeName - The full name of the type.
|
44
|
+
* @param {...any} args - The arguments to be passed, if needed
|
45
|
+
* @returns {InvocationContext} InvocationContext instance, that wraps the command to get the type.
|
46
|
+
* @method
|
47
|
+
*/
|
48
|
+
getType(typeName: string, ...args: any[]): InvocationContext;
|
49
|
+
/**
|
50
|
+
* Casts the provided value to a specific type. This method is used when invoking methods that require specific types of arguments.
|
51
|
+
* The arguments include the target type and the value to be cast. The target type must be retrieved from the called runtime using the getType method.
|
52
|
+
* After casting the value, it can be used as an argument when invoking methods.
|
53
|
+
* @param {...any} args - The target type and the value to be cast.
|
54
|
+
* @returns {InvocationContext} InvocationContext instance that wraps the command to cast the value.
|
55
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/casting/casting)
|
56
|
+
* @method
|
57
|
+
*/
|
58
|
+
cast(...args: any[]): InvocationContext;
|
59
|
+
/**
|
60
|
+
* Retrieves a specific item from an enum type. This method is used when working with enums from the called runtime.
|
61
|
+
* The arguments include the enum type and the name of the item. The enum type must be retrieved from the called runtime using the getType method.
|
62
|
+
* After retrieving the item, it can be used as an argument when invoking methods or for other operations.
|
63
|
+
* @param {...any} args - The enum type and the name of the item.
|
64
|
+
* @returns {InvocationContext} InvocationContext instance that wraps the command to get the enum item.
|
65
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/enums/using-enum-type)
|
66
|
+
* @method
|
67
|
+
*/
|
68
|
+
getEnumItem(...args: any[]): InvocationContext;
|
69
|
+
/**
|
70
|
+
* Creates a reference type argument that can be passed to a method with a ref parameter modifier. This method is used when working with methods from the called runtime that require arguments to be passed by reference.
|
71
|
+
* The arguments include the value and optionally the type of the reference. The type must be retrieved from the called runtime using the getType method.
|
72
|
+
* After creating the reference, it can be used as an argument when invoking methods.
|
73
|
+
* @param {...any} args - The value and optionally the type of the reference.
|
74
|
+
* @returns {InvocationContext} InvocationContext instance that wraps the command to create a reference as ref.
|
75
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/methods-arguments/passing-arguments-by-reference-with-ref-keyword)
|
76
|
+
* @method
|
77
|
+
*/
|
78
|
+
asRef(...args: any[]): InvocationContext;
|
79
|
+
/**
|
80
|
+
* Creates a reference type argument that can be passed to a method with an out parameter modifier. This method is used when working with methods from the called runtime that require arguments to be passed by reference.
|
81
|
+
* The arguments include the value and optionally the type of the reference. The type must be retrieved from the called runtime using the getType method.
|
82
|
+
* After creating the reference, it can be used as an argument when invoking methods.
|
83
|
+
* @param {...any} args - The value and optionally the type of the reference.
|
84
|
+
* @returns {InvocationContext} InvocationContext instance that wraps the command to create a reference as out.
|
85
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/methods-arguments/passing-arguments-by-reference-with-out-keyword |Passing Arguments by Reference with out Keyword Guide)
|
86
|
+
* @method
|
87
|
+
*/
|
88
|
+
asOut(...args: any[]): InvocationContext;
|
89
|
+
/**
|
90
|
+
* Invokes a function from the called runtime. This method is used when working with functions from the called runtime.
|
91
|
+
* The arguments include the function name and the arguments to be passed to the function.
|
92
|
+
* After invoking the function, the result can be used for further operations.
|
93
|
+
* @param {string} functionName - The name of the function to invoke.
|
94
|
+
* @param {...any} args - The arguments to be passed to the function.
|
95
|
+
* @returns {InvocationContext} InvocationContext instance that wraps the command to invoke the function.
|
96
|
+
* @see [Invoking Functions Guide](https://www.javonet.com/guides/v2/csharp/functions/invoking-functions)
|
97
|
+
* @method
|
98
|
+
*/
|
99
|
+
invokeGlobalFunction(functionName: string, ...args: any[]): InvocationContext;
|
100
|
+
healthCheck(): void;
|
101
|
+
#private;
|
102
|
+
}
|
103
|
+
import { InvocationContext } from './InvocationContext.js';
|
@@ -1,87 +1,58 @@
|
|
1
|
-
const Runtime = require('../utils/RuntimeName')
|
2
|
-
const RuntimeContext = require('./RuntimeContext')
|
3
|
-
|
4
1
|
/**
|
5
2
|
* The RuntimeFactory class provides methods for creating runtime contexts.
|
6
3
|
* Each method corresponds to a specific runtime (CLR, JVM, .NET Core, Perl, Ruby, Node.js, Python) and returns a RuntimeContext instance for that runtime.
|
7
4
|
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
8
5
|
*/
|
9
|
-
class RuntimeFactory {
|
10
|
-
constructor(connectionData)
|
11
|
-
|
12
|
-
}
|
13
|
-
|
6
|
+
export class RuntimeFactory {
|
7
|
+
constructor(connectionData: any);
|
8
|
+
connectionData: any;
|
14
9
|
/**
|
15
10
|
* Creates RuntimeContext instance to interact with the .NET Framework runtime.
|
16
11
|
* @return {RuntimeContext} a RuntimeContext instance for the .NET Framework runtime
|
17
12
|
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
18
13
|
*/
|
19
|
-
clr()
|
20
|
-
return RuntimeContext.getInstance(Runtime.Clr, this.connectionData)
|
21
|
-
}
|
22
|
-
|
14
|
+
clr(): RuntimeContext;
|
23
15
|
/**
|
24
16
|
* Creates RuntimeContext instance to interact with the JVM runtime.
|
25
17
|
* @return {RuntimeContext} a RuntimeContext instance for the JVM runtime
|
26
18
|
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
27
19
|
*/
|
28
|
-
jvm()
|
29
|
-
return RuntimeContext.getInstance(Runtime.Jvm, this.connectionData)
|
30
|
-
}
|
31
|
-
|
20
|
+
jvm(): RuntimeContext;
|
32
21
|
/**
|
33
22
|
* Creates RuntimeContext instance to interact with the .NET runtime.
|
34
23
|
* @return {RuntimeContext} a RuntimeContext instance for the .NET runtime
|
35
24
|
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
36
25
|
*/
|
37
|
-
netcore()
|
38
|
-
return RuntimeContext.getInstance(Runtime.Netcore, this.connectionData)
|
39
|
-
}
|
40
|
-
|
26
|
+
netcore(): RuntimeContext;
|
41
27
|
/**
|
42
28
|
* Creates RuntimeContext instance to interact with the Perl runtime.
|
43
29
|
* @return {RuntimeContext} a RuntimeContext instance for the Perl runtime
|
44
30
|
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
45
31
|
*/
|
46
|
-
perl()
|
47
|
-
return RuntimeContext.getInstance(Runtime.Perl, this.connectionData)
|
48
|
-
}
|
49
|
-
|
32
|
+
perl(): RuntimeContext;
|
50
33
|
/**
|
51
34
|
* Creates RuntimeContext instance to interact with the Python runtime.
|
52
35
|
* @return {RuntimeContext} a RuntimeContext instance for the Python runtime
|
53
36
|
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
54
37
|
*/
|
55
|
-
python()
|
56
|
-
return RuntimeContext.getInstance(Runtime.Python, this.connectionData)
|
57
|
-
}
|
58
|
-
|
38
|
+
python(): RuntimeContext;
|
59
39
|
/**
|
60
40
|
* Creates RuntimeContext instance to interact with the Ruby runtime.
|
61
41
|
* @return {RuntimeContext} a RuntimeContext instance for the Ruby runtime
|
62
42
|
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
63
43
|
*/
|
64
|
-
ruby()
|
65
|
-
return RuntimeContext.getInstance(Runtime.Ruby, this.connectionData)
|
66
|
-
}
|
67
|
-
|
44
|
+
ruby(): RuntimeContext;
|
68
45
|
/**
|
69
46
|
* Creates RuntimeContext instance to interact with Node.js runtime.
|
70
47
|
* @return {RuntimeContext} a RuntimeContext instance for the Node.js runtime
|
71
48
|
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
72
49
|
*/
|
73
|
-
nodejs()
|
74
|
-
return RuntimeContext.getInstance(Runtime.Nodejs, this.connectionData)
|
75
|
-
}
|
76
|
-
|
50
|
+
nodejs(): RuntimeContext;
|
77
51
|
/**
|
78
52
|
* Creates RuntimeContext instance to interact with the Python runtime.
|
79
53
|
* @return {RuntimeContext} a RuntimeContext instance for the Python runtime
|
80
54
|
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
81
55
|
*/
|
82
|
-
python27()
|
83
|
-
return RuntimeContext.getInstance(Runtime.Python27, this.connectionData)
|
84
|
-
}
|
56
|
+
python27(): RuntimeContext;
|
85
57
|
}
|
86
|
-
|
87
|
-
module.exports = RuntimeFactory
|
58
|
+
import { RuntimeContext } from './RuntimeContext.js';
|
data/lib/javonet-ruby-sdk/Binaries/Nodejs/dist/types/sdk/tools/browser/ConfigSourceResolver.d.ts
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
export class ConfigSourceResolver {
|
2
|
+
/**
|
3
|
+
*
|
4
|
+
* @param {object | string} configSource
|
5
|
+
*/
|
6
|
+
constructor(configSource: object | string);
|
7
|
+
jsonObject: any;
|
8
|
+
getLicenseKey(): any;
|
9
|
+
getRuntimes(): any;
|
10
|
+
/**
|
11
|
+
* @param {string} runtimeName
|
12
|
+
* @param {string} configName
|
13
|
+
* @returns {any}
|
14
|
+
*/
|
15
|
+
getRuntime(runtimeName: string, configName: string): any;
|
16
|
+
/**
|
17
|
+
* @param {string} runtimeName
|
18
|
+
* @param {string} configName
|
19
|
+
* @returns {any}
|
20
|
+
*/
|
21
|
+
getChannel(runtimeName: string, configName: string): any;
|
22
|
+
/**
|
23
|
+
* @param {string} runtimeName
|
24
|
+
* @param {string} configName
|
25
|
+
* @returns {any}
|
26
|
+
*/
|
27
|
+
getChannelType(runtimeName: string, configName: string): any;
|
28
|
+
/**
|
29
|
+
* @param {string} runtimeName
|
30
|
+
* @param {string} configName
|
31
|
+
* @returns {any}
|
32
|
+
*/
|
33
|
+
getChannelHost(runtimeName: string, configName: string): any;
|
34
|
+
/**
|
35
|
+
* @param {string} runtimeName
|
36
|
+
* @param {string} configName
|
37
|
+
* @returns {any}
|
38
|
+
*/
|
39
|
+
getChannelPort(runtimeName: string, configName: string): any;
|
40
|
+
/**
|
41
|
+
* @param {string} runtimeName
|
42
|
+
* @param {string} configName
|
43
|
+
* @returns {any}
|
44
|
+
*/
|
45
|
+
getModules(runtimeName: string, configName: string): any;
|
46
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export class JsonFileResolver {
|
2
|
+
constructor(path: any);
|
3
|
+
path: any;
|
4
|
+
jsonObject: any;
|
5
|
+
getLicenseKey(): any;
|
6
|
+
getRuntimes(): any;
|
7
|
+
getRuntime(runtimeName: any, configName: any): any;
|
8
|
+
getChannel(runtimeName: any, configName: any): any;
|
9
|
+
getChannelType(runtimeName: any, configName: any): any;
|
10
|
+
getChannelHost(runtimeName: any, configName: any): any;
|
11
|
+
getChannelPort(runtimeName: any, configName: any): any;
|
12
|
+
getModules(runtimeName: any, configName: any): any;
|
13
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
export class Command {
|
2
|
+
/**
|
3
|
+
* @param {any} [response]
|
4
|
+
* @param {number} runtimeName
|
5
|
+
*/
|
6
|
+
static createResponse(response?: any, runtimeName: number): Command;
|
7
|
+
/**
|
8
|
+
* @param {any} [response]
|
9
|
+
* @param {number} runtimeName
|
10
|
+
* @method
|
11
|
+
*/
|
12
|
+
static createReference(response?: any, runtimeName: number): Command;
|
13
|
+
/**
|
14
|
+
* @param {any} [response]
|
15
|
+
* @param {number} runtimeName
|
16
|
+
* @returns {Command}
|
17
|
+
* @method
|
18
|
+
*/
|
19
|
+
static createArrayResponse(response?: any, runtimeName: number): Command;
|
20
|
+
/**
|
21
|
+
* Constructs a new Command instance.
|
22
|
+
* @param {number} runtimeName - The runtime name associated with the command.
|
23
|
+
* @param {number} commandType - The type of the command.
|
24
|
+
* @param {any} [payload] - The optional payload of the command.
|
25
|
+
* @method
|
26
|
+
*/
|
27
|
+
constructor(runtimeName: number, commandType: number, payload?: any);
|
28
|
+
runtimeName: number;
|
29
|
+
commandType: number;
|
30
|
+
payload: any;
|
31
|
+
dropFirstPayloadArg(): Command;
|
32
|
+
/**
|
33
|
+
* @param {any} arg
|
34
|
+
* @returns {Command}
|
35
|
+
*/
|
36
|
+
addArgToPayload(arg: any): Command;
|
37
|
+
/**
|
38
|
+
* @param {Command|null} current_command
|
39
|
+
* @returns {Command}
|
40
|
+
*/
|
41
|
+
prependArgToPayload(current_command: Command | null): Command;
|
42
|
+
}
|