javonet-nodejs-sdk 2.5.7 → 2.5.9
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.
- package/Binaries/Clr/Javonet.Clr.Utils.dll +0 -0
- package/Binaries/Clr/JavonetClrRuntime.dll +0 -0
- package/Binaries/Jvm/JavonetJvmRuntime.jar +0 -0
- package/Binaries/Native/Linux/ARM64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
- package/Binaries/Native/Linux/ARM64/NetVersionLatest.runtimeconfig.json +2 -2
- package/Binaries/Native/Linux/ARM64/libJavonetActivationService.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetCppRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetGoRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetJvmRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetNetcoreRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetPythonRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetRuby278RuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetRubyRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetTcpClient.so +0 -0
- package/Binaries/Native/Linux/ARM64/libJavonetTcpTlsClient.so +0 -0
- package/Binaries/Native/Linux/ARM64/libUtils.so +0 -0
- package/Binaries/Native/Linux/ARM64/version.txt +1 -1
- package/Binaries/Native/Linux/X64/NativeUtilsUnitTests.xml +30 -18
- package/Binaries/Native/Linux/X64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
- package/Binaries/Native/Linux/X64/NetVersionLatest.runtimeconfig.json +2 -2
- package/Binaries/Native/Linux/X64/libJavonetActivationService.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetCppRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetGoRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetJvmRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetNetcoreRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetNodejs1816RuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetNodejsRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetPerlRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetPythonRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetRuby278RuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetRubyRuntimeNative.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetTcpClient.so +0 -0
- package/Binaries/Native/Linux/X64/libJavonetTcpTlsClient.so +0 -0
- package/Binaries/Native/Linux/X64/libUtils.so +0 -0
- package/Binaries/Native/Linux/X64/openssl3/libJavonetActivationService.so +0 -0
- package/Binaries/Native/Linux/X64/openssl3/libJavonetTcpTlsClient.so +0 -0
- package/Binaries/Native/Linux/X64/openssl3/libUtils.so +0 -0
- package/Binaries/Native/Linux/X64/version.txt +1 -1
- package/Binaries/Native/MacOs/X64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
- package/Binaries/Native/MacOs/X64/NetVersionLatest.runtimeconfig.json +2 -2
- package/Binaries/Native/MacOs/X64/libJavonetActivationService.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetCppRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetGoRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetJvmRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetNetcoreRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetNodejs1816RuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetNodejsRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetPerlRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetPythonRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetRuby278RuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetRubyRuntimeNative.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetTcpClient.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libJavonetTcpTlsClient.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libUtils.dylib +0 -0
- package/Binaries/Native/MacOs/X64/libpython3.11.dylib +0 -0
- package/Binaries/Native/MacOs/X64/version.txt +1 -1
- package/Binaries/Native/Windows/ARM64/JavonetActivationService.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetCppRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetGoRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetJvmRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetNetcoreRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetPythonRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetRuby278RuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetRubyRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetTcpClient.dll +0 -0
- package/Binaries/Native/Windows/ARM64/JavonetTcpTlsClient.dll +0 -0
- package/Binaries/Native/Windows/ARM64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
- package/Binaries/Native/Windows/ARM64/NetVersionLatest.runtimeconfig.json +2 -2
- package/Binaries/Native/Windows/ARM64/Utils.dll +0 -0
- package/Binaries/Native/Windows/ARM64/version.txt +0 -0
- package/Binaries/Native/Windows/X64/JavonetActivationService.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetClrRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetCppRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetGoRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetJvmRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetNetcoreRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetNodejs1816RuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetNodejsRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetPerlRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetPerlRuntimeNativeAuxiliary.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetPythonRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetRuby278RuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetRubyRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetTcpClient.dll +0 -0
- package/Binaries/Native/Windows/X64/JavonetTcpTlsClient.dll +0 -0
- package/Binaries/Native/Windows/X64/NetVersion90LatestPatch.runtimeconfig.json +10 -0
- package/Binaries/Native/Windows/X64/NetVersionLatest.runtimeconfig.json +2 -2
- package/Binaries/Native/Windows/X64/Utils.dll +0 -0
- package/Binaries/Native/Windows/X64/version.txt +1 -1
- package/Binaries/Native/Windows/X86/JavonetActivationService.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetClrRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetCppRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetGoRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetJvmRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetNetcoreRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetPythonRuntimeNative.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetTcpClient.dll +0 -0
- package/Binaries/Native/Windows/X86/JavonetTcpTlsClient.dll +0 -0
- package/Binaries/Native/Windows/X86/NetVersion90LatestPatch.runtimeconfig.json +10 -0
- package/Binaries/Native/Windows/X86/NetVersionLatest.runtimeconfig.json +2 -2
- package/Binaries/Native/Windows/X86/Utils.dll +0 -0
- package/Binaries/Native/Windows/X86/version.txt +1 -1
- package/Binaries/Netcore/Javonet.Netcore.Core.dll +0 -0
- package/Binaries/Netcore/Javonet.Netcore.Utils.dll +0 -0
- package/Binaries/Nodejs/index.js +64 -0
- package/Binaries/Nodejs/{core → lib/core}/generator/handler/AbstractGeneratorHandler.js +0 -1
- package/Binaries/Nodejs/lib/core/generator/handler/CreateInstanceGeneratorHandler.js +27 -0
- package/Binaries/Nodejs/lib/core/generator/handler/GeneratorHandler.js +38 -0
- package/Binaries/Nodejs/lib/core/generator/handler/GetInstanceFieldGeneratorHandler.js +26 -0
- package/Binaries/Nodejs/lib/core/generator/handler/GetStaticFieldGeneratorHandler.js +24 -0
- package/Binaries/Nodejs/lib/core/generator/handler/GetTypeGeneratorHandler.js +39 -0
- package/Binaries/Nodejs/lib/core/generator/handler/Handlers.js +58 -0
- package/Binaries/Nodejs/lib/core/generator/handler/InvokeInstanceMethodGeneratorHandler.js +33 -0
- package/Binaries/Nodejs/lib/core/generator/handler/InvokeStandaloneMethodGeneratorHandler.js +35 -0
- package/Binaries/Nodejs/lib/core/generator/handler/InvokeStaticMethodGeneratorHandler.js +35 -0
- package/Binaries/Nodejs/lib/core/generator/handler/shared/SharedArgumentNameHandler.js +15 -0
- package/Binaries/Nodejs/{core → lib/core}/generator/handler/shared/SharedClassInstanceHandler.js +4 -5
- package/Binaries/Nodejs/{core → lib/core}/generator/handler/shared/SharedClassNameHandler.js +10 -12
- package/Binaries/Nodejs/{core → lib/core}/generator/handler/shared/SharedMethodNameHandler.js +9 -12
- package/Binaries/Nodejs/lib/core/generator/handler/shared/SharedReturnTypeHandler.js +9 -0
- package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedBodyHandler.js +18 -0
- package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js +29 -0
- package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler.js +21 -0
- package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.js +31 -0
- package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js +21 -0
- package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler.js +33 -0
- package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedInvokeStandaloneMethodBodyHandler.js +39 -0
- package/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler.js +39 -0
- package/Binaries/Nodejs/lib/core/generator/internal/CommonGenerator.js +39 -0
- package/Binaries/Nodejs/lib/core/generator/internal/NodejsStringBuilder.js +17 -0
- package/Binaries/Nodejs/{core → lib/core}/generator/internal/SharedHandlerType.js +2 -2
- package/Binaries/Nodejs/{core → lib/core}/generator/utils/StringUtils.js +2 -2
- package/Binaries/Nodejs/{core → lib/core}/handler/AbstractHandler.js +12 -12
- package/Binaries/Nodejs/{core → lib/core}/handler/ArrayGetItemHandler.js +3 -4
- package/Binaries/Nodejs/{core → lib/core}/handler/ArrayGetRankHandler.js +5 -7
- package/Binaries/Nodejs/{core → lib/core}/handler/ArrayGetSizeHandler.js +3 -4
- package/Binaries/Nodejs/{core → lib/core}/handler/ArrayHandler.js +2 -3
- package/Binaries/Nodejs/{core → lib/core}/handler/ArraySetItemHandler.js +4 -5
- package/Binaries/Nodejs/{core → lib/core}/handler/CastingHandler.js +3 -3
- package/Binaries/Nodejs/lib/core/handler/CreateClassInstanceHandler.js +36 -0
- package/Binaries/Nodejs/{core → lib/core}/handler/DestructReferenceHandler.js +3 -4
- package/Binaries/Nodejs/{core → lib/core}/handler/EnableNamespaceHandler.js +8 -11
- package/Binaries/Nodejs/{core → lib/core}/handler/EnableTypeHandler.js +8 -10
- package/Binaries/Nodejs/lib/core/handler/GetGlobalStaticFieldHandler.js +37 -0
- package/Binaries/Nodejs/lib/core/handler/GetInstanceFieldHandler.js +35 -0
- package/Binaries/Nodejs/lib/core/handler/GetStaticFieldHandler.js +36 -0
- package/Binaries/Nodejs/lib/core/handler/GetTypeHandler.js +63 -0
- package/Binaries/Nodejs/{core → lib/core}/handler/Handler.js +12 -11
- package/Binaries/Nodejs/lib/core/handler/InvokeGlobalMethodHandler.js +43 -0
- package/Binaries/Nodejs/lib/core/handler/InvokeInstanceMethodHandler.js +38 -0
- package/Binaries/Nodejs/lib/core/handler/InvokeStandaloneMethodHandler.js +56 -0
- package/Binaries/Nodejs/lib/core/handler/InvokeStaticMethodHandler.js +38 -0
- package/Binaries/Nodejs/{core → lib/core}/handler/LoadLibraryHandler.js +9 -2
- package/Binaries/Nodejs/lib/core/handler/ResolveReferenceHandler.js +13 -0
- package/Binaries/Nodejs/lib/core/handler/SetGlobalStaticFieldHandler.js +38 -0
- package/Binaries/Nodejs/lib/core/handler/SetInstanceFieldHandler.js +35 -0
- package/Binaries/Nodejs/lib/core/handler/SetStaticFieldHandler.js +33 -0
- package/Binaries/Nodejs/{core → lib/core}/handler/ValueHandler.js +3 -5
- package/Binaries/Nodejs/lib/core/interpreter/Interpreter.js +142 -0
- package/Binaries/Nodejs/{core → lib/core}/namespaceCache/NamespaceCache.js +12 -12
- package/Binaries/Nodejs/{core → lib/core}/protocol/CommandDeserializer.js +43 -48
- package/Binaries/Nodejs/{core → lib/core}/protocol/CommandSerializer.js +4 -5
- package/Binaries/Nodejs/{core → lib/core}/protocol/TypeDeserializer.js +17 -15
- package/Binaries/Nodejs/{core → lib/core}/protocol/TypeSerializer.js +6 -7
- package/Binaries/Nodejs/lib/core/receiver/Receiver.js +32 -0
- package/Binaries/Nodejs/{core → lib/core}/receiver/ReceiverNative.js +3 -3
- package/Binaries/Nodejs/{core → lib/core}/referenceCache/ReferencesCache.js +4 -4
- package/Binaries/Nodejs/{core → lib/core}/transmitter/Transmitter.js +2 -3
- package/Binaries/Nodejs/lib/core/transmitter/TransmitterWebsocket.js +33 -0
- package/Binaries/Nodejs/lib/core/transmitter/TransmitterWrapper.js +34 -0
- package/Binaries/Nodejs/{core → lib/core}/typeCache/TypeCache.js +12 -12
- package/Binaries/Nodejs/lib/core/webSocketClient/WebSocketClient.js +131 -0
- package/Binaries/Nodejs/lib/declarations.d.ts +64 -0
- package/Binaries/Nodejs/lib/sdk/ConfigRuntimeFactory.js +145 -0
- package/{lib → Binaries/Nodejs/lib}/sdk/InvocationContext.js +454 -522
- package/Binaries/Nodejs/lib/sdk/Javonet.js +89 -0
- package/Binaries/Nodejs/lib/sdk/RuntimeContext.js +266 -0
- package/Binaries/Nodejs/lib/sdk/RuntimeFactory.js +78 -0
- package/Binaries/Nodejs/lib/sdk/tools/JsonFileResolver.js +101 -0
- package/Binaries/Nodejs/lib/sdk/tools/SdkExceptionHelper.js +79 -0
- package/Binaries/Nodejs/lib/utils/Command.js +69 -0
- package/Binaries/Nodejs/{utils → lib/utils}/CommandType.js +6 -2
- package/Binaries/Nodejs/lib/utils/ConnectionType.js +8 -0
- package/Binaries/Nodejs/{utils → lib/utils}/ExceptionType.js +6 -3
- package/Binaries/Nodejs/lib/utils/RuntimeLogger.js +30 -0
- package/Binaries/Nodejs/{utils → lib/utils}/RuntimeName.js +6 -3
- package/Binaries/Nodejs/lib/utils/RuntimeNameHandler.js +34 -0
- package/Binaries/Nodejs/lib/utils/StringEncodingMode.js +9 -0
- package/Binaries/Nodejs/{utils → lib/utils}/Type.js +5 -2
- package/Binaries/Nodejs/{utils → lib/utils}/connectionData/IConnectionData.js +4 -6
- package/Binaries/Nodejs/lib/utils/connectionData/InMemoryConnectionData.js +35 -0
- package/Binaries/Nodejs/lib/utils/connectionData/TcpConnectionData.js +77 -0
- package/Binaries/Nodejs/lib/utils/connectionData/WsConnectionData.js +50 -0
- package/Binaries/Nodejs/{utils → lib/utils}/exception/ExceptionSerializer.js +24 -31
- package/{lib → Binaries/Nodejs/lib}/utils/exception/ExceptionThrower.js +95 -89
- package/Binaries/Nodejs/lib/utils/uuid/REGEX.js +2 -0
- package/Binaries/Nodejs/lib/utils/uuid/rng.js +12 -0
- package/Binaries/Nodejs/lib/utils/uuid/stringify.js +51 -0
- package/Binaries/Nodejs/lib/utils/uuid/v4.js +27 -0
- package/Binaries/Nodejs/lib/utils/uuid/validate.js +6 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Attribute-Util-1.07/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Capture-Tiny-0.48/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Class-Load-0.25/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Class-Load-XS-0.10/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Clone-0.47/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Data-Cmp-0.010/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Data-OptList-0.114/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Data-UUID-1.227/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Devel-GlobalDestruction-0.14/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Devel-OverloadInfo-0.007/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Devel-StackTrace-2.05/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Dist-CheckConflicts-0.11/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Eval-Closure-0.14/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/ExtUtils-Config-0.010/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/ExtUtils-Helpers-0.028/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/ExtUtils-InstallPaths-0.014/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/FFI-CheckLib-0.31/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/FFI-Platypus-2.09/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/File-Which-1.27/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/IPC-System-Simple-1.30/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/MRO-Compat-0.15/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Build-0.4234/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Build-Tiny-0.051/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Implementation-0.09/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Runtime-0.016/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Module-Runtime-Conflicts-0.003/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Moose-2.2207/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Nice-Try-v1.3.15/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/PPI-1.279/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/PPI-XS-0.910/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Package-DeprecationManager-0.18/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Package-Stash-0.40/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Package-Stash-XS-0.30/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Params-Util-1.102/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Path-Tiny-0.146/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Scalar-List-Utils-1.68/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Scalar-Util-Numeric-0.40/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Scope-Guard-0.21/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Sub-Exporter-0.991/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Sub-Exporter-Progressive-0.001013/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Sub-Install-0.929/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Task-Weaken-1.06/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Test-Fatal-0.017/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Try-Tiny-0.32/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/Want-0.29/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/aliased-0.34/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/.meta/autobox-v3.0.2/install.json +1 -1
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Class/Load/XS/XS.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Data/UUID/UUID.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/FFI/Platypus/Platypus.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/List/Util/Util.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Moose/Moose.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/PPI/XS/XS.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Package/Stash/XS/XS.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Params/Util/Util.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Want/Want.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/perllocal.pod +90 -90
- package/Binaries/Perl/Linux/X64/lib/Javonet/Core/Receiver/Receiver.pm +5 -6
- package/Binaries/Perl/Linux/X64/lib/Javonet/Javonet.pm +10 -0
- package/Binaries/Perl/Linux/X64/lib/Javonet/Sdk/Core/RuntimeLogger.pm +2 -2
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Attribute-Util-1.07/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Data-Cmp-0.010/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Data-UUID-1.227/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Nice-Try-v1.3.15/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/PPI-1.279/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/PPI-XS-0.910/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Scalar-Util-Numeric-0.40/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Test-Fatal-0.017/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/Want-0.29/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/.meta/autobox-v3.0.2/install.json +1 -1
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Data/UUID/UUID.xs.dll +0 -0
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/PPI/XS/XS.xs.dll +0 -0
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Scalar/Util/Numeric/Numeric.xs.dll +0 -0
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/Want/Want.xs.dll +0 -0
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/auto/autobox/autobox.xs.dll +0 -0
- package/Binaries/Perl/Windows/X64/deps/lib/perl5/MSWin32-x64-multi-thread/perllocal.pod +19 -19
- package/Binaries/Perl/Windows/X64/lib/Javonet/Core/Receiver/Receiver.pm +5 -6
- package/Binaries/Perl/Windows/X64/lib/Javonet/Javonet.pm +10 -0
- package/Binaries/Perl/Windows/X64/lib/Javonet/Sdk/Core/RuntimeLogger.pm +2 -2
- package/Binaries/Python/javonet/core/handler/GetInstanceFieldHandler.py +1 -1
- package/Binaries/Python/javonet/core/handler/GetTypeHandler.py +7 -4
- package/Binaries/Python/javonet/core/receiver/Receiver.py +3 -4
- package/Binaries/Python/javonet/utils/RuntimeLogger.py +1 -1
- package/Binaries/Ruby/Linux/X64/core/handler/get_instance_field_handler.rb +3 -3
- package/Binaries/Ruby/Linux/X64/core/handler/get_static_field_handler.rb +2 -2
- package/Binaries/Ruby/Linux/X64/core/handler/get_type_handler.rb +29 -18
- package/Binaries/Ruby/Linux/X64/core/handler/load_library_handler.rb +8 -0
- package/Binaries/Ruby/Linux/X64/core/handler/set_instance_field_handler.rb +7 -3
- package/Binaries/Ruby/Linux/X64/core/handler/set_static_field_handler.rb +2 -2
- package/Binaries/Ruby/MacOs/X64/core/handler/get_instance_field_handler.rb +3 -3
- package/Binaries/Ruby/MacOs/X64/core/handler/get_static_field_handler.rb +2 -2
- package/Binaries/Ruby/MacOs/X64/core/handler/get_type_handler.rb +29 -18
- package/Binaries/Ruby/MacOs/X64/core/handler/load_library_handler.rb +8 -0
- package/Binaries/Ruby/MacOs/X64/core/handler/set_instance_field_handler.rb +7 -3
- package/Binaries/Ruby/MacOs/X64/core/handler/set_static_field_handler.rb +2 -2
- package/Binaries/Ruby/Windows/X64/core/handler/get_instance_field_handler.rb +3 -3
- package/Binaries/Ruby/Windows/X64/core/handler/get_static_field_handler.rb +2 -2
- package/Binaries/Ruby/Windows/X64/core/handler/get_type_handler.rb +29 -18
- package/Binaries/Ruby/Windows/X64/core/handler/load_library_handler.rb +8 -0
- package/Binaries/Ruby/Windows/X64/core/handler/set_instance_field_handler.rb +7 -3
- package/Binaries/Ruby/Windows/X64/core/handler/set_static_field_handler.rb +2 -2
- package/Binaries/version.txt +1 -1
- package/README.md +1 -1
- package/dist/Javonet.d.ts +4368 -0
- package/dist/index.js +64 -0
- package/dist/lib/core/generator/handler/AbstractGeneratorHandler.js +11 -0
- package/dist/lib/core/generator/handler/CreateInstanceGeneratorHandler.js +27 -0
- package/dist/lib/core/generator/handler/GeneratorHandler.js +38 -0
- package/dist/lib/core/generator/handler/GetInstanceFieldGeneratorHandler.js +26 -0
- package/dist/lib/core/generator/handler/GetStaticFieldGeneratorHandler.js +24 -0
- package/dist/lib/core/generator/handler/GetTypeGeneratorHandler.js +39 -0
- package/dist/lib/core/generator/handler/Handlers.js +58 -0
- package/dist/lib/core/generator/handler/InvokeInstanceMethodGeneratorHandler.js +33 -0
- package/dist/lib/core/generator/handler/InvokeStandaloneMethodGeneratorHandler.js +35 -0
- package/dist/lib/core/generator/handler/InvokeStaticMethodGeneratorHandler.js +35 -0
- package/dist/lib/core/generator/handler/shared/SharedArgumentNameHandler.js +15 -0
- package/dist/lib/core/generator/handler/shared/SharedClassInstanceHandler.js +12 -0
- package/dist/lib/core/generator/handler/shared/SharedClassNameHandler.js +44 -0
- package/dist/lib/core/generator/handler/shared/SharedMethodNameHandler.js +42 -0
- package/dist/lib/core/generator/handler/shared/SharedReturnTypeHandler.js +9 -0
- package/dist/lib/core/generator/handler/shared/body/SharedBodyHandler.js +18 -0
- package/dist/lib/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js +29 -0
- package/dist/lib/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler.js +21 -0
- package/dist/lib/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.js +31 -0
- package/dist/lib/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js +21 -0
- package/dist/lib/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler.js +33 -0
- package/dist/lib/core/generator/handler/shared/body/SharedInvokeStandaloneMethodBodyHandler.js +39 -0
- package/dist/lib/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler.js +39 -0
- package/dist/lib/core/generator/internal/CommonGenerator.js +39 -0
- package/dist/lib/core/generator/internal/NodejsStringBuilder.js +17 -0
- package/dist/lib/core/generator/internal/SharedHandlerType.js +10 -0
- package/dist/lib/core/generator/utils/StringUtils.js +7 -0
- package/dist/lib/core/handler/AbstractHandler.js +41 -0
- package/dist/lib/core/handler/ArrayGetItemHandler.js +38 -0
- package/dist/lib/core/handler/ArrayGetRankHandler.js +28 -0
- package/dist/lib/core/handler/ArrayGetSizeHandler.js +29 -0
- package/dist/lib/core/handler/ArrayHandler.js +18 -0
- package/dist/lib/core/handler/ArraySetItemHandler.js +43 -0
- package/dist/lib/core/handler/CastingHandler.js +10 -0
- package/dist/lib/core/handler/CreateClassInstanceHandler.js +36 -0
- package/dist/lib/core/handler/DestructReferenceHandler.js +19 -0
- package/dist/lib/core/handler/EnableNamespaceHandler.js +34 -0
- package/dist/lib/core/handler/EnableTypeHandler.js +35 -0
- package/dist/lib/core/handler/GetGlobalStaticFieldHandler.js +37 -0
- package/dist/lib/core/handler/GetInstanceFieldHandler.js +35 -0
- package/dist/lib/core/handler/GetStaticFieldHandler.js +36 -0
- package/dist/lib/core/handler/GetTypeHandler.js +63 -0
- package/dist/lib/core/handler/Handler.js +91 -0
- package/dist/lib/core/handler/InvokeGlobalMethodHandler.js +43 -0
- package/dist/lib/core/handler/InvokeInstanceMethodHandler.js +38 -0
- package/dist/lib/core/handler/InvokeStandaloneMethodHandler.js +56 -0
- package/dist/lib/core/handler/InvokeStaticMethodHandler.js +38 -0
- package/dist/lib/core/handler/LoadLibraryHandler.js +48 -0
- package/dist/lib/core/handler/ResolveReferenceHandler.js +13 -0
- package/dist/lib/core/handler/SetGlobalStaticFieldHandler.js +38 -0
- package/dist/lib/core/handler/SetInstanceFieldHandler.js +35 -0
- package/dist/lib/core/handler/SetStaticFieldHandler.js +33 -0
- package/dist/lib/core/handler/ValueHandler.js +13 -0
- package/dist/lib/core/interpreter/Interpreter.js +142 -0
- package/dist/lib/core/namespaceCache/NamespaceCache.js +39 -0
- package/{lib → dist/lib}/core/protocol/CommandDeserializer.js +43 -48
- package/{lib → dist/lib}/core/protocol/CommandSerializer.js +4 -5
- package/{lib → dist/lib}/core/protocol/TypeDeserializer.js +17 -15
- package/{lib → dist/lib}/core/protocol/TypeSerializer.js +6 -7
- package/dist/lib/core/receiver/Receiver.js +32 -0
- package/dist/lib/core/receiver/ReceiverNative.js +13 -0
- package/dist/lib/core/referenceCache/ReferencesCache.js +30 -0
- package/dist/lib/core/transmitter/Transmitter.js +21 -0
- package/dist/lib/core/transmitter/TransmitterWebsocket.js +33 -0
- package/dist/lib/core/transmitter/TransmitterWrapper.js +34 -0
- package/dist/lib/core/typeCache/TypeCache.js +39 -0
- package/dist/lib/core/webSocketClient/WebSocketClient.js +131 -0
- package/dist/lib/declarations.d.ts +64 -0
- package/dist/lib/sdk/ConfigRuntimeFactory.js +145 -0
- package/dist/lib/sdk/InvocationContext.js +454 -0
- package/dist/lib/sdk/Javonet.js +89 -0
- package/dist/lib/sdk/RuntimeContext.js +266 -0
- package/dist/lib/sdk/RuntimeFactory.js +78 -0
- package/dist/lib/sdk/tools/JsonFileResolver.js +101 -0
- package/dist/lib/sdk/tools/SdkExceptionHelper.js +79 -0
- package/dist/lib/utils/Command.js +69 -0
- package/{lib → dist/lib}/utils/CommandType.js +6 -2
- package/dist/lib/utils/ConnectionType.js +8 -0
- package/{lib → dist/lib}/utils/ExceptionType.js +6 -3
- package/dist/lib/utils/RuntimeLogger.js +30 -0
- package/dist/lib/utils/RuntimeName.js +14 -0
- package/dist/lib/utils/RuntimeNameHandler.js +34 -0
- package/dist/lib/utils/StringEncodingMode.js +9 -0
- package/{lib → dist/lib}/utils/Type.js +5 -2
- package/{lib → dist/lib}/utils/connectionData/IConnectionData.js +4 -6
- package/dist/lib/utils/connectionData/InMemoryConnectionData.js +35 -0
- package/dist/lib/utils/connectionData/TcpConnectionData.js +77 -0
- package/dist/lib/utils/connectionData/WsConnectionData.js +50 -0
- package/{lib → dist/lib}/utils/exception/ExceptionSerializer.js +24 -31
- package/{Binaries/Nodejs → dist/lib}/utils/exception/ExceptionThrower.js +95 -89
- package/dist/lib/utils/uuid/REGEX.js +2 -0
- package/dist/lib/utils/uuid/rng.js +12 -0
- package/dist/lib/utils/uuid/stringify.js +51 -0
- package/dist/lib/utils/uuid/v4.js +27 -0
- package/dist/lib/utils/uuid/validate.js +6 -0
- package/lib/core/generator/handler/AbstractGeneratorHandler.js +0 -1
- package/lib/core/generator/handler/CreateInstanceGeneratorHandler.js +20 -10
- package/lib/core/generator/handler/GeneratorHandler.js +22 -14
- package/lib/core/generator/handler/GetInstanceFieldGeneratorHandler.js +19 -11
- package/lib/core/generator/handler/GetStaticFieldGeneratorHandler.js +18 -11
- package/lib/core/generator/handler/GetTypeGeneratorHandler.js +25 -12
- package/lib/core/generator/handler/Handlers.js +32 -25
- package/lib/core/generator/handler/InvokeInstanceMethodGeneratorHandler.js +26 -11
- package/lib/core/generator/handler/InvokeStandaloneMethodGeneratorHandler.js +35 -0
- package/lib/core/generator/handler/InvokeStaticMethodGeneratorHandler.js +27 -12
- package/lib/core/generator/handler/shared/SharedArgumentNameHandler.js +8 -4
- package/lib/core/generator/handler/shared/SharedClassInstanceHandler.js +4 -5
- package/lib/core/generator/handler/shared/SharedClassNameHandler.js +10 -12
- package/lib/core/generator/handler/shared/SharedMethodNameHandler.js +9 -12
- package/lib/core/generator/handler/shared/SharedReturnTypeHandler.js +3 -4
- package/lib/core/generator/handler/shared/body/SharedBodyHandler.js +11 -7
- package/lib/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js +21 -16
- package/lib/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler.js +11 -9
- package/lib/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.js +21 -17
- package/lib/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js +13 -12
- package/lib/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler.js +24 -18
- package/lib/core/generator/handler/shared/body/SharedInvokeStandaloneMethodBodyHandler.js +39 -0
- package/lib/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler.js +29 -21
- package/lib/core/generator/internal/CommonGenerator.js +23 -10
- package/lib/core/generator/internal/NodejsStringBuilder.js +5 -6
- package/lib/core/generator/internal/SharedHandlerType.js +2 -2
- package/lib/core/generator/utils/StringUtils.js +2 -2
- package/lib/core/handler/AbstractHandler.js +12 -12
- package/lib/core/handler/ArrayGetItemHandler.js +3 -4
- package/lib/core/handler/ArrayGetRankHandler.js +5 -7
- package/lib/core/handler/ArrayGetSizeHandler.js +3 -4
- package/lib/core/handler/ArrayHandler.js +2 -3
- package/lib/core/handler/ArraySetItemHandler.js +4 -5
- package/lib/core/handler/CastingHandler.js +3 -3
- package/lib/core/handler/CreateClassInstanceHandler.js +29 -31
- package/lib/core/handler/DestructReferenceHandler.js +3 -4
- package/lib/core/handler/EnableNamespaceHandler.js +8 -11
- package/lib/core/handler/EnableTypeHandler.js +8 -10
- package/lib/core/handler/GetGlobalStaticFieldHandler.js +28 -30
- package/lib/core/handler/GetInstanceFieldHandler.js +28 -28
- package/lib/core/handler/GetStaticFieldHandler.js +28 -28
- package/lib/core/handler/GetTypeHandler.js +30 -14
- package/lib/core/handler/Handler.js +12 -11
- package/lib/core/handler/InvokeGlobalMethodHandler.js +36 -40
- package/lib/core/handler/InvokeInstanceMethodHandler.js +31 -33
- package/lib/core/handler/InvokeStandaloneMethodHandler.js +56 -0
- package/lib/core/handler/InvokeStaticMethodHandler.js +31 -33
- package/lib/core/handler/LoadLibraryHandler.js +9 -2
- package/lib/core/handler/ResolveReferenceHandler.js +4 -5
- package/lib/core/handler/SetGlobalStaticFieldHandler.js +29 -35
- package/lib/core/handler/SetInstanceFieldHandler.js +28 -28
- package/lib/core/handler/SetStaticFieldHandler.js +26 -26
- package/lib/core/handler/ValueHandler.js +3 -5
- package/lib/core/namespaceCache/NamespaceCache.js +12 -12
- package/lib/core/receiver/Receiver.js +15 -9
- package/lib/core/receiver/ReceiverNative.js +3 -3
- package/lib/core/referenceCache/ReferencesCache.js +4 -4
- package/lib/core/transmitter/Transmitter.js +2 -3
- package/lib/core/transmitter/TransmitterWebsocket.js +33 -0
- package/lib/core/transmitter/TransmitterWrapper.js +13 -7
- package/lib/core/typeCache/TypeCache.js +12 -12
- package/lib/core/webSocketClient/WebSocketClient.js +105 -107
- package/lib/sdk/ConfigRuntimeFactory.js +57 -52
- package/lib/sdk/Javonet.js +28 -32
- package/lib/sdk/RuntimeContext.js +118 -122
- package/lib/sdk/RuntimeFactory.js +10 -10
- package/lib/sdk/tools/JsonFileResolver.js +55 -37
- package/lib/sdk/tools/SdkExceptionHelper.js +33 -31
- package/lib/utils/RuntimeLogger.js +12 -9
- package/lib/utils/connectionData/TcpConnectionData.js +38 -30
- package/lib/utils/uuid/REGEX.js +2 -1
- package/lib/utils/uuid/rng.js +8 -8
- package/lib/utils/uuid/stringify.js +36 -36
- package/lib/utils/uuid/v4.js +17 -17
- package/lib/utils/uuid/validate.js +3 -3
- package/package.json +78 -41
- package/.prettierrc +0 -12
- package/Binaries/Nodejs/core/generator/handler/CreateInstanceGeneratorHandler.js +0 -17
- package/Binaries/Nodejs/core/generator/handler/GeneratorHandler.js +0 -30
- package/Binaries/Nodejs/core/generator/handler/GetInstanceFieldGeneratorHandler.js +0 -18
- package/Binaries/Nodejs/core/generator/handler/GetStaticFieldGeneratorHandler.js +0 -17
- package/Binaries/Nodejs/core/generator/handler/GetTypeGeneratorHandler.js +0 -26
- package/Binaries/Nodejs/core/generator/handler/Handlers.js +0 -51
- package/Binaries/Nodejs/core/generator/handler/InvokeInstanceMethodGeneratorHandler.js +0 -18
- package/Binaries/Nodejs/core/generator/handler/InvokeStaticMethodGeneratorHandler.js +0 -20
- package/Binaries/Nodejs/core/generator/handler/shared/SharedArgumentNameHandler.js +0 -11
- package/Binaries/Nodejs/core/generator/handler/shared/SharedReturnTypeHandler.js +0 -10
- package/Binaries/Nodejs/core/generator/handler/shared/body/SharedBodyHandler.js +0 -14
- package/Binaries/Nodejs/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js +0 -24
- package/Binaries/Nodejs/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler.js +0 -19
- package/Binaries/Nodejs/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.js +0 -27
- package/Binaries/Nodejs/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js +0 -20
- package/Binaries/Nodejs/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler.js +0 -27
- package/Binaries/Nodejs/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler.js +0 -31
- package/Binaries/Nodejs/core/generator/internal/CommonGenerator.js +0 -26
- package/Binaries/Nodejs/core/generator/internal/NodejsStringBuilder.js +0 -18
- package/Binaries/Nodejs/core/handler/CreateClassInstanceHandler.js +0 -38
- package/Binaries/Nodejs/core/handler/GetGlobalStaticFieldHandler.js +0 -39
- package/Binaries/Nodejs/core/handler/GetInstanceFieldHandler.js +0 -35
- package/Binaries/Nodejs/core/handler/GetStaticFieldHandler.js +0 -36
- package/Binaries/Nodejs/core/handler/GetTypeHandler.js +0 -47
- package/Binaries/Nodejs/core/handler/InvokeGlobalMethodHandler.js +0 -47
- package/Binaries/Nodejs/core/handler/InvokeInstanceMethodHandler.js +0 -40
- package/Binaries/Nodejs/core/handler/InvokeStaticMethodHandler.js +0 -40
- package/Binaries/Nodejs/core/handler/ResolveReferenceHandler.js +0 -14
- package/Binaries/Nodejs/core/handler/SetGlobalStaticFieldHandler.js +0 -44
- package/Binaries/Nodejs/core/handler/SetInstanceFieldHandler.js +0 -35
- package/Binaries/Nodejs/core/handler/SetStaticFieldHandler.js +0 -33
- package/Binaries/Nodejs/core/interpreter/Interpreter.js +0 -65
- package/Binaries/Nodejs/core/receiver/Receiver.js +0 -26
- package/Binaries/Nodejs/core/transmitter/TransmitterWrapper.js +0 -28
- package/Binaries/Nodejs/core/webSocketClient/WebSocketClient.js +0 -133
- package/Binaries/Nodejs/utils/Command.js +0 -66
- package/Binaries/Nodejs/utils/ConnectionType.js +0 -5
- package/Binaries/Nodejs/utils/RuntimeLogger.js +0 -27
- package/Binaries/Nodejs/utils/RuntimeNameHandler.js +0 -30
- package/Binaries/Nodejs/utils/StringEncodingMode.js +0 -6
- package/Binaries/Nodejs/utils/connectionData/InMemoryConnectionData.js +0 -28
- package/Binaries/Nodejs/utils/connectionData/TcpConnectionData.js +0 -69
- package/Binaries/Nodejs/utils/connectionData/WsConnectionData.js +0 -33
- package/Binaries/Nodejs/utils/uuid/REGEX.js +0 -1
- package/Binaries/Nodejs/utils/uuid/rng.js +0 -12
- package/Binaries/Nodejs/utils/uuid/stringify.js +0 -51
- package/Binaries/Nodejs/utils/uuid/v4.js +0 -27
- package/Binaries/Nodejs/utils/uuid/validate.js +0 -6
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/Dist/CheckConflicts.pm +0 -361
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/Dist/CheckConflicts/.packlist +0 -2
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/config.pl +0 -99
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/include/ffi_platypus_bundle.h +0 -33
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/include/ffi_platypus_config.h +0 -40
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/lib/libplfill.so +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/probe/bin/dlrun +0 -0
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/probe/probe.pl +0 -300
- package/Binaries/Perl/Linux/X64/deps/lib/perl5/x86_64-linux-gnu-thread-multi/auto/share/dist/FFI-Platypus/probe/src/dlrun.c +0 -105
- package/Binaries/Python/javonet/core/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/delegateCache/__pycache__/DelegatesCache.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/delegateCache/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/generator/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/generator/internal/__pycache__/PythonStringBuilder.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/generator/internal/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/AbstractCommandHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/AbstractHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetItemHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetRankHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/ArrayGetSizeHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/ArrayHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/ArraySetItemHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/CastingHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/CreateClassInstanceHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/DestructReferenceHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/EnableNamespaceHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/EnableTypeHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/GetEnumItemHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/GetEnumNameHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/GetEnumValueHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/GetInstanceFieldHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/GetInstanceMethodAsDelegateHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/GetStaticFieldHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/GetStaticMethodAsDelegateHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/GetTypeHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/Handler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/HandlerDictionary.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/InvokeDelegateHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/InvokeInstanceMethodHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/InvokeStaticMethodHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/LoadLibraryHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/PassDelegateHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/ResolveInstanceHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/SetInstanceFieldHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/SetStaticFieldHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/ValueHandler.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/handler/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/interpreter/__pycache__/Interpreter.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/interpreter/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/namespaceCache/__pycache__/NamespaceCache.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/namespaceCache/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/protocol/__pycache__/CommandDeserializer.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/protocol/__pycache__/CommandSerializer.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/protocol/__pycache__/TypeDeserializer.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/protocol/__pycache__/TypeSerializer.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/protocol/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/receiver/__pycache__/Receiver.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/receiver/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/referenceCache/__pycache__/ReferencesCache.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/referenceCache/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/typeCache/__pycache__/TypeCache.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/core/typeCache/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/__pycache__/Command.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/__pycache__/CommandType.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/__pycache__/ConnectionType.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/__pycache__/ExceptionType.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/__pycache__/RuntimeLogger.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/__pycache__/RuntimeName.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/__pycache__/StringEncodingMode.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/__pycache__/Type.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/connectionData/__pycache__/IConnectionData.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/connectionData/__pycache__/InMemoryConnectionData.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/connectionData/__pycache__/__init__.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/exception/__pycache__/ExceptionSerializer.cpython-312.pyc +0 -0
- package/Binaries/Python/javonet/utils/exception/__pycache__/__init__.cpython-312.pyc +0 -0
- package/lib/core/interpreter/Interpreter.js +0 -65
- package/lib/utils/Command.js +0 -66
- package/lib/utils/ConnectionType.js +0 -5
- package/lib/utils/RuntimeName.js +0 -11
- package/lib/utils/RuntimeNameHandler.js +0 -30
- package/lib/utils/StringEncodingMode.js +0 -6
- package/lib/utils/connectionData/InMemoryConnectionData.js +0 -28
- package/lib/utils/connectionData/WsConnectionData.js +0 -33
|
@@ -0,0 +1,4368 @@
|
|
|
1
|
+
declare module "Binaries/Nodejs/lib/utils/CommandType" {
|
|
2
|
+
export let Value: 0;
|
|
3
|
+
export let LoadLibrary: 1;
|
|
4
|
+
export let InvokeStaticMethod: 2;
|
|
5
|
+
export let GetStaticField: 3;
|
|
6
|
+
export let SetStaticField: 4;
|
|
7
|
+
export let CreateClassInstance: 5;
|
|
8
|
+
export let GetType: 6;
|
|
9
|
+
export let Reference: 7;
|
|
10
|
+
export let GetModule: 8;
|
|
11
|
+
export let InvokeInstanceMethod: 9;
|
|
12
|
+
export let Exception: 10;
|
|
13
|
+
export let HeartBeat: 11;
|
|
14
|
+
export let Cast: 12;
|
|
15
|
+
export let GetInstanceField: 13;
|
|
16
|
+
export let Optimize: 14;
|
|
17
|
+
export let GenerateLib: 15;
|
|
18
|
+
export let InvokeGlobalMethod: 16;
|
|
19
|
+
export let DestructReference: 17;
|
|
20
|
+
export let ArrayReference: 18;
|
|
21
|
+
export let ArrayGetItem: 19;
|
|
22
|
+
export let ArrayGetSize: 20;
|
|
23
|
+
export let ArrayGetRank: 21;
|
|
24
|
+
export let ArraySetItem: 22;
|
|
25
|
+
export let Array: 23;
|
|
26
|
+
export let RetrieveArray: 24;
|
|
27
|
+
export let SetInstanceField: 25;
|
|
28
|
+
export let InvokeGenericStaticMethod: 26;
|
|
29
|
+
export let InvokeGenericMethod: 27;
|
|
30
|
+
export let GetEnumItem: 28;
|
|
31
|
+
export let GetEnumName: 29;
|
|
32
|
+
export let GetEnumValue: 30;
|
|
33
|
+
export let AsRef: 31;
|
|
34
|
+
export let AsOut: 32;
|
|
35
|
+
export let GetRefValue: 33;
|
|
36
|
+
export let EnableNamespace: 34;
|
|
37
|
+
export let EnableType: 35;
|
|
38
|
+
export let CreateNull: 36;
|
|
39
|
+
export let InvokeStandaloneMethod: 37;
|
|
40
|
+
}
|
|
41
|
+
declare module "Binaries/Nodejs/lib/utils/Command" {
|
|
42
|
+
export = Command;
|
|
43
|
+
class Command {
|
|
44
|
+
/**
|
|
45
|
+
* @param {any} [response]
|
|
46
|
+
* @param {number} runtimeName
|
|
47
|
+
*/
|
|
48
|
+
static createResponse(response?: any, runtimeName: number): Command;
|
|
49
|
+
/**
|
|
50
|
+
* @param {any} [response]
|
|
51
|
+
* @param {number} runtimeName
|
|
52
|
+
* @method
|
|
53
|
+
*/
|
|
54
|
+
static createReference(response?: any, runtimeName: number): Command;
|
|
55
|
+
/**
|
|
56
|
+
* @param {any} [response]
|
|
57
|
+
* @param {number} runtimeName
|
|
58
|
+
* @returns {Command}
|
|
59
|
+
* @method
|
|
60
|
+
*/
|
|
61
|
+
static createArrayResponse(response?: any, runtimeName: number): Command;
|
|
62
|
+
/**
|
|
63
|
+
* Constructs a new Command instance.
|
|
64
|
+
* @param {number} runtimeName - The runtime name associated with the command.
|
|
65
|
+
* @param {number} commandType - The type of the command.
|
|
66
|
+
* @param {any} [payload] - The optional payload of the command.
|
|
67
|
+
* @method
|
|
68
|
+
*/
|
|
69
|
+
constructor(runtimeName: number, commandType: number, payload?: any);
|
|
70
|
+
runtimeName: number;
|
|
71
|
+
commandType: number;
|
|
72
|
+
payload: any;
|
|
73
|
+
dropFirstPayloadArg(): Command;
|
|
74
|
+
/**
|
|
75
|
+
* @param {any} arg
|
|
76
|
+
* @returns {Command}
|
|
77
|
+
*/
|
|
78
|
+
addArgToPayload(arg: any): Command;
|
|
79
|
+
/**
|
|
80
|
+
* @param {Command|null} current_command
|
|
81
|
+
* @returns {Command}
|
|
82
|
+
*/
|
|
83
|
+
prependArgToPayload(current_command: Command | null): Command;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
declare module "Binaries/Nodejs/lib/utils/StringEncodingMode" {
|
|
87
|
+
export let ASCII: 0;
|
|
88
|
+
export let UTF8: 1;
|
|
89
|
+
export let UTF16: 2;
|
|
90
|
+
export let UTF32: 3;
|
|
91
|
+
}
|
|
92
|
+
declare module "Binaries/Nodejs/lib/core/protocol/TypeDeserializer" {
|
|
93
|
+
export = TypeDeserializer;
|
|
94
|
+
class TypeDeserializer {
|
|
95
|
+
static deserializeCommand(encodedCommand: any): Command;
|
|
96
|
+
static deserializeString(stringEncodingMode: any, encodedString: any): string;
|
|
97
|
+
static deserializeInt(encodedInt: any): number;
|
|
98
|
+
static deserializeBool(encodedBool: any): boolean;
|
|
99
|
+
static deserializeFloat(encodedFloat: any): number;
|
|
100
|
+
static deserializeByte(encodedByte: any): number;
|
|
101
|
+
static deserializeChar(encodedChar: any): number;
|
|
102
|
+
static deserializeLongLong(encodedLongLong: any): bigint;
|
|
103
|
+
static deserializeDouble(encodedDouble: any): number;
|
|
104
|
+
static deserializeULLong(encodedULLong: any): bigint;
|
|
105
|
+
static deserializeUInt(encodedUInt: any): number;
|
|
106
|
+
static deserializeNull(encodedNull?: null): null;
|
|
107
|
+
}
|
|
108
|
+
import Command = require("Binaries/Nodejs/lib/utils/Command");
|
|
109
|
+
}
|
|
110
|
+
declare module "Binaries/Nodejs/lib/utils/Type" {
|
|
111
|
+
export let JAVONET_COMMAND: 0;
|
|
112
|
+
export let JAVONET_STRING: 1;
|
|
113
|
+
export let JAVONET_INTEGER: 2;
|
|
114
|
+
export let JAVONET_BOOLEAN: 3;
|
|
115
|
+
export let JAVONET_FLOAT: 4;
|
|
116
|
+
export let JAVONET_BYTE: 5;
|
|
117
|
+
export let JAVONET_CHAR: 6;
|
|
118
|
+
export let JAVONET_LONG_LONG: 7;
|
|
119
|
+
export let JAVONET_DOUBLE: 8;
|
|
120
|
+
export let JAVONET_UNSIGNED_LONG_LONG: 9;
|
|
121
|
+
export let JAVONET_UNSIGNED_INTEGER: 10;
|
|
122
|
+
export let JAVONET_NULL: 11;
|
|
123
|
+
}
|
|
124
|
+
declare module "Binaries/Nodejs/lib/core/protocol/CommandDeserializer" {
|
|
125
|
+
export = CommandDeserializer;
|
|
126
|
+
class CommandDeserializer {
|
|
127
|
+
constructor(buffer: any);
|
|
128
|
+
buffer: any;
|
|
129
|
+
command: Command;
|
|
130
|
+
position: number;
|
|
131
|
+
/**
|
|
132
|
+
* @returns {Command}
|
|
133
|
+
*/
|
|
134
|
+
deserialize(): Command;
|
|
135
|
+
isAtEnd(): boolean;
|
|
136
|
+
readObject(typeNum: any): any;
|
|
137
|
+
readCommand(): any;
|
|
138
|
+
readCommandRecursively(numberOfElementsInPayloadLeft: any, cmd: any): any;
|
|
139
|
+
readString(): string;
|
|
140
|
+
readInt(): number;
|
|
141
|
+
readBool(): boolean;
|
|
142
|
+
readFloat(): number;
|
|
143
|
+
readByte(): number;
|
|
144
|
+
readChar(): number;
|
|
145
|
+
readLongLong(): bigint;
|
|
146
|
+
readDouble(): number;
|
|
147
|
+
readUllong(): bigint;
|
|
148
|
+
readUInt(): number;
|
|
149
|
+
readNull(): null;
|
|
150
|
+
}
|
|
151
|
+
import Command = require("Binaries/Nodejs/lib/utils/Command");
|
|
152
|
+
}
|
|
153
|
+
declare module "Binaries/Nodejs/lib/core/protocol/TypeSerializer" {
|
|
154
|
+
export = TypeSerializer;
|
|
155
|
+
class TypeSerializer {
|
|
156
|
+
static encodePrimitive(payload_item: any): Buffer<ArrayBuffer>;
|
|
157
|
+
static serializeCommand(command: any): Buffer<ArrayBuffer>;
|
|
158
|
+
static serializeString(string_value: any): Buffer<ArrayBuffer>;
|
|
159
|
+
static serializeInt(int_value: any): Buffer<ArrayBuffer>;
|
|
160
|
+
static serializeBool(bool_value: any): Buffer<ArrayBuffer>;
|
|
161
|
+
static serializeFloat(float_value: any): Buffer<ArrayBuffer>;
|
|
162
|
+
static serializeByte(byte_value: any): Buffer<ArrayBuffer>;
|
|
163
|
+
static serializeChar(char_value: any): Buffer<ArrayBuffer>;
|
|
164
|
+
static serializeLongLong(longlong_value: any): Buffer<ArrayBuffer>;
|
|
165
|
+
static serializeDouble(double_value: any): Buffer<ArrayBuffer>;
|
|
166
|
+
static serializeULLong(ullong_value: any): Buffer<ArrayBuffer>;
|
|
167
|
+
static serializeUInt(uint_value: any): Buffer<ArrayBuffer>;
|
|
168
|
+
static serializeNull(): Buffer<ArrayBuffer>;
|
|
169
|
+
static serializeIntValue(int_value: any): Buffer<ArrayBuffer>;
|
|
170
|
+
}
|
|
171
|
+
import { Buffer } from "buffer";
|
|
172
|
+
}
|
|
173
|
+
declare module "Binaries/Nodejs/lib/utils/RuntimeName" {
|
|
174
|
+
export let Clr: 0;
|
|
175
|
+
export let Go: 1;
|
|
176
|
+
export let Jvm: 2;
|
|
177
|
+
export let Netcore: 3;
|
|
178
|
+
export let Perl: 4;
|
|
179
|
+
export let Python: 5;
|
|
180
|
+
export let Ruby: 6;
|
|
181
|
+
export let Nodejs: 7;
|
|
182
|
+
export let Cpp: 8;
|
|
183
|
+
}
|
|
184
|
+
declare module "Binaries/Nodejs/lib/core/protocol/CommandSerializer" {
|
|
185
|
+
export = CommandSerializer;
|
|
186
|
+
class CommandSerializer {
|
|
187
|
+
buffer: Int8Array<ArrayBuffer>;
|
|
188
|
+
serialize(root_command: any, connectionData: any, runtimeVersion?: number): Int8Array<ArrayBuffer>;
|
|
189
|
+
#private;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
declare module "Binaries/Nodejs/lib/utils/ConnectionType" {
|
|
193
|
+
export let IN_MEMORY: 0;
|
|
194
|
+
export let TCP: 1;
|
|
195
|
+
export let WEB_SOCKET: 2;
|
|
196
|
+
}
|
|
197
|
+
declare module "Binaries/Nodejs/lib/core/webSocketClient/WebSocketClient" {
|
|
198
|
+
export = WebSocketClient;
|
|
199
|
+
/**
|
|
200
|
+
* WebSocketClient class that handles WebSocket connection, message sending, and automatic disconnection.
|
|
201
|
+
*/
|
|
202
|
+
class WebSocketClient {
|
|
203
|
+
/**
|
|
204
|
+
* @param {string} url
|
|
205
|
+
* @param {object} options
|
|
206
|
+
*/
|
|
207
|
+
constructor(url: string, options: object);
|
|
208
|
+
/**
|
|
209
|
+
* @type {string}
|
|
210
|
+
*/
|
|
211
|
+
url: string;
|
|
212
|
+
/**
|
|
213
|
+
* @type {WebSocket | null}
|
|
214
|
+
*/
|
|
215
|
+
instance: WebSocket | null;
|
|
216
|
+
/**
|
|
217
|
+
* @type {boolean} isConnected indicates whether the WebSocket is connected.
|
|
218
|
+
*/
|
|
219
|
+
isConnected: boolean;
|
|
220
|
+
/**
|
|
221
|
+
* @type {boolean}
|
|
222
|
+
*/
|
|
223
|
+
isDisconnectedAfterMessage: boolean;
|
|
224
|
+
/**
|
|
225
|
+
* Sends messageArray through websocket connection
|
|
226
|
+
* @async
|
|
227
|
+
* @param {Buffer|ArrayBuffer|Buffer[]} messageArray
|
|
228
|
+
* @returns {Promise<Buffer|ArrayBuffer|Buffer[]>}
|
|
229
|
+
*/
|
|
230
|
+
send(messageArray: Buffer | ArrayBuffer | Buffer[]): Promise<Buffer | ArrayBuffer | Buffer[]>;
|
|
231
|
+
/**
|
|
232
|
+
* Disconnects the WebSocket by terminating the connection.
|
|
233
|
+
*/
|
|
234
|
+
disconnect(): void;
|
|
235
|
+
/**
|
|
236
|
+
* Connects to the WebSocket server.
|
|
237
|
+
* @private
|
|
238
|
+
* @async
|
|
239
|
+
* @returns {Promise<void>} - A promise that resolves when the connection is established.
|
|
240
|
+
*/
|
|
241
|
+
private _connect;
|
|
242
|
+
/**
|
|
243
|
+
* Sends the data to the WebSocket server and listens for a response.
|
|
244
|
+
* @private
|
|
245
|
+
* @async
|
|
246
|
+
* @param {string|Buffer|ArrayBuffer|Buffer[]} data - The data to send.
|
|
247
|
+
* @param {Function} resolve - The resolve function for the Promise.
|
|
248
|
+
* @param {Function} reject - The reject function for the Promise.
|
|
249
|
+
*/
|
|
250
|
+
private _sendMessage;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
declare module "Binaries/Nodejs/lib/core/transmitter/TransmitterWebsocket" {
|
|
254
|
+
export = TransmitterWebsocket;
|
|
255
|
+
/** @typedef {import('../../../../core/lib/declarations').WsConnectionData} WsConnectionData */
|
|
256
|
+
class TransmitterWebsocket {
|
|
257
|
+
/**
|
|
258
|
+
* @returns {void}
|
|
259
|
+
*/
|
|
260
|
+
static initialize(): void;
|
|
261
|
+
/**
|
|
262
|
+
* @returns {void}
|
|
263
|
+
*/
|
|
264
|
+
static setConfigSource(): void;
|
|
265
|
+
/**
|
|
266
|
+
* @returns {void}
|
|
267
|
+
*/
|
|
268
|
+
static activate(): void;
|
|
269
|
+
/**
|
|
270
|
+
* @async
|
|
271
|
+
* @param {number[]} messageByteArray
|
|
272
|
+
* @param {WsConnectionData} connectionData
|
|
273
|
+
* @returns {Promise<number[]>} responseByteArray
|
|
274
|
+
*/
|
|
275
|
+
static sendCommand(messageByteArray: number[], connectionData: WsConnectionData): Promise<number[]>;
|
|
276
|
+
}
|
|
277
|
+
namespace TransmitterWebsocket {
|
|
278
|
+
export { WsConnectionData };
|
|
279
|
+
}
|
|
280
|
+
type WsConnectionData = any;
|
|
281
|
+
}
|
|
282
|
+
declare module "Binaries/Nodejs/lib/core/interpreter/Interpreter" {
|
|
283
|
+
export = Interpreter;
|
|
284
|
+
class Interpreter {
|
|
285
|
+
handler: any;
|
|
286
|
+
/**
|
|
287
|
+
*
|
|
288
|
+
* @param {Command} command
|
|
289
|
+
* @param {IConnectionData} connectionData
|
|
290
|
+
* @returns
|
|
291
|
+
*/
|
|
292
|
+
executeAsync(command: Command, connectionData: IConnectionData): Promise<any>;
|
|
293
|
+
/**
|
|
294
|
+
*
|
|
295
|
+
* @param {Command} command
|
|
296
|
+
* @param {WsConnectionData} connectionData
|
|
297
|
+
* @returns {Promise<Command>}
|
|
298
|
+
*/
|
|
299
|
+
execute(command: Command, connectionData: WsConnectionData): Promise<Command>;
|
|
300
|
+
/**
|
|
301
|
+
*
|
|
302
|
+
* @param {number[]} messageByteArray
|
|
303
|
+
* @returns {Command}
|
|
304
|
+
*/
|
|
305
|
+
process(messageByteArray: number[]): Command;
|
|
306
|
+
}
|
|
307
|
+
namespace Interpreter {
|
|
308
|
+
export { WsConnectionData };
|
|
309
|
+
}
|
|
310
|
+
type WsConnectionData = any;
|
|
311
|
+
}
|
|
312
|
+
declare module "Binaries/Nodejs/lib/utils/ExceptionType" {
|
|
313
|
+
export let EXCEPTION: 0;
|
|
314
|
+
export let IO_EXCEPTION: 1;
|
|
315
|
+
export let FILE_NOT_FOUND_EXCEPTION: 2;
|
|
316
|
+
export let RUNTIME_EXCEPTION: 3;
|
|
317
|
+
export let ARITHMETIC_EXCEPTION: 4;
|
|
318
|
+
export let ILLEGAL_ARGUMENT_EXCEPTION: 5;
|
|
319
|
+
export let INDEX_OUT_OF_BOUNDS_EXCEPTION: 6;
|
|
320
|
+
export let NULL_POINTER_EXCEPTION: 7;
|
|
321
|
+
}
|
|
322
|
+
declare module "Binaries/Nodejs/lib/utils/exception/ExceptionThrower" {
|
|
323
|
+
export = ExceptionThrower;
|
|
324
|
+
class ExceptionThrower {
|
|
325
|
+
static throwException(commandException: any): Error;
|
|
326
|
+
static serializeStack(stackTraceClasses: any, stackTraceMethods: any, stackTraceLines: any, stackTraceFiles: any): string;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
declare module "Binaries/Nodejs/lib/sdk/InvocationContext" {
|
|
330
|
+
/**
|
|
331
|
+
* InvocationContext is a class that represents a context for invoking commands.
|
|
332
|
+
* It implements several interfaces for different types of interactions.
|
|
333
|
+
* This class is used to construct chains of invocations, representing expressions of interaction that have not yet been executed.
|
|
334
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/invocation-context)
|
|
335
|
+
* @class
|
|
336
|
+
*/
|
|
337
|
+
export class InvocationContext {
|
|
338
|
+
constructor(runtimeName: any, connectionData: any, command: any, isExecuted?: boolean);
|
|
339
|
+
get_current_command(): any;
|
|
340
|
+
/**
|
|
341
|
+
* Executes the current command.
|
|
342
|
+
* 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.
|
|
343
|
+
* The non-materialized context wraps either single command or chain of recursively nested commands.
|
|
344
|
+
* Commands are becoming nested through each invocation of methods on Invocation Context.
|
|
345
|
+
* Each invocation triggers the creation of new Invocation Context instance wrapping the current command with new parent command valid for invoked method.
|
|
346
|
+
* 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.
|
|
347
|
+
* @returns {InvocationContext} the InvocationContext after executing the command.
|
|
348
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/execute-method)
|
|
349
|
+
* @method
|
|
350
|
+
*/
|
|
351
|
+
execute(): InvocationContext;
|
|
352
|
+
/**
|
|
353
|
+
* Invokes a static method on the target runtime.
|
|
354
|
+
* @param {string} methodName - The name of the method to invoke.
|
|
355
|
+
* @param {...any} args - Method arguments.
|
|
356
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to invoke the static method.
|
|
357
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/calling-methods/invoking-static-method)
|
|
358
|
+
* @method
|
|
359
|
+
*/
|
|
360
|
+
invokeStaticMethod(methodName: string, ...args: any[]): InvocationContext;
|
|
361
|
+
/**
|
|
362
|
+
* Invokes a standalone method on the target runtime.
|
|
363
|
+
* @param {string} methodName - The name of the method to invoke.
|
|
364
|
+
* @param {...any} args - Method arguments.
|
|
365
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to invoke the static method.
|
|
366
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/calling-methods/invoking-static-method)
|
|
367
|
+
* @method
|
|
368
|
+
*/
|
|
369
|
+
invokeStandaloneMethod(methodName: string, ...args: any[]): InvocationContext;
|
|
370
|
+
/**
|
|
371
|
+
* Retrieves the value of a static field from the target runtime.
|
|
372
|
+
* @param {string} fieldName - The name of the field to get.
|
|
373
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to get the static field.
|
|
374
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/fields-and-properties/getting-and-setting-values-for-static-fields-and-properties)
|
|
375
|
+
* @method
|
|
376
|
+
*/
|
|
377
|
+
getStaticField(fieldName: string): InvocationContext;
|
|
378
|
+
/**
|
|
379
|
+
* Sets the value of a static field in the target runtime.
|
|
380
|
+
* @param {string} fieldName - The name of the field to set.
|
|
381
|
+
* @param {any} value - The new value of the field.
|
|
382
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to set the static field.
|
|
383
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/fields-and-properties/getting-and-setting-values-for-static-fields-and-properties)
|
|
384
|
+
* @method
|
|
385
|
+
*/
|
|
386
|
+
setStaticField(fieldName: string, value: any): InvocationContext;
|
|
387
|
+
/**
|
|
388
|
+
* Creates a new instance of a class in the target runtime.
|
|
389
|
+
* @param {...any} args - The arguments to pass to the class constructor
|
|
390
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to create the instance.
|
|
391
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/calling-methods/creating-instance-and-calling-instance-methods)
|
|
392
|
+
* @method
|
|
393
|
+
*/
|
|
394
|
+
createInstance(...args: any[]): InvocationContext;
|
|
395
|
+
/**
|
|
396
|
+
* Retrieves the value of an instance field from the target runtime.
|
|
397
|
+
* @param {string} fieldName - The name of the field to get.
|
|
398
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to get the instance field.
|
|
399
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/fields-and-properties/getting-and-setting-values-for-instance-fields-and-properties)
|
|
400
|
+
* @method
|
|
401
|
+
*/
|
|
402
|
+
getInstanceField(fieldName: string): InvocationContext;
|
|
403
|
+
/**
|
|
404
|
+
* Sets the value of an instance field in the target runtime.
|
|
405
|
+
* @param {string} fieldName - The name of the field to set.
|
|
406
|
+
* @param {any} value - The new value of the field.
|
|
407
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to set the instance field.
|
|
408
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/fields-and-properties/getting-and-setting-values-for-instance-fields-and-properties)
|
|
409
|
+
* @method
|
|
410
|
+
*/
|
|
411
|
+
setInstanceField(fieldName: string, value: any): InvocationContext;
|
|
412
|
+
/**
|
|
413
|
+
* Invokes an instance method on the target runtime.
|
|
414
|
+
* @param {string} methodName - The name of the method to invoke.
|
|
415
|
+
* @param {...any} args - Method arguments.
|
|
416
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to invoke the instance method.
|
|
417
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/calling-methods/invoking-instance-method)
|
|
418
|
+
* @method
|
|
419
|
+
*/
|
|
420
|
+
invokeInstanceMethod(methodName: string, ...args: any[]): InvocationContext;
|
|
421
|
+
/**
|
|
422
|
+
* Retrieves the value at a specific index in an array from the target runtime.
|
|
423
|
+
* @param {...any} indexes - the arguments to pass to the array getter. The first argument should be the index.
|
|
424
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to get the index.
|
|
425
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/arrays-and-collections/one-dimensional-arrays)
|
|
426
|
+
* @method
|
|
427
|
+
*/
|
|
428
|
+
getIndex(...indexes: any[]): InvocationContext;
|
|
429
|
+
/**
|
|
430
|
+
* Sets the value at a specific index in an array in the target runtime.
|
|
431
|
+
* @param {number[]} indexes - The index to set the value at.
|
|
432
|
+
* @param {any} value - The value to set at the index.
|
|
433
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to set the index.
|
|
434
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/arrays-and-collections/one-dimensional-arrays)
|
|
435
|
+
* @method
|
|
436
|
+
*/
|
|
437
|
+
setIndex(indexes: number[], value: any): InvocationContext;
|
|
438
|
+
/**
|
|
439
|
+
* Retrieves the size of an array from the target runtime.
|
|
440
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to get the size.
|
|
441
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/arrays-and-collections/one-dimensional-arrays)
|
|
442
|
+
* @method
|
|
443
|
+
*/
|
|
444
|
+
getSize(): InvocationContext;
|
|
445
|
+
/**
|
|
446
|
+
* Retrieves the rank of an array from the target runtime.
|
|
447
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to get the rank.
|
|
448
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/arrays-and-collections/one-dimensional-arrays)
|
|
449
|
+
* @method
|
|
450
|
+
*/
|
|
451
|
+
getRank(): InvocationContext;
|
|
452
|
+
/**
|
|
453
|
+
* Invokes a generic static method on the target runtime.
|
|
454
|
+
* @param {string} methodName - The name of the method to invoke.
|
|
455
|
+
* @param {...any} args - Method arguments.
|
|
456
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to invoke the generic static method.
|
|
457
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/generics/calling-generic-static-method)
|
|
458
|
+
* @method
|
|
459
|
+
*/
|
|
460
|
+
invokeGenericStaticMethod(methodName: string, ...args: any[]): InvocationContext;
|
|
461
|
+
/**
|
|
462
|
+
* Invokes a generic method on the target runtime.
|
|
463
|
+
* @param {string} methodName - The name of the method to invoke.
|
|
464
|
+
* @param {...any} args - Method arguments.
|
|
465
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to invoke the generic method.
|
|
466
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/generics/calling-generic-instance-method)
|
|
467
|
+
* @method
|
|
468
|
+
*/
|
|
469
|
+
invokeGenericMethod(methodName: string, ...args: any[]): InvocationContext;
|
|
470
|
+
/**
|
|
471
|
+
* Retrieves the name of an enum from the target runtime.
|
|
472
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to get the enum name.
|
|
473
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/enums/using-enum-type)
|
|
474
|
+
* @method
|
|
475
|
+
*/
|
|
476
|
+
getEnumName(): InvocationContext;
|
|
477
|
+
/**
|
|
478
|
+
* Retrieves the value of an enum from the target runtime.
|
|
479
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to get the enum value.
|
|
480
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/enums/using-enum-type)
|
|
481
|
+
* @method
|
|
482
|
+
*/
|
|
483
|
+
getEnumValue(): InvocationContext;
|
|
484
|
+
/**
|
|
485
|
+
* Retrieves the value of a reference from the target runtime.
|
|
486
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to get the ref value.
|
|
487
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/methods-arguments/passing-arguments-by-reference-with-ref-keyword)
|
|
488
|
+
* @method
|
|
489
|
+
*/
|
|
490
|
+
getRefValue(): InvocationContext;
|
|
491
|
+
/**
|
|
492
|
+
* Creates a null object of a specific type on the target runtime.
|
|
493
|
+
*
|
|
494
|
+
* @returns {InvocationContext} An InvocationContext instance with the command to create a null object.
|
|
495
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/null-handling/create-null-object)
|
|
496
|
+
* @method
|
|
497
|
+
*/
|
|
498
|
+
createNull(): InvocationContext;
|
|
499
|
+
/**
|
|
500
|
+
* Retrieves an array from the target runtime.
|
|
501
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to retrieve the array.
|
|
502
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/arrays-and-collections/retrieve-array)
|
|
503
|
+
* @method
|
|
504
|
+
*/
|
|
505
|
+
retrieveArray(): InvocationContext;
|
|
506
|
+
/**
|
|
507
|
+
* Returns the primitive value from the target runtime. This could be any primitive type in JavaScript,
|
|
508
|
+
* such as int, boolean, byte, char, long, double, float, etc.
|
|
509
|
+
* @returns {Command} The value of the current command.
|
|
510
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/execute-method)
|
|
511
|
+
* @method
|
|
512
|
+
*/
|
|
513
|
+
getValue(): Command;
|
|
514
|
+
[Symbol.iterator]: () => {
|
|
515
|
+
next: () => {
|
|
516
|
+
value: any;
|
|
517
|
+
done: boolean;
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
#private;
|
|
521
|
+
}
|
|
522
|
+
export class InvocationWsContext extends InvocationContext {
|
|
523
|
+
#private;
|
|
524
|
+
}
|
|
525
|
+
import Command = require("Binaries/Nodejs/lib/utils/Command");
|
|
526
|
+
}
|
|
527
|
+
declare module "Binaries/Nodejs/lib/sdk/RuntimeContext" {
|
|
528
|
+
export = RuntimeContext;
|
|
529
|
+
/**
|
|
530
|
+
* Represents a single context which allows interaction with a selected technology.
|
|
531
|
+
* Refers to a single instance of the called runtime within a particular target OS process.
|
|
532
|
+
* 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.
|
|
533
|
+
* Multiple Runtime Contexts can be initialized within one process.
|
|
534
|
+
* Calling the same technology on inMemory communication channel will return the existing instance of runtime context.
|
|
535
|
+
* Calling the same technology on TCP channel but on different nodes will result in unique Runtime Contexts.
|
|
536
|
+
* 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.
|
|
537
|
+
* @see [Javonet Guides]{@link https://www.javonet.com/guides/v2/javascript/foundations/runtime-context}
|
|
538
|
+
* @class
|
|
539
|
+
*/
|
|
540
|
+
class RuntimeContext {
|
|
541
|
+
static memoryRuntimeContexts: Map<any, any>;
|
|
542
|
+
static networkRuntimeContexts: Map<any, any>;
|
|
543
|
+
static webSocketRuntimeContexts: Map<any, any>;
|
|
544
|
+
static getGeneratorHandler(): any;
|
|
545
|
+
static getInstance(runtimeName: any, connectionData: any): any;
|
|
546
|
+
constructor(runtimeName: any, connectionData: any);
|
|
547
|
+
runtimeName: any;
|
|
548
|
+
connectionData: any;
|
|
549
|
+
/**
|
|
550
|
+
* Executes the current command. The initial state of RuntimeContext is non-materialized,
|
|
551
|
+
* wrapping either a single command or a chain of recursively nested commands.
|
|
552
|
+
* Commands become nested through each invocation of methods on RuntimeContext.
|
|
553
|
+
* Each invocation triggers the creation of a new RuntimeContext instance wrapping the current command with a new parent command.
|
|
554
|
+
* 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.
|
|
555
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/execute-method)
|
|
556
|
+
* @method
|
|
557
|
+
*/
|
|
558
|
+
execute(): void;
|
|
559
|
+
/**
|
|
560
|
+
* Adds a reference to a library. Javonet allows you to reference and use modules or packages written in various languages.
|
|
561
|
+
* This method allows you to use any library from all supported technologies. The necessary libraries need to be referenced.
|
|
562
|
+
* 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.
|
|
563
|
+
* 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.
|
|
564
|
+
* @param {string} libraryPath - The relative or full path to the library.
|
|
565
|
+
* @returns {RuntimeContext} RuntimeContext instance.
|
|
566
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/getting-started/adding-references-to-libraries)
|
|
567
|
+
* @method
|
|
568
|
+
*/
|
|
569
|
+
loadLibrary(libraryPath: string): RuntimeContext;
|
|
570
|
+
/**
|
|
571
|
+
* 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.
|
|
572
|
+
* @param {string} typeName - The full name of the type.
|
|
573
|
+
* @param {...any} args - The arguments to be passed, if needed
|
|
574
|
+
* @returns {InvocationContext} InvocationContext instance, that wraps the command to get the type.
|
|
575
|
+
* @method
|
|
576
|
+
*/
|
|
577
|
+
getType(typeName: string, ...args: any[]): InvocationContext;
|
|
578
|
+
/**
|
|
579
|
+
* Casts the provided value to a specific type. This method is used when invoking methods that require specific types of arguments.
|
|
580
|
+
* 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.
|
|
581
|
+
* After casting the value, it can be used as an argument when invoking methods.
|
|
582
|
+
* @param {...any} args - The target type and the value to be cast.
|
|
583
|
+
* @returns {InvocationContext} InvocationContext instance that wraps the command to cast the value.
|
|
584
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/casting/casting)
|
|
585
|
+
* @method
|
|
586
|
+
*/
|
|
587
|
+
cast(...args: any[]): InvocationContext;
|
|
588
|
+
/**
|
|
589
|
+
* Retrieves a specific item from an enum type. This method is used when working with enums from the called runtime.
|
|
590
|
+
* 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.
|
|
591
|
+
* After retrieving the item, it can be used as an argument when invoking methods or for other operations.
|
|
592
|
+
* @param {...any} args - The enum type and the name of the item.
|
|
593
|
+
* @returns {InvocationContext} InvocationContext instance that wraps the command to get the enum item.
|
|
594
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/enums/using-enum-type)
|
|
595
|
+
* @method
|
|
596
|
+
*/
|
|
597
|
+
getEnumItem(...args: any[]): InvocationContext;
|
|
598
|
+
/**
|
|
599
|
+
* 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.
|
|
600
|
+
* 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.
|
|
601
|
+
* After creating the reference, it can be used as an argument when invoking methods.
|
|
602
|
+
* @param {...any} args - The value and optionally the type of the reference.
|
|
603
|
+
* @returns {InvocationContext} InvocationContext instance that wraps the command to create a reference as ref.
|
|
604
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/methods-arguments/passing-arguments-by-reference-with-ref-keyword)
|
|
605
|
+
* @method
|
|
606
|
+
*/
|
|
607
|
+
asRef(...args: any[]): InvocationContext;
|
|
608
|
+
/**
|
|
609
|
+
* 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.
|
|
610
|
+
* 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.
|
|
611
|
+
* After creating the reference, it can be used as an argument when invoking methods.
|
|
612
|
+
* @param {...any} args - The value and optionally the type of the reference.
|
|
613
|
+
* @returns {InvocationContext} InvocationContext instance that wraps the command to create a reference as out.
|
|
614
|
+
* @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)
|
|
615
|
+
* @method
|
|
616
|
+
*/
|
|
617
|
+
asOut(...args: any[]): InvocationContext;
|
|
618
|
+
healthCheck(): void;
|
|
619
|
+
#private;
|
|
620
|
+
}
|
|
621
|
+
import { InvocationContext } from "Binaries/Nodejs/lib/sdk/InvocationContext";
|
|
622
|
+
}
|
|
623
|
+
declare module "Binaries/Nodejs/lib/sdk/RuntimeFactory" {
|
|
624
|
+
export = RuntimeFactory;
|
|
625
|
+
/**
|
|
626
|
+
* The RuntimeFactory class provides methods for creating runtime contexts.
|
|
627
|
+
* Each method corresponds to a specific runtime (CLR, JVM, .NET Core, Perl, Ruby, Node.js, Python) and returns a RuntimeContext instance for that runtime.
|
|
628
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
629
|
+
*/
|
|
630
|
+
class RuntimeFactory {
|
|
631
|
+
constructor(connectionData: any);
|
|
632
|
+
connectionData: any;
|
|
633
|
+
/**
|
|
634
|
+
* Creates RuntimeContext instance to interact with the .NET Framework runtime.
|
|
635
|
+
* @return {RuntimeContext} a RuntimeContext instance for the .NET Framework runtime
|
|
636
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
637
|
+
*/
|
|
638
|
+
clr(): RuntimeContext;
|
|
639
|
+
/**
|
|
640
|
+
* Creates RuntimeContext instance to interact with the JVM runtime.
|
|
641
|
+
* @return {RuntimeContext} a RuntimeContext instance for the JVM runtime
|
|
642
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
643
|
+
*/
|
|
644
|
+
jvm(): RuntimeContext;
|
|
645
|
+
/**
|
|
646
|
+
* Creates RuntimeContext instance to interact with the .NET runtime.
|
|
647
|
+
* @return {RuntimeContext} a RuntimeContext instance for the .NET runtime
|
|
648
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
649
|
+
*/
|
|
650
|
+
netcore(): RuntimeContext;
|
|
651
|
+
/**
|
|
652
|
+
* Creates RuntimeContext instance to interact with the Perl runtime.
|
|
653
|
+
* @return {RuntimeContext} a RuntimeContext instance for the Perl runtime
|
|
654
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
655
|
+
*/
|
|
656
|
+
perl(): RuntimeContext;
|
|
657
|
+
/**
|
|
658
|
+
* Creates RuntimeContext instance to interact with the Python runtime.
|
|
659
|
+
* @return {RuntimeContext} a RuntimeContext instance for the Python runtime
|
|
660
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
661
|
+
*/
|
|
662
|
+
python(): RuntimeContext;
|
|
663
|
+
/**
|
|
664
|
+
* Creates RuntimeContext instance to interact with the Ruby runtime.
|
|
665
|
+
* @return {RuntimeContext} a RuntimeContext instance for the Ruby runtime
|
|
666
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
667
|
+
*/
|
|
668
|
+
ruby(): RuntimeContext;
|
|
669
|
+
/**
|
|
670
|
+
* Creates RuntimeContext instance to interact with Node.js runtime.
|
|
671
|
+
* @return {RuntimeContext} a RuntimeContext instance for the Node.js runtime
|
|
672
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
673
|
+
*/
|
|
674
|
+
nodejs(): RuntimeContext;
|
|
675
|
+
}
|
|
676
|
+
import RuntimeContext = require("Binaries/Nodejs/lib/sdk/RuntimeContext");
|
|
677
|
+
}
|
|
678
|
+
declare module "Binaries/Nodejs/lib/utils/RuntimeNameHandler" {
|
|
679
|
+
export = RuntimeNameHandler;
|
|
680
|
+
class RuntimeNameHandler {
|
|
681
|
+
/**
|
|
682
|
+
* @param {number} runtimeName
|
|
683
|
+
* @returns {string}
|
|
684
|
+
*/
|
|
685
|
+
static getName(runtimeName: number): string;
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
declare module "Binaries/Nodejs/lib/utils/connectionData/IConnectionData" {
|
|
689
|
+
export = IConnectionData;
|
|
690
|
+
class IConnectionData {
|
|
691
|
+
get connectionType(): void;
|
|
692
|
+
get hostname(): void;
|
|
693
|
+
serializeConnectionData(): void;
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
declare module "Binaries/Nodejs/lib/utils/connectionData/InMemoryConnectionData" {
|
|
697
|
+
export = InMemoryConnectionData;
|
|
698
|
+
/**
|
|
699
|
+
* @extends IConnectionData
|
|
700
|
+
*/
|
|
701
|
+
class InMemoryConnectionData extends IConnectionData {
|
|
702
|
+
_connectionType: 0;
|
|
703
|
+
_hostname: string;
|
|
704
|
+
get connectionType(): 0;
|
|
705
|
+
get hostname(): string;
|
|
706
|
+
serializeConnectionData(): number[];
|
|
707
|
+
/**
|
|
708
|
+
* @param {InMemoryConnectionData} other
|
|
709
|
+
* @returns {boolean}
|
|
710
|
+
*/
|
|
711
|
+
equals(other: InMemoryConnectionData): boolean;
|
|
712
|
+
}
|
|
713
|
+
import IConnectionData = require("Binaries/Nodejs/lib/utils/connectionData/IConnectionData");
|
|
714
|
+
}
|
|
715
|
+
declare module "Binaries/Nodejs/lib/utils/connectionData/WsConnectionData" {
|
|
716
|
+
export = WsConnectionData;
|
|
717
|
+
/** @typedef {import('../../declarations').ConnectionType} ConnectionType */
|
|
718
|
+
/**
|
|
719
|
+
* Represents WebSocket connection data.
|
|
720
|
+
* @extends IConnectionData
|
|
721
|
+
*/
|
|
722
|
+
class WsConnectionData extends IConnectionData {
|
|
723
|
+
/**
|
|
724
|
+
* @param {string} hostname - The hostname of the connection.
|
|
725
|
+
*/
|
|
726
|
+
constructor(hostname: string);
|
|
727
|
+
/** @private @type {string} */
|
|
728
|
+
private _hostname;
|
|
729
|
+
/** @private @type {ConnectionType} */
|
|
730
|
+
private _connectionType;
|
|
731
|
+
/** @type {ConnectionType} */
|
|
732
|
+
get connectionType(): ConnectionType;
|
|
733
|
+
/** @type {string} */
|
|
734
|
+
set hostname(value: string);
|
|
735
|
+
/** @type {string} */
|
|
736
|
+
get hostname(): string;
|
|
737
|
+
/**
|
|
738
|
+
* Serializes the connection data.
|
|
739
|
+
* @returns {number[]} An array of connection data values.
|
|
740
|
+
*/
|
|
741
|
+
serializeConnectionData(): number[];
|
|
742
|
+
equals(other: any): boolean;
|
|
743
|
+
}
|
|
744
|
+
namespace WsConnectionData {
|
|
745
|
+
export { ConnectionType };
|
|
746
|
+
}
|
|
747
|
+
import IConnectionData = require("Binaries/Nodejs/lib/utils/connectionData/IConnectionData");
|
|
748
|
+
type ConnectionType = import("Binaries/Nodejs/lib/declarations").ConnectionType;
|
|
749
|
+
}
|
|
750
|
+
declare module "Binaries/Nodejs/lib/utils/exception/ExceptionSerializer" {
|
|
751
|
+
export = ExceptionSerializer;
|
|
752
|
+
class ExceptionSerializer {
|
|
753
|
+
static serializeException(exception: any, command: any): Command;
|
|
754
|
+
static getExceptionCode(exception: any): 0 | 5 | 6;
|
|
755
|
+
static serializeStackTrace(exception: any, stackClasses: any, stackMethods: any, stackLines: any, stackFiles: any): void;
|
|
756
|
+
}
|
|
757
|
+
import Command = require("Binaries/Nodejs/lib/utils/Command");
|
|
758
|
+
}
|
|
759
|
+
declare module "Binaries/Nodejs/index" {
|
|
760
|
+
import CommandSerializer = require("Binaries/Nodejs/lib/core/protocol/CommandSerializer");
|
|
761
|
+
import CommandDeserializer = require("Binaries/Nodejs/lib/core/protocol/CommandDeserializer");
|
|
762
|
+
import TypeDeserializer = require("Binaries/Nodejs/lib/core/protocol/TypeDeserializer");
|
|
763
|
+
import TypeSerializer = require("Binaries/Nodejs/lib/core/protocol/TypeSerializer");
|
|
764
|
+
import Interpreter = require("Binaries/Nodejs/lib/core/interpreter/Interpreter");
|
|
765
|
+
import { InvocationContext } from "Binaries/Nodejs/lib/sdk/InvocationContext";
|
|
766
|
+
import { InvocationWsContext } from "Binaries/Nodejs/lib/sdk/InvocationContext";
|
|
767
|
+
import RuntimeContext = require("Binaries/Nodejs/lib/sdk/RuntimeContext");
|
|
768
|
+
import RuntimeFactory = require("Binaries/Nodejs/lib/sdk/RuntimeFactory");
|
|
769
|
+
import Command = require("Binaries/Nodejs/lib/utils/Command");
|
|
770
|
+
import CommandType = require("Binaries/Nodejs/lib/utils/CommandType");
|
|
771
|
+
import ConnectionType = require("Binaries/Nodejs/lib/utils/ConnectionType");
|
|
772
|
+
import ExceptionType = require("Binaries/Nodejs/lib/utils/ExceptionType");
|
|
773
|
+
import RuntimeName = require("Binaries/Nodejs/lib/utils/RuntimeName");
|
|
774
|
+
import RuntimeNameHandler = require("Binaries/Nodejs/lib/utils/RuntimeNameHandler");
|
|
775
|
+
import StringEncodingMode = require("Binaries/Nodejs/lib/utils/StringEncodingMode");
|
|
776
|
+
import Type = require("Binaries/Nodejs/lib/utils/Type");
|
|
777
|
+
import IConnectionData = require("Binaries/Nodejs/lib/utils/connectionData/IConnectionData");
|
|
778
|
+
import InMemoryConnectionData = require("Binaries/Nodejs/lib/utils/connectionData/InMemoryConnectionData");
|
|
779
|
+
import WsConnectionData = require("Binaries/Nodejs/lib/utils/connectionData/WsConnectionData");
|
|
780
|
+
import ExceptionSerializer = require("Binaries/Nodejs/lib/utils/exception/ExceptionSerializer");
|
|
781
|
+
import ExceptionThrower = require("Binaries/Nodejs/lib/utils/exception/ExceptionThrower");
|
|
782
|
+
export { CommandSerializer, CommandDeserializer, TypeDeserializer, TypeSerializer, Interpreter, InvocationContext, InvocationWsContext, RuntimeContext, RuntimeFactory, Command, CommandType, ConnectionType, ExceptionType, RuntimeName, RuntimeNameHandler, StringEncodingMode, Type, IConnectionData, InMemoryConnectionData, WsConnectionData, ExceptionSerializer, ExceptionThrower };
|
|
783
|
+
}
|
|
784
|
+
declare module "Binaries/Nodejs/lib/core/generator/handler/AbstractGeneratorHandler" {
|
|
785
|
+
export = AbstractGeneratorHandler;
|
|
786
|
+
class AbstractGeneratorHandler {
|
|
787
|
+
generate_command(analyzed_object: any, parent_command: any, handlers: any): void;
|
|
788
|
+
generate_code(existing_string_builder: any, common_command: any, used_object: any, handlers: any): void;
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
declare module "Binaries/Nodejs/lib/core/generator/internal/SharedHandlerType" {
|
|
792
|
+
export let ARGUMENT_NAME: number;
|
|
793
|
+
export let METHOD_BODY: number;
|
|
794
|
+
export let CLASS_NAME: number;
|
|
795
|
+
export let METHOD_NAME: number;
|
|
796
|
+
export let MODIFIER: number;
|
|
797
|
+
export let TYPE: number;
|
|
798
|
+
export let CLAZZ_INSTANCE: number;
|
|
799
|
+
export let RETURN_TYPE: number;
|
|
800
|
+
}
|
|
801
|
+
declare module "Binaries/Nodejs/lib/core/generator/internal/CommonGenerator" {
|
|
802
|
+
export = CommonGenerator;
|
|
803
|
+
class CommonGenerator {
|
|
804
|
+
static process_method_arguments(existing_string_builder: any, common_command: any, type_array: any, name_array: any, handlers: any): void;
|
|
805
|
+
static process_method_arguments_names(existing_string_builder: any, common_command: any, name_array: any, handlers: any): void;
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
declare module "Binaries/Nodejs/lib/core/generator/handler/CreateInstanceGeneratorHandler" {
|
|
809
|
+
export = CreateInstanceGeneratorHandler;
|
|
810
|
+
class CreateInstanceGeneratorHandler extends AbstractGeneratorHandler {
|
|
811
|
+
}
|
|
812
|
+
import AbstractGeneratorHandler = require("Binaries/Nodejs/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
813
|
+
}
|
|
814
|
+
declare module "Binaries/Nodejs/lib/core/generator/internal/NodejsStringBuilder" {
|
|
815
|
+
export = NodejsStringBuilder;
|
|
816
|
+
class NodejsStringBuilder {
|
|
817
|
+
string: string;
|
|
818
|
+
append(string: any): void;
|
|
819
|
+
getString(): string;
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
declare module "Binaries/Nodejs/lib/core/generator/handler/shared/SharedArgumentNameHandler" {
|
|
823
|
+
export = SharedArgumentNameHandler;
|
|
824
|
+
class SharedArgumentNameHandler extends AbstractGeneratorHandler {
|
|
825
|
+
}
|
|
826
|
+
import AbstractGeneratorHandler = require("Binaries/Nodejs/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
827
|
+
}
|
|
828
|
+
declare module "Binaries/Nodejs/lib/core/generator/handler/shared/SharedMethodNameHandler" {
|
|
829
|
+
export = SharedMethodNameHandler;
|
|
830
|
+
class SharedMethodNameHandler extends AbstractGeneratorHandler {
|
|
831
|
+
is_numeric_char(c: any): boolean;
|
|
832
|
+
}
|
|
833
|
+
import AbstractGeneratorHandler = require("Binaries/Nodejs/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
834
|
+
}
|
|
835
|
+
declare module "Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedBodyHandler" {
|
|
836
|
+
export = SharedBodyHandler;
|
|
837
|
+
class SharedBodyHandler extends AbstractGeneratorHandler {
|
|
838
|
+
}
|
|
839
|
+
import AbstractGeneratorHandler = require("Binaries/Nodejs/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
840
|
+
}
|
|
841
|
+
declare module "Binaries/Nodejs/lib/core/generator/handler/shared/SharedClassNameHandler" {
|
|
842
|
+
export = SharedClassNameHandler;
|
|
843
|
+
class SharedClassNameHandler extends AbstractGeneratorHandler {
|
|
844
|
+
is_numeric_char(c: any): boolean;
|
|
845
|
+
}
|
|
846
|
+
import AbstractGeneratorHandler = require("Binaries/Nodejs/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
847
|
+
}
|
|
848
|
+
declare module "Binaries/Nodejs/lib/core/generator/handler/shared/SharedClassInstanceHandler" {
|
|
849
|
+
export = SharedClassInstanceHandler;
|
|
850
|
+
class SharedClassInstanceHandler extends AbstractGeneratorHandler {
|
|
851
|
+
}
|
|
852
|
+
import AbstractGeneratorHandler = require("Binaries/Nodejs/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
853
|
+
}
|
|
854
|
+
declare module "Binaries/Nodejs/lib/core/generator/handler/shared/SharedReturnTypeHandler" {
|
|
855
|
+
export = SharedReturnTypeHandler;
|
|
856
|
+
class SharedReturnTypeHandler extends AbstractGeneratorHandler {
|
|
857
|
+
}
|
|
858
|
+
import AbstractGeneratorHandler = require("Binaries/Nodejs/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
859
|
+
}
|
|
860
|
+
declare module "Binaries/Nodejs/lib/core/generator/utils/StringUtils" {
|
|
861
|
+
export = StringUtils;
|
|
862
|
+
class StringUtils {
|
|
863
|
+
static capitalizeFirstLetter(string: any): any;
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
declare module "Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler" {
|
|
867
|
+
export = SharedCreateInstanceBodyHandler;
|
|
868
|
+
class SharedCreateInstanceBodyHandler extends AbstractGeneratorHandler {
|
|
869
|
+
}
|
|
870
|
+
import AbstractGeneratorHandler = require("Binaries/Nodejs/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
871
|
+
}
|
|
872
|
+
declare module "Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetTypeBodyHandler" {
|
|
873
|
+
export = SharedGetTypeBodyHandler;
|
|
874
|
+
class SharedGetTypeBodyHandler extends AbstractGeneratorHandler {
|
|
875
|
+
}
|
|
876
|
+
import AbstractGeneratorHandler = require("Binaries/Nodejs/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
877
|
+
}
|
|
878
|
+
declare module "Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler" {
|
|
879
|
+
export = SharedInvokeInstanceMethodBodyHandler;
|
|
880
|
+
class SharedInvokeInstanceMethodBodyHandler extends AbstractGeneratorHandler {
|
|
881
|
+
}
|
|
882
|
+
import AbstractGeneratorHandler = require("Binaries/Nodejs/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
883
|
+
}
|
|
884
|
+
declare module "Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler" {
|
|
885
|
+
export = SharedInvokeStaticMethodBodyHandler;
|
|
886
|
+
class SharedInvokeStaticMethodBodyHandler extends AbstractGeneratorHandler {
|
|
887
|
+
}
|
|
888
|
+
import AbstractGeneratorHandler = require("Binaries/Nodejs/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
889
|
+
}
|
|
890
|
+
declare module "Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler" {
|
|
891
|
+
export = SharedGetStaticFieldBodyHandler;
|
|
892
|
+
class SharedGetStaticFieldBodyHandler extends AbstractGeneratorHandler {
|
|
893
|
+
}
|
|
894
|
+
import AbstractGeneratorHandler = require("Binaries/Nodejs/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
895
|
+
}
|
|
896
|
+
declare module "Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler" {
|
|
897
|
+
export = SharedGetInstanceFieldBodyHandler;
|
|
898
|
+
class SharedGetInstanceFieldBodyHandler extends AbstractGeneratorHandler {
|
|
899
|
+
}
|
|
900
|
+
import AbstractGeneratorHandler = require("Binaries/Nodejs/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
901
|
+
}
|
|
902
|
+
declare module "Binaries/Nodejs/lib/core/generator/handler/GetTypeGeneratorHandler" {
|
|
903
|
+
export = GetTypeGeneratorHandler;
|
|
904
|
+
class GetTypeGeneratorHandler extends AbstractGeneratorHandler {
|
|
905
|
+
}
|
|
906
|
+
import AbstractGeneratorHandler = require("Binaries/Nodejs/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
907
|
+
}
|
|
908
|
+
declare module "Binaries/Nodejs/lib/core/generator/handler/InvokeInstanceMethodGeneratorHandler" {
|
|
909
|
+
export = InvokeInstanceMethodGeneratorHandler;
|
|
910
|
+
class InvokeInstanceMethodGeneratorHandler extends AbstractGeneratorHandler {
|
|
911
|
+
}
|
|
912
|
+
import AbstractGeneratorHandler = require("Binaries/Nodejs/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
913
|
+
}
|
|
914
|
+
declare module "Binaries/Nodejs/lib/core/generator/handler/InvokeStaticMethodGeneratorHandler" {
|
|
915
|
+
export = InvokeStaticMethodGeneratorHandler;
|
|
916
|
+
class InvokeStaticMethodGeneratorHandler extends AbstractGeneratorHandler {
|
|
917
|
+
}
|
|
918
|
+
import AbstractGeneratorHandler = require("Binaries/Nodejs/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
919
|
+
}
|
|
920
|
+
declare module "Binaries/Nodejs/lib/core/generator/handler/GetStaticFieldGeneratorHandler" {
|
|
921
|
+
export = GetStaticFieldGeneratorHandler;
|
|
922
|
+
class GetStaticFieldGeneratorHandler extends AbstractGeneratorHandler {
|
|
923
|
+
}
|
|
924
|
+
import AbstractGeneratorHandler = require("Binaries/Nodejs/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
925
|
+
}
|
|
926
|
+
declare module "Binaries/Nodejs/lib/core/generator/handler/GetInstanceFieldGeneratorHandler" {
|
|
927
|
+
export = GetInstanceFieldGeneratorHandler;
|
|
928
|
+
class GetInstanceFieldGeneratorHandler extends AbstractGeneratorHandler {
|
|
929
|
+
}
|
|
930
|
+
import AbstractGeneratorHandler = require("Binaries/Nodejs/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
931
|
+
}
|
|
932
|
+
declare module "Binaries/Nodejs/lib/core/generator/handler/InvokeStandaloneMethodGeneratorHandler" {
|
|
933
|
+
export = InvokeStandaloneMethodGeneratorHandler;
|
|
934
|
+
class InvokeStandaloneMethodGeneratorHandler extends AbstractGeneratorHandler {
|
|
935
|
+
}
|
|
936
|
+
import AbstractGeneratorHandler = require("Binaries/Nodejs/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
937
|
+
}
|
|
938
|
+
declare module "Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedInvokeStandaloneMethodBodyHandler" {
|
|
939
|
+
export = SharedInvokeStandaloneMethodBodyHandler;
|
|
940
|
+
class SharedInvokeStandaloneMethodBodyHandler extends AbstractGeneratorHandler {
|
|
941
|
+
}
|
|
942
|
+
import AbstractGeneratorHandler = require("Binaries/Nodejs/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
943
|
+
}
|
|
944
|
+
declare module "Binaries/Nodejs/lib/core/generator/handler/Handlers" {
|
|
945
|
+
export = Handlers;
|
|
946
|
+
class Handlers {
|
|
947
|
+
GENERATOR_HANDLER: {};
|
|
948
|
+
SHARED_HANDLER: {};
|
|
949
|
+
SHARED_BODY_HANDLER: {};
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
declare module "Binaries/Nodejs/lib/core/generator/handler/GeneratorHandler" {
|
|
953
|
+
export = GeneratorHandler;
|
|
954
|
+
class GeneratorHandler {
|
|
955
|
+
generate(command: any, file_path: any): any[];
|
|
956
|
+
generate_class_file(existing_string_builder: any, class_file_name: any, file_path: any): any;
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
declare module "Binaries/Nodejs/lib/core/handler/AbstractHandler" {
|
|
960
|
+
export = AbstractHandler;
|
|
961
|
+
class AbstractHandler {
|
|
962
|
+
handlers: any[];
|
|
963
|
+
process(command: any): void;
|
|
964
|
+
handleCommand(command: any): void;
|
|
965
|
+
iterate(cmd: any): void;
|
|
966
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
declare module "Binaries/Nodejs/lib/core/handler/ArrayGetItemHandler" {
|
|
970
|
+
const _exports: ArrayGetItemHandler;
|
|
971
|
+
export = _exports;
|
|
972
|
+
class ArrayGetItemHandler extends AbstractHandler {
|
|
973
|
+
requiredParametersCount: number;
|
|
974
|
+
process(command: any): any;
|
|
975
|
+
}
|
|
976
|
+
import AbstractHandler = require("Binaries/Nodejs/lib/core/handler/AbstractHandler");
|
|
977
|
+
}
|
|
978
|
+
declare module "Binaries/Nodejs/lib/core/handler/ArrayGetRankHandler" {
|
|
979
|
+
const _exports: ArrayGetRankHandler;
|
|
980
|
+
export = _exports;
|
|
981
|
+
class ArrayGetRankHandler extends AbstractHandler {
|
|
982
|
+
requiredParametersCount: number;
|
|
983
|
+
process(command: any): number;
|
|
984
|
+
}
|
|
985
|
+
import AbstractHandler = require("Binaries/Nodejs/lib/core/handler/AbstractHandler");
|
|
986
|
+
}
|
|
987
|
+
declare module "Binaries/Nodejs/lib/core/handler/ArrayGetSizeHandler" {
|
|
988
|
+
const _exports: ArrayGetSizeHandler;
|
|
989
|
+
export = _exports;
|
|
990
|
+
class ArrayGetSizeHandler extends AbstractHandler {
|
|
991
|
+
requiredParametersCount: number;
|
|
992
|
+
process(command: any): number;
|
|
993
|
+
}
|
|
994
|
+
import AbstractHandler = require("Binaries/Nodejs/lib/core/handler/AbstractHandler");
|
|
995
|
+
}
|
|
996
|
+
declare module "Binaries/Nodejs/lib/core/handler/ArrayHandler" {
|
|
997
|
+
const _exports: ArrayHandler;
|
|
998
|
+
export = _exports;
|
|
999
|
+
class ArrayHandler extends AbstractHandler {
|
|
1000
|
+
process(command: any): any;
|
|
1001
|
+
}
|
|
1002
|
+
import AbstractHandler = require("Binaries/Nodejs/lib/core/handler/AbstractHandler");
|
|
1003
|
+
}
|
|
1004
|
+
declare module "Binaries/Nodejs/lib/core/handler/ArraySetItemHandler" {
|
|
1005
|
+
const _exports: ArraySetItemHandler;
|
|
1006
|
+
export = _exports;
|
|
1007
|
+
class ArraySetItemHandler extends AbstractHandler {
|
|
1008
|
+
requiredParametersCount: number;
|
|
1009
|
+
process(command: any): number;
|
|
1010
|
+
}
|
|
1011
|
+
import AbstractHandler = require("Binaries/Nodejs/lib/core/handler/AbstractHandler");
|
|
1012
|
+
}
|
|
1013
|
+
declare module "Binaries/Nodejs/lib/core/handler/CastingHandler" {
|
|
1014
|
+
const _exports: CastingHandler;
|
|
1015
|
+
export = _exports;
|
|
1016
|
+
class CastingHandler extends AbstractHandler {
|
|
1017
|
+
}
|
|
1018
|
+
import AbstractHandler = require("Binaries/Nodejs/lib/core/handler/AbstractHandler");
|
|
1019
|
+
}
|
|
1020
|
+
declare module "Binaries/Nodejs/lib/core/handler/CreateClassInstanceHandler" {
|
|
1021
|
+
const _exports: CreateClassInstanceHandler;
|
|
1022
|
+
export = _exports;
|
|
1023
|
+
class CreateClassInstanceHandler extends AbstractHandler {
|
|
1024
|
+
requiredParametersCount: number;
|
|
1025
|
+
process(command: any): any;
|
|
1026
|
+
}
|
|
1027
|
+
import AbstractHandler = require("Binaries/Nodejs/lib/core/handler/AbstractHandler");
|
|
1028
|
+
}
|
|
1029
|
+
declare module "Binaries/Nodejs/lib/utils/uuid/rng" {
|
|
1030
|
+
function _exports(): Uint8Array<ArrayBuffer>;
|
|
1031
|
+
export = _exports;
|
|
1032
|
+
}
|
|
1033
|
+
declare module "Binaries/Nodejs/lib/utils/uuid/REGEX" {
|
|
1034
|
+
const _exports: RegExp;
|
|
1035
|
+
export = _exports;
|
|
1036
|
+
}
|
|
1037
|
+
declare module "Binaries/Nodejs/lib/utils/uuid/validate" {
|
|
1038
|
+
export = validate;
|
|
1039
|
+
function validate(uuid: any): boolean;
|
|
1040
|
+
}
|
|
1041
|
+
declare module "Binaries/Nodejs/lib/utils/uuid/stringify" {
|
|
1042
|
+
export = stringify;
|
|
1043
|
+
function stringify(arr: any, offset?: number): string;
|
|
1044
|
+
}
|
|
1045
|
+
declare module "Binaries/Nodejs/lib/utils/uuid/v4" {
|
|
1046
|
+
export = v4;
|
|
1047
|
+
function v4(options: any, buf: any, offset: any): any;
|
|
1048
|
+
}
|
|
1049
|
+
declare module "Binaries/Nodejs/lib/core/referenceCache/ReferencesCache" {
|
|
1050
|
+
export = ReferencesCache;
|
|
1051
|
+
class ReferencesCache {
|
|
1052
|
+
static getInstance(): any;
|
|
1053
|
+
cacheReference(reference: any): any;
|
|
1054
|
+
resolveReference(id: any): any;
|
|
1055
|
+
deleteReference(referenceGuid: any): number;
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
declare module "Binaries/Nodejs/lib/core/handler/DestructReferenceHandler" {
|
|
1059
|
+
const _exports: DestructReferenceHandler;
|
|
1060
|
+
export = _exports;
|
|
1061
|
+
class DestructReferenceHandler extends AbstractHandler {
|
|
1062
|
+
process(command: any): any;
|
|
1063
|
+
}
|
|
1064
|
+
import AbstractHandler = require("Binaries/Nodejs/lib/core/handler/AbstractHandler");
|
|
1065
|
+
}
|
|
1066
|
+
declare module "Binaries/Nodejs/lib/core/namespaceCache/NamespaceCache" {
|
|
1067
|
+
export = NamespaceCache;
|
|
1068
|
+
class NamespaceCache {
|
|
1069
|
+
static _instance: null;
|
|
1070
|
+
namespaceCache: any[];
|
|
1071
|
+
cacheNamespace(namespaceRegex: any): void;
|
|
1072
|
+
isNamespaceCacheEmpty(): boolean;
|
|
1073
|
+
isTypeAllowed(typeToCheck: any): boolean;
|
|
1074
|
+
getCachedNamespaces(): any[];
|
|
1075
|
+
clearCache(): number;
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
declare module "Binaries/Nodejs/lib/core/handler/EnableNamespaceHandler" {
|
|
1079
|
+
const _exports: EnableNamespaceHandler;
|
|
1080
|
+
export = _exports;
|
|
1081
|
+
class EnableNamespaceHandler extends AbstractHandler {
|
|
1082
|
+
requiredParametersCount: number;
|
|
1083
|
+
process(command: any): number;
|
|
1084
|
+
}
|
|
1085
|
+
import AbstractHandler = require("Binaries/Nodejs/lib/core/handler/AbstractHandler");
|
|
1086
|
+
}
|
|
1087
|
+
declare module "Binaries/Nodejs/lib/core/typeCache/TypeCache" {
|
|
1088
|
+
export = TypeCache;
|
|
1089
|
+
class TypeCache {
|
|
1090
|
+
static _instance: null;
|
|
1091
|
+
typeCache: any[];
|
|
1092
|
+
cacheType(typRegex: any): void;
|
|
1093
|
+
isTypeCacheEmpty(): boolean;
|
|
1094
|
+
isTypeAllowed(typeToCheck: any): boolean;
|
|
1095
|
+
getCachedTypes(): any[];
|
|
1096
|
+
clearCache(): number;
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
declare module "Binaries/Nodejs/lib/core/handler/EnableTypeHandler" {
|
|
1100
|
+
const _exports: EnableTypeHandler;
|
|
1101
|
+
export = _exports;
|
|
1102
|
+
class EnableTypeHandler extends AbstractHandler {
|
|
1103
|
+
requiredParametersCount: number;
|
|
1104
|
+
process(command: any): number;
|
|
1105
|
+
}
|
|
1106
|
+
import AbstractHandler = require("Binaries/Nodejs/lib/core/handler/AbstractHandler");
|
|
1107
|
+
}
|
|
1108
|
+
declare module "Binaries/Nodejs/lib/core/handler/GetGlobalStaticFieldHandler" {
|
|
1109
|
+
const _exports: GetGlobalStaticFieldHandler;
|
|
1110
|
+
export = _exports;
|
|
1111
|
+
class GetGlobalStaticFieldHandler extends AbstractHandler {
|
|
1112
|
+
requiredParametersCount: number;
|
|
1113
|
+
process(command: any): any;
|
|
1114
|
+
}
|
|
1115
|
+
import AbstractHandler = require("Binaries/Nodejs/lib/core/handler/AbstractHandler");
|
|
1116
|
+
}
|
|
1117
|
+
declare module "Binaries/Nodejs/lib/core/handler/GetInstanceFieldHandler" {
|
|
1118
|
+
const _exports: GetInstanceFieldHandler;
|
|
1119
|
+
export = _exports;
|
|
1120
|
+
class GetInstanceFieldHandler extends AbstractHandler {
|
|
1121
|
+
requiredParametersCount: number;
|
|
1122
|
+
process(command: any): any;
|
|
1123
|
+
}
|
|
1124
|
+
import AbstractHandler = require("Binaries/Nodejs/lib/core/handler/AbstractHandler");
|
|
1125
|
+
}
|
|
1126
|
+
declare module "Binaries/Nodejs/lib/core/handler/GetStaticFieldHandler" {
|
|
1127
|
+
const _exports: GetStaticFieldHandler;
|
|
1128
|
+
export = _exports;
|
|
1129
|
+
class GetStaticFieldHandler extends AbstractHandler {
|
|
1130
|
+
requiredParametersCount: number;
|
|
1131
|
+
process(command: any): any;
|
|
1132
|
+
}
|
|
1133
|
+
import AbstractHandler = require("Binaries/Nodejs/lib/core/handler/AbstractHandler");
|
|
1134
|
+
}
|
|
1135
|
+
declare module "Binaries/Nodejs/lib/core/handler/LoadLibraryHandler" {
|
|
1136
|
+
const _exports: LoadLibraryHandler;
|
|
1137
|
+
export = _exports;
|
|
1138
|
+
class LoadLibraryHandler extends AbstractHandler {
|
|
1139
|
+
static loadedLibraries: any[];
|
|
1140
|
+
requiredParametersCount: number;
|
|
1141
|
+
process(command: any): number;
|
|
1142
|
+
getLoadedLibraries(): any[];
|
|
1143
|
+
}
|
|
1144
|
+
import AbstractHandler = require("Binaries/Nodejs/lib/core/handler/AbstractHandler");
|
|
1145
|
+
}
|
|
1146
|
+
declare module "Binaries/Nodejs/lib/core/handler/GetTypeHandler" {
|
|
1147
|
+
const _exports: GetTypeHandler;
|
|
1148
|
+
export = _exports;
|
|
1149
|
+
class GetTypeHandler extends AbstractHandler {
|
|
1150
|
+
requiredParametersCount: number;
|
|
1151
|
+
namespaceCache: NamespaceCache;
|
|
1152
|
+
typeCache: TypeCache;
|
|
1153
|
+
process(command: any): any;
|
|
1154
|
+
getAvailableTypes(): any[];
|
|
1155
|
+
}
|
|
1156
|
+
import AbstractHandler = require("Binaries/Nodejs/lib/core/handler/AbstractHandler");
|
|
1157
|
+
import NamespaceCache = require("Binaries/Nodejs/lib/core/namespaceCache/NamespaceCache");
|
|
1158
|
+
import TypeCache = require("Binaries/Nodejs/lib/core/typeCache/TypeCache");
|
|
1159
|
+
}
|
|
1160
|
+
declare module "Binaries/Nodejs/lib/core/handler/ValueHandler" {
|
|
1161
|
+
const _exports: ValueHandler;
|
|
1162
|
+
export = _exports;
|
|
1163
|
+
class ValueHandler extends AbstractHandler {
|
|
1164
|
+
process(command: any): any;
|
|
1165
|
+
}
|
|
1166
|
+
import AbstractHandler = require("Binaries/Nodejs/lib/core/handler/AbstractHandler");
|
|
1167
|
+
}
|
|
1168
|
+
declare module "Binaries/Nodejs/lib/core/handler/InvokeStaticMethodHandler" {
|
|
1169
|
+
const _exports: InvokeStaticMethodHandler;
|
|
1170
|
+
export = _exports;
|
|
1171
|
+
class InvokeStaticMethodHandler extends AbstractHandler {
|
|
1172
|
+
requiredParametersCount: number;
|
|
1173
|
+
process(command: any): any;
|
|
1174
|
+
}
|
|
1175
|
+
import AbstractHandler = require("Binaries/Nodejs/lib/core/handler/AbstractHandler");
|
|
1176
|
+
}
|
|
1177
|
+
declare module "Binaries/Nodejs/lib/core/handler/SetStaticFieldHandler" {
|
|
1178
|
+
const _exports: SetStaticFieldHandler;
|
|
1179
|
+
export = _exports;
|
|
1180
|
+
class SetStaticFieldHandler extends AbstractHandler {
|
|
1181
|
+
requiredParametersCount: number;
|
|
1182
|
+
process(command: any): number;
|
|
1183
|
+
}
|
|
1184
|
+
import AbstractHandler = require("Binaries/Nodejs/lib/core/handler/AbstractHandler");
|
|
1185
|
+
}
|
|
1186
|
+
declare module "Binaries/Nodejs/lib/core/handler/ResolveReferenceHandler" {
|
|
1187
|
+
const _exports: ResolveReferenceHandler;
|
|
1188
|
+
export = _exports;
|
|
1189
|
+
class ResolveReferenceHandler extends AbstractHandler {
|
|
1190
|
+
process(command: any): any;
|
|
1191
|
+
}
|
|
1192
|
+
import AbstractHandler = require("Binaries/Nodejs/lib/core/handler/AbstractHandler");
|
|
1193
|
+
}
|
|
1194
|
+
declare module "Binaries/Nodejs/lib/core/handler/SetInstanceFieldHandler" {
|
|
1195
|
+
const _exports: SetInstanceFieldHandler;
|
|
1196
|
+
export = _exports;
|
|
1197
|
+
class SetInstanceFieldHandler extends AbstractHandler {
|
|
1198
|
+
requiredParametersCount: number;
|
|
1199
|
+
process(command: any): number;
|
|
1200
|
+
}
|
|
1201
|
+
import AbstractHandler = require("Binaries/Nodejs/lib/core/handler/AbstractHandler");
|
|
1202
|
+
}
|
|
1203
|
+
declare module "Binaries/Nodejs/lib/core/handler/InvokeInstanceMethodHandler" {
|
|
1204
|
+
const _exports: InvokeInstanceMethodHandler;
|
|
1205
|
+
export = _exports;
|
|
1206
|
+
class InvokeInstanceMethodHandler extends AbstractHandler {
|
|
1207
|
+
requiredParametersCount: number;
|
|
1208
|
+
process(command: any): any;
|
|
1209
|
+
}
|
|
1210
|
+
import AbstractHandler = require("Binaries/Nodejs/lib/core/handler/AbstractHandler");
|
|
1211
|
+
}
|
|
1212
|
+
declare module "Binaries/Nodejs/lib/core/handler/InvokeGlobalMethodHandler" {
|
|
1213
|
+
const _exports: InvokeGlobalMethodHandler;
|
|
1214
|
+
export = _exports;
|
|
1215
|
+
class InvokeGlobalMethodHandler extends AbstractHandler {
|
|
1216
|
+
requiredParametersCount: number;
|
|
1217
|
+
process(command: any): any;
|
|
1218
|
+
}
|
|
1219
|
+
import AbstractHandler = require("Binaries/Nodejs/lib/core/handler/AbstractHandler");
|
|
1220
|
+
}
|
|
1221
|
+
declare module "Binaries/Nodejs/lib/core/handler/InvokeStandaloneMethodHandler" {
|
|
1222
|
+
const _exports: InvokeStandaloneMethodHandler;
|
|
1223
|
+
export = _exports;
|
|
1224
|
+
class InvokeStandaloneMethodHandler extends AbstractHandler {
|
|
1225
|
+
requiredParametersCount: number;
|
|
1226
|
+
process(command: any): any;
|
|
1227
|
+
throwError(type: any, methodName: any): void;
|
|
1228
|
+
}
|
|
1229
|
+
import AbstractHandler = require("Binaries/Nodejs/lib/core/handler/AbstractHandler");
|
|
1230
|
+
}
|
|
1231
|
+
declare module "Binaries/Nodejs/lib/core/handler/Handler" {
|
|
1232
|
+
export class Handler {
|
|
1233
|
+
handleCommand(command: any): Command;
|
|
1234
|
+
parseCommand(response: any, runtimeName: any): Command;
|
|
1235
|
+
}
|
|
1236
|
+
export const handlers: {
|
|
1237
|
+
0: {
|
|
1238
|
+
process(command: any): any;
|
|
1239
|
+
handlers: any[];
|
|
1240
|
+
handleCommand(command: any): void;
|
|
1241
|
+
iterate(cmd: any): void;
|
|
1242
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
1243
|
+
};
|
|
1244
|
+
1: {
|
|
1245
|
+
requiredParametersCount: number;
|
|
1246
|
+
process(command: any): number;
|
|
1247
|
+
getLoadedLibraries(): any[];
|
|
1248
|
+
handlers: any[];
|
|
1249
|
+
handleCommand(command: any): void;
|
|
1250
|
+
iterate(cmd: any): void;
|
|
1251
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
1252
|
+
};
|
|
1253
|
+
2: {
|
|
1254
|
+
requiredParametersCount: number;
|
|
1255
|
+
process(command: any): any;
|
|
1256
|
+
handlers: any[];
|
|
1257
|
+
handleCommand(command: any): void;
|
|
1258
|
+
iterate(cmd: any): void;
|
|
1259
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
1260
|
+
};
|
|
1261
|
+
6: {
|
|
1262
|
+
requiredParametersCount: number;
|
|
1263
|
+
namespaceCache: import("Binaries/Nodejs/lib/core/namespaceCache/NamespaceCache");
|
|
1264
|
+
typeCache: import("Binaries/Nodejs/lib/core/typeCache/TypeCache");
|
|
1265
|
+
process(command: any): any;
|
|
1266
|
+
getAvailableTypes(): any[];
|
|
1267
|
+
handlers: any[];
|
|
1268
|
+
handleCommand(command: any): void;
|
|
1269
|
+
iterate(cmd: any): void;
|
|
1270
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
1271
|
+
};
|
|
1272
|
+
3: {
|
|
1273
|
+
requiredParametersCount: number;
|
|
1274
|
+
process(command: any): any;
|
|
1275
|
+
handlers: any[];
|
|
1276
|
+
handleCommand(command: any): void;
|
|
1277
|
+
iterate(cmd: any): void;
|
|
1278
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
1279
|
+
};
|
|
1280
|
+
4: {
|
|
1281
|
+
requiredParametersCount: number;
|
|
1282
|
+
process(command: any): number;
|
|
1283
|
+
handlers: any[];
|
|
1284
|
+
handleCommand(command: any): void;
|
|
1285
|
+
iterate(cmd: any): void;
|
|
1286
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
1287
|
+
};
|
|
1288
|
+
5: {
|
|
1289
|
+
requiredParametersCount: number;
|
|
1290
|
+
process(command: any): any;
|
|
1291
|
+
handlers: any[];
|
|
1292
|
+
handleCommand(command: any): void;
|
|
1293
|
+
iterate(cmd: any): void;
|
|
1294
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
1295
|
+
};
|
|
1296
|
+
7: {
|
|
1297
|
+
process(command: any): any;
|
|
1298
|
+
handlers: any[];
|
|
1299
|
+
handleCommand(command: any): void;
|
|
1300
|
+
iterate(cmd: any): void;
|
|
1301
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
1302
|
+
};
|
|
1303
|
+
12: {
|
|
1304
|
+
process(command: any): void;
|
|
1305
|
+
handlers: any[];
|
|
1306
|
+
handleCommand(command: any): void;
|
|
1307
|
+
iterate(cmd: any): void;
|
|
1308
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
1309
|
+
};
|
|
1310
|
+
13: {
|
|
1311
|
+
requiredParametersCount: number;
|
|
1312
|
+
process(command: any): any;
|
|
1313
|
+
handlers: any[];
|
|
1314
|
+
handleCommand(command: any): void;
|
|
1315
|
+
iterate(cmd: any): void;
|
|
1316
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
1317
|
+
};
|
|
1318
|
+
25: {
|
|
1319
|
+
requiredParametersCount: number;
|
|
1320
|
+
process(command: any): number;
|
|
1321
|
+
handlers: any[];
|
|
1322
|
+
handleCommand(command: any): void;
|
|
1323
|
+
iterate(cmd: any): void;
|
|
1324
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
1325
|
+
};
|
|
1326
|
+
9: {
|
|
1327
|
+
requiredParametersCount: number;
|
|
1328
|
+
process(command: any): any;
|
|
1329
|
+
handlers: any[];
|
|
1330
|
+
handleCommand(command: any): void;
|
|
1331
|
+
iterate(cmd: any): void;
|
|
1332
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
1333
|
+
};
|
|
1334
|
+
37: {
|
|
1335
|
+
requiredParametersCount: number;
|
|
1336
|
+
process(command: any): any;
|
|
1337
|
+
throwError(type: any, methodName: any): void;
|
|
1338
|
+
handlers: any[];
|
|
1339
|
+
handleCommand(command: any): void;
|
|
1340
|
+
iterate(cmd: any): void;
|
|
1341
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
1342
|
+
};
|
|
1343
|
+
16: {
|
|
1344
|
+
requiredParametersCount: number;
|
|
1345
|
+
process(command: any): any;
|
|
1346
|
+
handlers: any[];
|
|
1347
|
+
handleCommand(command: any): void;
|
|
1348
|
+
iterate(cmd: any): void;
|
|
1349
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
1350
|
+
};
|
|
1351
|
+
17: {
|
|
1352
|
+
process(command: any): any;
|
|
1353
|
+
handlers: any[];
|
|
1354
|
+
handleCommand(command: any): void;
|
|
1355
|
+
iterate(cmd: any): void;
|
|
1356
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
1357
|
+
};
|
|
1358
|
+
19: {
|
|
1359
|
+
requiredParametersCount: number;
|
|
1360
|
+
process(command: any): any;
|
|
1361
|
+
handlers: any[];
|
|
1362
|
+
handleCommand(command: any): void;
|
|
1363
|
+
iterate(cmd: any): void;
|
|
1364
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
1365
|
+
};
|
|
1366
|
+
20: {
|
|
1367
|
+
requiredParametersCount: number;
|
|
1368
|
+
process(command: any): number;
|
|
1369
|
+
handlers: any[];
|
|
1370
|
+
handleCommand(command: any): void;
|
|
1371
|
+
iterate(cmd: any): void;
|
|
1372
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
1373
|
+
};
|
|
1374
|
+
21: {
|
|
1375
|
+
requiredParametersCount: number;
|
|
1376
|
+
process(command: any): number;
|
|
1377
|
+
handlers: any[];
|
|
1378
|
+
handleCommand(command: any): void;
|
|
1379
|
+
iterate(cmd: any): void;
|
|
1380
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
1381
|
+
};
|
|
1382
|
+
22: {
|
|
1383
|
+
requiredParametersCount: number;
|
|
1384
|
+
process(command: any): number;
|
|
1385
|
+
handlers: any[];
|
|
1386
|
+
handleCommand(command: any): void;
|
|
1387
|
+
iterate(cmd: any): void;
|
|
1388
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
1389
|
+
};
|
|
1390
|
+
23: {
|
|
1391
|
+
process(command: any): any;
|
|
1392
|
+
handlers: any[];
|
|
1393
|
+
handleCommand(command: any): void;
|
|
1394
|
+
iterate(cmd: any): void;
|
|
1395
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
1396
|
+
};
|
|
1397
|
+
34: {
|
|
1398
|
+
requiredParametersCount: number;
|
|
1399
|
+
process(command: any): number;
|
|
1400
|
+
handlers: any[];
|
|
1401
|
+
handleCommand(command: any): void;
|
|
1402
|
+
iterate(cmd: any): void;
|
|
1403
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
1404
|
+
};
|
|
1405
|
+
35: {
|
|
1406
|
+
requiredParametersCount: number;
|
|
1407
|
+
process(command: any): number;
|
|
1408
|
+
handlers: any[];
|
|
1409
|
+
handleCommand(command: any): void;
|
|
1410
|
+
iterate(cmd: any): void;
|
|
1411
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
1412
|
+
};
|
|
1413
|
+
};
|
|
1414
|
+
import { Command } from "Binaries/Nodejs";
|
|
1415
|
+
}
|
|
1416
|
+
declare module "Binaries/Nodejs/lib/core/handler/SetGlobalStaticFieldHandler" {
|
|
1417
|
+
const _exports: SetGlobalStaticFieldHandler;
|
|
1418
|
+
export = _exports;
|
|
1419
|
+
class SetGlobalStaticFieldHandler extends AbstractHandler {
|
|
1420
|
+
requiredParametersCount: number;
|
|
1421
|
+
}
|
|
1422
|
+
import AbstractHandler = require("Binaries/Nodejs/lib/core/handler/AbstractHandler");
|
|
1423
|
+
}
|
|
1424
|
+
declare module "Binaries/Nodejs/lib/utils/RuntimeLogger" {
|
|
1425
|
+
export = RuntimeLogger;
|
|
1426
|
+
class RuntimeLogger {
|
|
1427
|
+
static notLoggedYet: boolean;
|
|
1428
|
+
static getRuntimeInfo(): string;
|
|
1429
|
+
static printRuntimeInfo(): void;
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
declare module "Binaries/Nodejs/lib/core/receiver/Receiver" {
|
|
1433
|
+
export = Receiver;
|
|
1434
|
+
class Receiver {
|
|
1435
|
+
static connectionData: InMemoryConnectionData;
|
|
1436
|
+
/**
|
|
1437
|
+
* @param {number[]} messageByteArray
|
|
1438
|
+
*/
|
|
1439
|
+
static sendCommand(messageByteArray: number[]): Int8Array<ArrayBuffer>;
|
|
1440
|
+
static heartBeat(messageByteArray: any): Int8Array<ArrayBuffer>;
|
|
1441
|
+
Receiver(): void;
|
|
1442
|
+
}
|
|
1443
|
+
import { InMemoryConnectionData } from "Binaries/Nodejs";
|
|
1444
|
+
}
|
|
1445
|
+
declare module "Binaries/Nodejs/lib/core/receiver/ReceiverNative" {
|
|
1446
|
+
export {};
|
|
1447
|
+
}
|
|
1448
|
+
declare module "Binaries/Nodejs/lib/core/transmitter/TransmitterWrapper" {
|
|
1449
|
+
export = TransmitterWrapper;
|
|
1450
|
+
class TransmitterWrapper {
|
|
1451
|
+
static initialize(): any;
|
|
1452
|
+
static activate(licenseKey: any): any;
|
|
1453
|
+
static sendCommand(messageArray: any): any;
|
|
1454
|
+
static setConfigSource(configSource: any): any;
|
|
1455
|
+
}
|
|
1456
|
+
}
|
|
1457
|
+
declare module "Binaries/Nodejs/lib/core/transmitter/Transmitter" {
|
|
1458
|
+
export = Transmitter;
|
|
1459
|
+
class Transmitter {
|
|
1460
|
+
static initialize(): any;
|
|
1461
|
+
static sendCommand(messageArray: any): any;
|
|
1462
|
+
static activate: (licenseKey: any) => any;
|
|
1463
|
+
static setConfigSource(configSource: any): any;
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
declare module "Binaries/Nodejs/lib/sdk/tools/JsonFileResolver" {
|
|
1467
|
+
export = JsonFileResolver;
|
|
1468
|
+
class JsonFileResolver {
|
|
1469
|
+
constructor(path: any);
|
|
1470
|
+
path: any;
|
|
1471
|
+
jsonObject: any;
|
|
1472
|
+
getLicenseKey(): any;
|
|
1473
|
+
getRuntimes(): any;
|
|
1474
|
+
getRuntime(runtimeName: any, configName: any): any;
|
|
1475
|
+
getChannel(runtimeName: any, configName: any): any;
|
|
1476
|
+
getChannelType(runtimeName: any, configName: any): any;
|
|
1477
|
+
getChannelHost(runtimeName: any, configName: any): any;
|
|
1478
|
+
getChannelPort(runtimeName: any, configName: any): any;
|
|
1479
|
+
getModules(runtimeName: any, configName: any): any;
|
|
1480
|
+
}
|
|
1481
|
+
}
|
|
1482
|
+
declare module "Binaries/Nodejs/lib/utils/connectionData/TcpConnectionData" {
|
|
1483
|
+
export = TcpConnectionData;
|
|
1484
|
+
/**
|
|
1485
|
+
* @extends IConnectionData
|
|
1486
|
+
*/
|
|
1487
|
+
class TcpConnectionData extends IConnectionData {
|
|
1488
|
+
constructor(hostname: any, port: any);
|
|
1489
|
+
_port: any;
|
|
1490
|
+
_hostname: any;
|
|
1491
|
+
_connectionType: 1;
|
|
1492
|
+
ipAddress: string | null;
|
|
1493
|
+
get connectionType(): 1;
|
|
1494
|
+
get hostname(): any;
|
|
1495
|
+
/**
|
|
1496
|
+
* @param {TcpConnectionData} other
|
|
1497
|
+
* @returns {boolean}
|
|
1498
|
+
*/
|
|
1499
|
+
equals(other: TcpConnectionData): boolean;
|
|
1500
|
+
/**
|
|
1501
|
+
* @param {string} hostname
|
|
1502
|
+
* @returns {string|null}
|
|
1503
|
+
*/
|
|
1504
|
+
resolveIpAddress(hostname: string): string | null;
|
|
1505
|
+
serializeConnectionData(): 1[];
|
|
1506
|
+
#private;
|
|
1507
|
+
}
|
|
1508
|
+
import { IConnectionData } from "Binaries/Nodejs";
|
|
1509
|
+
}
|
|
1510
|
+
declare module "Binaries/Nodejs/lib/sdk/ConfigRuntimeFactory" {
|
|
1511
|
+
export = ConfigRuntimeFactory;
|
|
1512
|
+
/**
|
|
1513
|
+
* The ConfigRuntimeFactory class provides methods for creating runtime contexts.
|
|
1514
|
+
* Each method corresponds to a specific runtime (CLR, JVM, .NET Core, Perl, Ruby, Node.js, Python) and returns a RuntimeContext instance for that runtime.
|
|
1515
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
1516
|
+
*/
|
|
1517
|
+
class ConfigRuntimeFactory {
|
|
1518
|
+
constructor(path: any);
|
|
1519
|
+
path: any;
|
|
1520
|
+
/**
|
|
1521
|
+
* Creates RuntimeContext instance to interact with the .NET Framework runtime.
|
|
1522
|
+
* @param {string} [configName="default"] - The name of the configuration to use (optional).
|
|
1523
|
+
* @return {RuntimeContext} a RuntimeContext instance for the .NET Framework runtime
|
|
1524
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
1525
|
+
*/
|
|
1526
|
+
clr(configName?: string): RuntimeContext;
|
|
1527
|
+
/**
|
|
1528
|
+
* Creates RuntimeContext instance to interact with the JVM runtime.
|
|
1529
|
+
* @param {string} [configName="default"] - The name of the configuration to use (optional).
|
|
1530
|
+
* @return {RuntimeContext} a RuntimeContext instance for the JVM runtime
|
|
1531
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
1532
|
+
*/
|
|
1533
|
+
jvm(configName?: string): RuntimeContext;
|
|
1534
|
+
/**
|
|
1535
|
+
* Creates RuntimeContext instance to interact with the .NET runtime.
|
|
1536
|
+
* @param {string} [configName="default"] - The name of the configuration to use (optional).
|
|
1537
|
+
* @return {RuntimeContext} a RuntimeContext instance for the .NET runtime
|
|
1538
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
1539
|
+
*/
|
|
1540
|
+
netcore(configName?: string): RuntimeContext;
|
|
1541
|
+
/**
|
|
1542
|
+
* Creates RuntimeContext instance to interact with the Perl runtime.
|
|
1543
|
+
* @param {string} [configName="default"] - The name of the configuration to use (optional).
|
|
1544
|
+
* @return {RuntimeContext} a RuntimeContext instance for the Perl runtime
|
|
1545
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
1546
|
+
*/
|
|
1547
|
+
perl(configName?: string): RuntimeContext;
|
|
1548
|
+
/**
|
|
1549
|
+
* Creates RuntimeContext instance to interact with the Python runtime.
|
|
1550
|
+
* @param {string} [configName="default"] - The name of the configuration to use (optional).
|
|
1551
|
+
* @return {RuntimeContext} a RuntimeContext instance for the Python runtime
|
|
1552
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
1553
|
+
*/
|
|
1554
|
+
python(configName?: string): RuntimeContext;
|
|
1555
|
+
/**
|
|
1556
|
+
* Creates RuntimeContext instance to interact with the Ruby runtime.
|
|
1557
|
+
* @param {string} [configName="default"] - The name of the configuration to use (optional).
|
|
1558
|
+
* @return {RuntimeContext} a RuntimeContext instance for the Ruby runtime
|
|
1559
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
1560
|
+
*/
|
|
1561
|
+
ruby(configName?: string): RuntimeContext;
|
|
1562
|
+
/**
|
|
1563
|
+
* Creates RuntimeContext instance to interact with Node.js runtime.
|
|
1564
|
+
* @param {string} [configName="default"] - The name of the configuration to use (optional).
|
|
1565
|
+
* @return {RuntimeContext} a RuntimeContext instance for the Node.js runtime
|
|
1566
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
1567
|
+
*/
|
|
1568
|
+
nodejs(configName?: string): RuntimeContext;
|
|
1569
|
+
#private;
|
|
1570
|
+
}
|
|
1571
|
+
import { RuntimeContext } from "Binaries/Nodejs";
|
|
1572
|
+
}
|
|
1573
|
+
declare module "Binaries/Nodejs/lib/sdk/Javonet" {
|
|
1574
|
+
/**
|
|
1575
|
+
* The Javonet class is a singleton class that serves as the entry point for interacting with Javonet.
|
|
1576
|
+
* It provides methods to activate and initialize the Javonet SDK.
|
|
1577
|
+
* It supports both in-memory and TCP connections.
|
|
1578
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/javonet-static-class)
|
|
1579
|
+
*/
|
|
1580
|
+
export class Javonet {
|
|
1581
|
+
/**
|
|
1582
|
+
* Initializes Javonet using an in-memory channel on the same machine.
|
|
1583
|
+
* @returns {RuntimeFactory} A RuntimeFactory instance configured for an in-memory connection.
|
|
1584
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/in-memory-channel)
|
|
1585
|
+
*/
|
|
1586
|
+
static inMemory(): RuntimeFactory;
|
|
1587
|
+
/**
|
|
1588
|
+
* Initializes Javonet with a TCP connection to a remote machine.
|
|
1589
|
+
* @param {TcpConnectionData} tcpConnectionData - The tcp connection data of the remote machine.
|
|
1590
|
+
* @returns {RuntimeFactory} A RuntimeFactory instance configured for a TCP connection.
|
|
1591
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/tcp-channel)
|
|
1592
|
+
*/
|
|
1593
|
+
static tcp(tcpConnectionData: TcpConnectionData): RuntimeFactory;
|
|
1594
|
+
/**
|
|
1595
|
+
* Initializes Javonet with a WebSocket connection to a remote machine.
|
|
1596
|
+
* @param {WsConnectionData} wsConnectionData - The WebSocket connection data of the remote machine.
|
|
1597
|
+
* @returns {RuntimeFactory} A RuntimeFactory instance configured for a WebSocket connection.
|
|
1598
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/websocket-channel)
|
|
1599
|
+
*/
|
|
1600
|
+
static ws(wsConnectionData: WsConnectionData): RuntimeFactory;
|
|
1601
|
+
/**
|
|
1602
|
+
* Initializes Javonet with a custom configuration file taken from external source.
|
|
1603
|
+
* Currentyl supported: Configuration file in JSON format
|
|
1604
|
+
* @param {string} configPath - Path to a configuration file.
|
|
1605
|
+
* @returns {ConfigRuntimeFactory} A ConfigRuntimeFactory instance with configuration data.
|
|
1606
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/configure-channel)
|
|
1607
|
+
*/
|
|
1608
|
+
static withConfig(configPath: string): ConfigRuntimeFactory;
|
|
1609
|
+
/**
|
|
1610
|
+
* Activates Javonet with the provided license key.
|
|
1611
|
+
* @param {string} licenseKey - The license key to activate Javonet.
|
|
1612
|
+
* @returns {number} The activation status code.
|
|
1613
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/getting-started/activating-javonet)
|
|
1614
|
+
*/
|
|
1615
|
+
static activate(licenseKey: string): number;
|
|
1616
|
+
static getRuntimeInfo(): string;
|
|
1617
|
+
/**
|
|
1618
|
+
* Sets the configuration source for the Javonet SDK.
|
|
1619
|
+
*
|
|
1620
|
+
* @param {string} configSource - The configuration source.
|
|
1621
|
+
*/
|
|
1622
|
+
static setConfigSource(configSource: string): void;
|
|
1623
|
+
}
|
|
1624
|
+
import TcpConnectionData = require("Binaries/Nodejs/lib/utils/connectionData/TcpConnectionData");
|
|
1625
|
+
import { WsConnectionData } from "Binaries/Nodejs";
|
|
1626
|
+
import { RuntimeFactory } from "Binaries/Nodejs";
|
|
1627
|
+
import ConfigRuntimeFactory = require("Binaries/Nodejs/lib/sdk/ConfigRuntimeFactory");
|
|
1628
|
+
export { TcpConnectionData, WsConnectionData };
|
|
1629
|
+
}
|
|
1630
|
+
declare module "Binaries/Nodejs/lib/sdk/tools/SdkExceptionHelper" {
|
|
1631
|
+
export = sendExceptionToAppInsights;
|
|
1632
|
+
/**
|
|
1633
|
+
*
|
|
1634
|
+
* @param {any} e
|
|
1635
|
+
* @param {string} licenseKey
|
|
1636
|
+
*/
|
|
1637
|
+
function sendExceptionToAppInsights(e: any, licenseKey: string): Promise<any>;
|
|
1638
|
+
}
|
|
1639
|
+
declare module "dist/lib/utils/CommandType" {
|
|
1640
|
+
export let Value: 0;
|
|
1641
|
+
export let LoadLibrary: 1;
|
|
1642
|
+
export let InvokeStaticMethod: 2;
|
|
1643
|
+
export let GetStaticField: 3;
|
|
1644
|
+
export let SetStaticField: 4;
|
|
1645
|
+
export let CreateClassInstance: 5;
|
|
1646
|
+
export let GetType: 6;
|
|
1647
|
+
export let Reference: 7;
|
|
1648
|
+
export let GetModule: 8;
|
|
1649
|
+
export let InvokeInstanceMethod: 9;
|
|
1650
|
+
export let Exception: 10;
|
|
1651
|
+
export let HeartBeat: 11;
|
|
1652
|
+
export let Cast: 12;
|
|
1653
|
+
export let GetInstanceField: 13;
|
|
1654
|
+
export let Optimize: 14;
|
|
1655
|
+
export let GenerateLib: 15;
|
|
1656
|
+
export let InvokeGlobalMethod: 16;
|
|
1657
|
+
export let DestructReference: 17;
|
|
1658
|
+
export let ArrayReference: 18;
|
|
1659
|
+
export let ArrayGetItem: 19;
|
|
1660
|
+
export let ArrayGetSize: 20;
|
|
1661
|
+
export let ArrayGetRank: 21;
|
|
1662
|
+
export let ArraySetItem: 22;
|
|
1663
|
+
export let Array: 23;
|
|
1664
|
+
export let RetrieveArray: 24;
|
|
1665
|
+
export let SetInstanceField: 25;
|
|
1666
|
+
export let InvokeGenericStaticMethod: 26;
|
|
1667
|
+
export let InvokeGenericMethod: 27;
|
|
1668
|
+
export let GetEnumItem: 28;
|
|
1669
|
+
export let GetEnumName: 29;
|
|
1670
|
+
export let GetEnumValue: 30;
|
|
1671
|
+
export let AsRef: 31;
|
|
1672
|
+
export let AsOut: 32;
|
|
1673
|
+
export let GetRefValue: 33;
|
|
1674
|
+
export let EnableNamespace: 34;
|
|
1675
|
+
export let EnableType: 35;
|
|
1676
|
+
export let CreateNull: 36;
|
|
1677
|
+
export let InvokeStandaloneMethod: 37;
|
|
1678
|
+
}
|
|
1679
|
+
declare module "dist/lib/utils/Command" {
|
|
1680
|
+
export = Command;
|
|
1681
|
+
class Command {
|
|
1682
|
+
/**
|
|
1683
|
+
* @param {any} [response]
|
|
1684
|
+
* @param {number} runtimeName
|
|
1685
|
+
*/
|
|
1686
|
+
static createResponse(response?: any, runtimeName: number): Command;
|
|
1687
|
+
/**
|
|
1688
|
+
* @param {any} [response]
|
|
1689
|
+
* @param {number} runtimeName
|
|
1690
|
+
* @method
|
|
1691
|
+
*/
|
|
1692
|
+
static createReference(response?: any, runtimeName: number): Command;
|
|
1693
|
+
/**
|
|
1694
|
+
* @param {any} [response]
|
|
1695
|
+
* @param {number} runtimeName
|
|
1696
|
+
* @returns {Command}
|
|
1697
|
+
* @method
|
|
1698
|
+
*/
|
|
1699
|
+
static createArrayResponse(response?: any, runtimeName: number): Command;
|
|
1700
|
+
/**
|
|
1701
|
+
* Constructs a new Command instance.
|
|
1702
|
+
* @param {number} runtimeName - The runtime name associated with the command.
|
|
1703
|
+
* @param {number} commandType - The type of the command.
|
|
1704
|
+
* @param {any} [payload] - The optional payload of the command.
|
|
1705
|
+
* @method
|
|
1706
|
+
*/
|
|
1707
|
+
constructor(runtimeName: number, commandType: number, payload?: any);
|
|
1708
|
+
runtimeName: number;
|
|
1709
|
+
commandType: number;
|
|
1710
|
+
payload: any;
|
|
1711
|
+
dropFirstPayloadArg(): Command;
|
|
1712
|
+
/**
|
|
1713
|
+
* @param {any} arg
|
|
1714
|
+
* @returns {Command}
|
|
1715
|
+
*/
|
|
1716
|
+
addArgToPayload(arg: any): Command;
|
|
1717
|
+
/**
|
|
1718
|
+
* @param {Command|null} current_command
|
|
1719
|
+
* @returns {Command}
|
|
1720
|
+
*/
|
|
1721
|
+
prependArgToPayload(current_command: Command | null): Command;
|
|
1722
|
+
}
|
|
1723
|
+
}
|
|
1724
|
+
declare module "dist/lib/utils/StringEncodingMode" {
|
|
1725
|
+
export let ASCII: 0;
|
|
1726
|
+
export let UTF8: 1;
|
|
1727
|
+
export let UTF16: 2;
|
|
1728
|
+
export let UTF32: 3;
|
|
1729
|
+
}
|
|
1730
|
+
declare module "dist/lib/core/protocol/TypeDeserializer" {
|
|
1731
|
+
export = TypeDeserializer;
|
|
1732
|
+
class TypeDeserializer {
|
|
1733
|
+
static deserializeCommand(encodedCommand: any): Command;
|
|
1734
|
+
static deserializeString(stringEncodingMode: any, encodedString: any): string;
|
|
1735
|
+
static deserializeInt(encodedInt: any): number;
|
|
1736
|
+
static deserializeBool(encodedBool: any): boolean;
|
|
1737
|
+
static deserializeFloat(encodedFloat: any): number;
|
|
1738
|
+
static deserializeByte(encodedByte: any): number;
|
|
1739
|
+
static deserializeChar(encodedChar: any): number;
|
|
1740
|
+
static deserializeLongLong(encodedLongLong: any): bigint;
|
|
1741
|
+
static deserializeDouble(encodedDouble: any): number;
|
|
1742
|
+
static deserializeULLong(encodedULLong: any): bigint;
|
|
1743
|
+
static deserializeUInt(encodedUInt: any): number;
|
|
1744
|
+
static deserializeNull(encodedNull?: null): null;
|
|
1745
|
+
}
|
|
1746
|
+
import Command = require("@javonet/core/lib/utils/Command");
|
|
1747
|
+
}
|
|
1748
|
+
declare module "dist/lib/utils/Type" {
|
|
1749
|
+
export let JAVONET_COMMAND: 0;
|
|
1750
|
+
export let JAVONET_STRING: 1;
|
|
1751
|
+
export let JAVONET_INTEGER: 2;
|
|
1752
|
+
export let JAVONET_BOOLEAN: 3;
|
|
1753
|
+
export let JAVONET_FLOAT: 4;
|
|
1754
|
+
export let JAVONET_BYTE: 5;
|
|
1755
|
+
export let JAVONET_CHAR: 6;
|
|
1756
|
+
export let JAVONET_LONG_LONG: 7;
|
|
1757
|
+
export let JAVONET_DOUBLE: 8;
|
|
1758
|
+
export let JAVONET_UNSIGNED_LONG_LONG: 9;
|
|
1759
|
+
export let JAVONET_UNSIGNED_INTEGER: 10;
|
|
1760
|
+
export let JAVONET_NULL: 11;
|
|
1761
|
+
}
|
|
1762
|
+
declare module "dist/lib/core/protocol/CommandDeserializer" {
|
|
1763
|
+
export = CommandDeserializer;
|
|
1764
|
+
class CommandDeserializer {
|
|
1765
|
+
constructor(buffer: any);
|
|
1766
|
+
buffer: any;
|
|
1767
|
+
command: Command;
|
|
1768
|
+
position: number;
|
|
1769
|
+
/**
|
|
1770
|
+
* @returns {Command}
|
|
1771
|
+
*/
|
|
1772
|
+
deserialize(): Command;
|
|
1773
|
+
isAtEnd(): boolean;
|
|
1774
|
+
readObject(typeNum: any): any;
|
|
1775
|
+
readCommand(): any;
|
|
1776
|
+
readCommandRecursively(numberOfElementsInPayloadLeft: any, cmd: any): any;
|
|
1777
|
+
readString(): string;
|
|
1778
|
+
readInt(): number;
|
|
1779
|
+
readBool(): boolean;
|
|
1780
|
+
readFloat(): number;
|
|
1781
|
+
readByte(): number;
|
|
1782
|
+
readChar(): number;
|
|
1783
|
+
readLongLong(): bigint;
|
|
1784
|
+
readDouble(): number;
|
|
1785
|
+
readUllong(): bigint;
|
|
1786
|
+
readUInt(): number;
|
|
1787
|
+
readNull(): null;
|
|
1788
|
+
}
|
|
1789
|
+
import Command = require("@javonet/core/lib/utils/Command");
|
|
1790
|
+
}
|
|
1791
|
+
declare module "dist/lib/core/protocol/TypeSerializer" {
|
|
1792
|
+
export = TypeSerializer;
|
|
1793
|
+
class TypeSerializer {
|
|
1794
|
+
static encodePrimitive(payload_item: any): Buffer<ArrayBuffer>;
|
|
1795
|
+
static serializeCommand(command: any): Buffer<ArrayBuffer>;
|
|
1796
|
+
static serializeString(string_value: any): Buffer<ArrayBuffer>;
|
|
1797
|
+
static serializeInt(int_value: any): Buffer<ArrayBuffer>;
|
|
1798
|
+
static serializeBool(bool_value: any): Buffer<ArrayBuffer>;
|
|
1799
|
+
static serializeFloat(float_value: any): Buffer<ArrayBuffer>;
|
|
1800
|
+
static serializeByte(byte_value: any): Buffer<ArrayBuffer>;
|
|
1801
|
+
static serializeChar(char_value: any): Buffer<ArrayBuffer>;
|
|
1802
|
+
static serializeLongLong(longlong_value: any): Buffer<ArrayBuffer>;
|
|
1803
|
+
static serializeDouble(double_value: any): Buffer<ArrayBuffer>;
|
|
1804
|
+
static serializeULLong(ullong_value: any): Buffer<ArrayBuffer>;
|
|
1805
|
+
static serializeUInt(uint_value: any): Buffer<ArrayBuffer>;
|
|
1806
|
+
static serializeNull(): Buffer<ArrayBuffer>;
|
|
1807
|
+
static serializeIntValue(int_value: any): Buffer<ArrayBuffer>;
|
|
1808
|
+
}
|
|
1809
|
+
import { Buffer } from "buffer";
|
|
1810
|
+
}
|
|
1811
|
+
declare module "dist/lib/utils/RuntimeName" {
|
|
1812
|
+
export let Clr: 0;
|
|
1813
|
+
export let Go: 1;
|
|
1814
|
+
export let Jvm: 2;
|
|
1815
|
+
export let Netcore: 3;
|
|
1816
|
+
export let Perl: 4;
|
|
1817
|
+
export let Python: 5;
|
|
1818
|
+
export let Ruby: 6;
|
|
1819
|
+
export let Nodejs: 7;
|
|
1820
|
+
export let Cpp: 8;
|
|
1821
|
+
}
|
|
1822
|
+
declare module "dist/lib/core/protocol/CommandSerializer" {
|
|
1823
|
+
export = CommandSerializer;
|
|
1824
|
+
class CommandSerializer {
|
|
1825
|
+
buffer: Int8Array<ArrayBuffer>;
|
|
1826
|
+
serialize(root_command: any, connectionData: any, runtimeVersion?: number): Int8Array<ArrayBuffer>;
|
|
1827
|
+
#private;
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
declare module "dist/lib/utils/ConnectionType" {
|
|
1831
|
+
export let IN_MEMORY: 0;
|
|
1832
|
+
export let TCP: 1;
|
|
1833
|
+
export let WEB_SOCKET: 2;
|
|
1834
|
+
}
|
|
1835
|
+
declare module "dist/lib/core/webSocketClient/WebSocketClient" {
|
|
1836
|
+
export = WebSocketClient;
|
|
1837
|
+
/**
|
|
1838
|
+
* WebSocketClient class that handles WebSocket connection, message sending, and automatic disconnection.
|
|
1839
|
+
*/
|
|
1840
|
+
class WebSocketClient {
|
|
1841
|
+
/**
|
|
1842
|
+
* @param {string} url
|
|
1843
|
+
* @param {object} options
|
|
1844
|
+
*/
|
|
1845
|
+
constructor(url: string, options: object);
|
|
1846
|
+
/**
|
|
1847
|
+
* @type {string}
|
|
1848
|
+
*/
|
|
1849
|
+
url: string;
|
|
1850
|
+
/**
|
|
1851
|
+
* @type {WebSocket | null}
|
|
1852
|
+
*/
|
|
1853
|
+
instance: WebSocket | null;
|
|
1854
|
+
/**
|
|
1855
|
+
* @type {boolean} isConnected indicates whether the WebSocket is connected.
|
|
1856
|
+
*/
|
|
1857
|
+
isConnected: boolean;
|
|
1858
|
+
/**
|
|
1859
|
+
* @type {boolean}
|
|
1860
|
+
*/
|
|
1861
|
+
isDisconnectedAfterMessage: boolean;
|
|
1862
|
+
/**
|
|
1863
|
+
* Sends messageArray through websocket connection
|
|
1864
|
+
* @async
|
|
1865
|
+
* @param {Buffer|ArrayBuffer|Buffer[]} messageArray
|
|
1866
|
+
* @returns {Promise<Buffer|ArrayBuffer|Buffer[]>}
|
|
1867
|
+
*/
|
|
1868
|
+
send(messageArray: Buffer | ArrayBuffer | Buffer[]): Promise<Buffer | ArrayBuffer | Buffer[]>;
|
|
1869
|
+
/**
|
|
1870
|
+
* Disconnects the WebSocket by terminating the connection.
|
|
1871
|
+
*/
|
|
1872
|
+
disconnect(): void;
|
|
1873
|
+
/**
|
|
1874
|
+
* Connects to the WebSocket server.
|
|
1875
|
+
* @private
|
|
1876
|
+
* @async
|
|
1877
|
+
* @returns {Promise<void>} - A promise that resolves when the connection is established.
|
|
1878
|
+
*/
|
|
1879
|
+
private _connect;
|
|
1880
|
+
/**
|
|
1881
|
+
* Sends the data to the WebSocket server and listens for a response.
|
|
1882
|
+
* @private
|
|
1883
|
+
* @async
|
|
1884
|
+
* @param {string|Buffer|ArrayBuffer|Buffer[]} data - The data to send.
|
|
1885
|
+
* @param {Function} resolve - The resolve function for the Promise.
|
|
1886
|
+
* @param {Function} reject - The reject function for the Promise.
|
|
1887
|
+
*/
|
|
1888
|
+
private _sendMessage;
|
|
1889
|
+
}
|
|
1890
|
+
}
|
|
1891
|
+
declare module "dist/lib/core/transmitter/TransmitterWebsocket" {
|
|
1892
|
+
export = TransmitterWebsocket;
|
|
1893
|
+
/** @typedef {import('../../../../core/lib/declarations').WsConnectionData} WsConnectionData */
|
|
1894
|
+
class TransmitterWebsocket {
|
|
1895
|
+
/**
|
|
1896
|
+
* @returns {void}
|
|
1897
|
+
*/
|
|
1898
|
+
static initialize(): void;
|
|
1899
|
+
/**
|
|
1900
|
+
* @returns {void}
|
|
1901
|
+
*/
|
|
1902
|
+
static setConfigSource(): void;
|
|
1903
|
+
/**
|
|
1904
|
+
* @returns {void}
|
|
1905
|
+
*/
|
|
1906
|
+
static activate(): void;
|
|
1907
|
+
/**
|
|
1908
|
+
* @async
|
|
1909
|
+
* @param {number[]} messageByteArray
|
|
1910
|
+
* @param {WsConnectionData} connectionData
|
|
1911
|
+
* @returns {Promise<number[]>} responseByteArray
|
|
1912
|
+
*/
|
|
1913
|
+
static sendCommand(messageByteArray: number[], connectionData: WsConnectionData): Promise<number[]>;
|
|
1914
|
+
}
|
|
1915
|
+
namespace TransmitterWebsocket {
|
|
1916
|
+
export { WsConnectionData };
|
|
1917
|
+
}
|
|
1918
|
+
type WsConnectionData = any;
|
|
1919
|
+
}
|
|
1920
|
+
declare module "dist/lib/core/interpreter/Interpreter" {
|
|
1921
|
+
export = Interpreter;
|
|
1922
|
+
class Interpreter {
|
|
1923
|
+
handler: any;
|
|
1924
|
+
/**
|
|
1925
|
+
*
|
|
1926
|
+
* @param {Command} command
|
|
1927
|
+
* @param {IConnectionData} connectionData
|
|
1928
|
+
* @returns
|
|
1929
|
+
*/
|
|
1930
|
+
executeAsync(command: Command, connectionData: IConnectionData): Promise<any>;
|
|
1931
|
+
/**
|
|
1932
|
+
*
|
|
1933
|
+
* @param {Command} command
|
|
1934
|
+
* @param {WsConnectionData} connectionData
|
|
1935
|
+
* @returns {Promise<Command>}
|
|
1936
|
+
*/
|
|
1937
|
+
execute(command: Command, connectionData: WsConnectionData): Promise<Command>;
|
|
1938
|
+
/**
|
|
1939
|
+
*
|
|
1940
|
+
* @param {number[]} messageByteArray
|
|
1941
|
+
* @returns {Command}
|
|
1942
|
+
*/
|
|
1943
|
+
process(messageByteArray: number[]): Command;
|
|
1944
|
+
}
|
|
1945
|
+
namespace Interpreter {
|
|
1946
|
+
export { WsConnectionData };
|
|
1947
|
+
}
|
|
1948
|
+
type WsConnectionData = any;
|
|
1949
|
+
}
|
|
1950
|
+
declare module "dist/lib/utils/ExceptionType" {
|
|
1951
|
+
export let EXCEPTION: 0;
|
|
1952
|
+
export let IO_EXCEPTION: 1;
|
|
1953
|
+
export let FILE_NOT_FOUND_EXCEPTION: 2;
|
|
1954
|
+
export let RUNTIME_EXCEPTION: 3;
|
|
1955
|
+
export let ARITHMETIC_EXCEPTION: 4;
|
|
1956
|
+
export let ILLEGAL_ARGUMENT_EXCEPTION: 5;
|
|
1957
|
+
export let INDEX_OUT_OF_BOUNDS_EXCEPTION: 6;
|
|
1958
|
+
export let NULL_POINTER_EXCEPTION: 7;
|
|
1959
|
+
}
|
|
1960
|
+
declare module "dist/lib/utils/exception/ExceptionThrower" {
|
|
1961
|
+
export = ExceptionThrower;
|
|
1962
|
+
class ExceptionThrower {
|
|
1963
|
+
static throwException(commandException: any): Error;
|
|
1964
|
+
static serializeStack(stackTraceClasses: any, stackTraceMethods: any, stackTraceLines: any, stackTraceFiles: any): string;
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
declare module "dist/lib/sdk/InvocationContext" {
|
|
1968
|
+
/**
|
|
1969
|
+
* InvocationContext is a class that represents a context for invoking commands.
|
|
1970
|
+
* It implements several interfaces for different types of interactions.
|
|
1971
|
+
* This class is used to construct chains of invocations, representing expressions of interaction that have not yet been executed.
|
|
1972
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/invocation-context)
|
|
1973
|
+
* @class
|
|
1974
|
+
*/
|
|
1975
|
+
export class InvocationContext {
|
|
1976
|
+
constructor(runtimeName: any, connectionData: any, command: any, isExecuted?: boolean);
|
|
1977
|
+
get_current_command(): any;
|
|
1978
|
+
/**
|
|
1979
|
+
* Executes the current command.
|
|
1980
|
+
* 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.
|
|
1981
|
+
* The non-materialized context wraps either single command or chain of recursively nested commands.
|
|
1982
|
+
* Commands are becoming nested through each invocation of methods on Invocation Context.
|
|
1983
|
+
* Each invocation triggers the creation of new Invocation Context instance wrapping the current command with new parent command valid for invoked method.
|
|
1984
|
+
* 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.
|
|
1985
|
+
* @returns {InvocationContext} the InvocationContext after executing the command.
|
|
1986
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/execute-method)
|
|
1987
|
+
* @method
|
|
1988
|
+
*/
|
|
1989
|
+
execute(): InvocationContext;
|
|
1990
|
+
/**
|
|
1991
|
+
* Invokes a static method on the target runtime.
|
|
1992
|
+
* @param {string} methodName - The name of the method to invoke.
|
|
1993
|
+
* @param {...any} args - Method arguments.
|
|
1994
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to invoke the static method.
|
|
1995
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/calling-methods/invoking-static-method)
|
|
1996
|
+
* @method
|
|
1997
|
+
*/
|
|
1998
|
+
invokeStaticMethod(methodName: string, ...args: any[]): InvocationContext;
|
|
1999
|
+
/**
|
|
2000
|
+
* Invokes a standalone method on the target runtime.
|
|
2001
|
+
* @param {string} methodName - The name of the method to invoke.
|
|
2002
|
+
* @param {...any} args - Method arguments.
|
|
2003
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to invoke the static method.
|
|
2004
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/calling-methods/invoking-static-method)
|
|
2005
|
+
* @method
|
|
2006
|
+
*/
|
|
2007
|
+
invokeStandaloneMethod(methodName: string, ...args: any[]): InvocationContext;
|
|
2008
|
+
/**
|
|
2009
|
+
* Retrieves the value of a static field from the target runtime.
|
|
2010
|
+
* @param {string} fieldName - The name of the field to get.
|
|
2011
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to get the static field.
|
|
2012
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/fields-and-properties/getting-and-setting-values-for-static-fields-and-properties)
|
|
2013
|
+
* @method
|
|
2014
|
+
*/
|
|
2015
|
+
getStaticField(fieldName: string): InvocationContext;
|
|
2016
|
+
/**
|
|
2017
|
+
* Sets the value of a static field in the target runtime.
|
|
2018
|
+
* @param {string} fieldName - The name of the field to set.
|
|
2019
|
+
* @param {any} value - The new value of the field.
|
|
2020
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to set the static field.
|
|
2021
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/fields-and-properties/getting-and-setting-values-for-static-fields-and-properties)
|
|
2022
|
+
* @method
|
|
2023
|
+
*/
|
|
2024
|
+
setStaticField(fieldName: string, value: any): InvocationContext;
|
|
2025
|
+
/**
|
|
2026
|
+
* Creates a new instance of a class in the target runtime.
|
|
2027
|
+
* @param {...any} args - The arguments to pass to the class constructor
|
|
2028
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to create the instance.
|
|
2029
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/calling-methods/creating-instance-and-calling-instance-methods)
|
|
2030
|
+
* @method
|
|
2031
|
+
*/
|
|
2032
|
+
createInstance(...args: any[]): InvocationContext;
|
|
2033
|
+
/**
|
|
2034
|
+
* Retrieves the value of an instance field from the target runtime.
|
|
2035
|
+
* @param {string} fieldName - The name of the field to get.
|
|
2036
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to get the instance field.
|
|
2037
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/fields-and-properties/getting-and-setting-values-for-instance-fields-and-properties)
|
|
2038
|
+
* @method
|
|
2039
|
+
*/
|
|
2040
|
+
getInstanceField(fieldName: string): InvocationContext;
|
|
2041
|
+
/**
|
|
2042
|
+
* Sets the value of an instance field in the target runtime.
|
|
2043
|
+
* @param {string} fieldName - The name of the field to set.
|
|
2044
|
+
* @param {any} value - The new value of the field.
|
|
2045
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to set the instance field.
|
|
2046
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/fields-and-properties/getting-and-setting-values-for-instance-fields-and-properties)
|
|
2047
|
+
* @method
|
|
2048
|
+
*/
|
|
2049
|
+
setInstanceField(fieldName: string, value: any): InvocationContext;
|
|
2050
|
+
/**
|
|
2051
|
+
* Invokes an instance method on the target runtime.
|
|
2052
|
+
* @param {string} methodName - The name of the method to invoke.
|
|
2053
|
+
* @param {...any} args - Method arguments.
|
|
2054
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to invoke the instance method.
|
|
2055
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/calling-methods/invoking-instance-method)
|
|
2056
|
+
* @method
|
|
2057
|
+
*/
|
|
2058
|
+
invokeInstanceMethod(methodName: string, ...args: any[]): InvocationContext;
|
|
2059
|
+
/**
|
|
2060
|
+
* Retrieves the value at a specific index in an array from the target runtime.
|
|
2061
|
+
* @param {...any} indexes - the arguments to pass to the array getter. The first argument should be the index.
|
|
2062
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to get the index.
|
|
2063
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/arrays-and-collections/one-dimensional-arrays)
|
|
2064
|
+
* @method
|
|
2065
|
+
*/
|
|
2066
|
+
getIndex(...indexes: any[]): InvocationContext;
|
|
2067
|
+
/**
|
|
2068
|
+
* Sets the value at a specific index in an array in the target runtime.
|
|
2069
|
+
* @param {number[]} indexes - The index to set the value at.
|
|
2070
|
+
* @param {any} value - The value to set at the index.
|
|
2071
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to set the index.
|
|
2072
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/arrays-and-collections/one-dimensional-arrays)
|
|
2073
|
+
* @method
|
|
2074
|
+
*/
|
|
2075
|
+
setIndex(indexes: number[], value: any): InvocationContext;
|
|
2076
|
+
/**
|
|
2077
|
+
* Retrieves the size of an array from the target runtime.
|
|
2078
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to get the size.
|
|
2079
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/arrays-and-collections/one-dimensional-arrays)
|
|
2080
|
+
* @method
|
|
2081
|
+
*/
|
|
2082
|
+
getSize(): InvocationContext;
|
|
2083
|
+
/**
|
|
2084
|
+
* Retrieves the rank of an array from the target runtime.
|
|
2085
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to get the rank.
|
|
2086
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/arrays-and-collections/one-dimensional-arrays)
|
|
2087
|
+
* @method
|
|
2088
|
+
*/
|
|
2089
|
+
getRank(): InvocationContext;
|
|
2090
|
+
/**
|
|
2091
|
+
* Invokes a generic static method on the target runtime.
|
|
2092
|
+
* @param {string} methodName - The name of the method to invoke.
|
|
2093
|
+
* @param {...any} args - Method arguments.
|
|
2094
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to invoke the generic static method.
|
|
2095
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/generics/calling-generic-static-method)
|
|
2096
|
+
* @method
|
|
2097
|
+
*/
|
|
2098
|
+
invokeGenericStaticMethod(methodName: string, ...args: any[]): InvocationContext;
|
|
2099
|
+
/**
|
|
2100
|
+
* Invokes a generic method on the target runtime.
|
|
2101
|
+
* @param {string} methodName - The name of the method to invoke.
|
|
2102
|
+
* @param {...any} args - Method arguments.
|
|
2103
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to invoke the generic method.
|
|
2104
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/generics/calling-generic-instance-method)
|
|
2105
|
+
* @method
|
|
2106
|
+
*/
|
|
2107
|
+
invokeGenericMethod(methodName: string, ...args: any[]): InvocationContext;
|
|
2108
|
+
/**
|
|
2109
|
+
* Retrieves the name of an enum from the target runtime.
|
|
2110
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to get the enum name.
|
|
2111
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/enums/using-enum-type)
|
|
2112
|
+
* @method
|
|
2113
|
+
*/
|
|
2114
|
+
getEnumName(): InvocationContext;
|
|
2115
|
+
/**
|
|
2116
|
+
* Retrieves the value of an enum from the target runtime.
|
|
2117
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to get the enum value.
|
|
2118
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/enums/using-enum-type)
|
|
2119
|
+
* @method
|
|
2120
|
+
*/
|
|
2121
|
+
getEnumValue(): InvocationContext;
|
|
2122
|
+
/**
|
|
2123
|
+
* Retrieves the value of a reference from the target runtime.
|
|
2124
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to get the ref value.
|
|
2125
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/methods-arguments/passing-arguments-by-reference-with-ref-keyword)
|
|
2126
|
+
* @method
|
|
2127
|
+
*/
|
|
2128
|
+
getRefValue(): InvocationContext;
|
|
2129
|
+
/**
|
|
2130
|
+
* Creates a null object of a specific type on the target runtime.
|
|
2131
|
+
*
|
|
2132
|
+
* @returns {InvocationContext} An InvocationContext instance with the command to create a null object.
|
|
2133
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/null-handling/create-null-object)
|
|
2134
|
+
* @method
|
|
2135
|
+
*/
|
|
2136
|
+
createNull(): InvocationContext;
|
|
2137
|
+
/**
|
|
2138
|
+
* Retrieves an array from the target runtime.
|
|
2139
|
+
* @returns {InvocationContext} A new InvocationContext instance that wraps the command to retrieve the array.
|
|
2140
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/arrays-and-collections/retrieve-array)
|
|
2141
|
+
* @method
|
|
2142
|
+
*/
|
|
2143
|
+
retrieveArray(): InvocationContext;
|
|
2144
|
+
/**
|
|
2145
|
+
* Returns the primitive value from the target runtime. This could be any primitive type in JavaScript,
|
|
2146
|
+
* such as int, boolean, byte, char, long, double, float, etc.
|
|
2147
|
+
* @returns {Command} The value of the current command.
|
|
2148
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/execute-method)
|
|
2149
|
+
* @method
|
|
2150
|
+
*/
|
|
2151
|
+
getValue(): Command;
|
|
2152
|
+
[Symbol.iterator]: () => {
|
|
2153
|
+
next: () => {
|
|
2154
|
+
value: any;
|
|
2155
|
+
done: boolean;
|
|
2156
|
+
};
|
|
2157
|
+
};
|
|
2158
|
+
#private;
|
|
2159
|
+
}
|
|
2160
|
+
export class InvocationWsContext extends InvocationContext {
|
|
2161
|
+
#private;
|
|
2162
|
+
}
|
|
2163
|
+
import Command = require("@javonet/core/lib/utils/Command");
|
|
2164
|
+
}
|
|
2165
|
+
declare module "dist/lib/sdk/RuntimeContext" {
|
|
2166
|
+
export = RuntimeContext;
|
|
2167
|
+
/**
|
|
2168
|
+
* Represents a single context which allows interaction with a selected technology.
|
|
2169
|
+
* Refers to a single instance of the called runtime within a particular target OS process.
|
|
2170
|
+
* 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.
|
|
2171
|
+
* Multiple Runtime Contexts can be initialized within one process.
|
|
2172
|
+
* Calling the same technology on inMemory communication channel will return the existing instance of runtime context.
|
|
2173
|
+
* Calling the same technology on TCP channel but on different nodes will result in unique Runtime Contexts.
|
|
2174
|
+
* 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.
|
|
2175
|
+
* @see [Javonet Guides]{@link https://www.javonet.com/guides/v2/javascript/foundations/runtime-context}
|
|
2176
|
+
* @class
|
|
2177
|
+
*/
|
|
2178
|
+
class RuntimeContext {
|
|
2179
|
+
static memoryRuntimeContexts: Map<any, any>;
|
|
2180
|
+
static networkRuntimeContexts: Map<any, any>;
|
|
2181
|
+
static webSocketRuntimeContexts: Map<any, any>;
|
|
2182
|
+
static getGeneratorHandler(): any;
|
|
2183
|
+
static getInstance(runtimeName: any, connectionData: any): any;
|
|
2184
|
+
constructor(runtimeName: any, connectionData: any);
|
|
2185
|
+
runtimeName: any;
|
|
2186
|
+
connectionData: any;
|
|
2187
|
+
/**
|
|
2188
|
+
* Executes the current command. The initial state of RuntimeContext is non-materialized,
|
|
2189
|
+
* wrapping either a single command or a chain of recursively nested commands.
|
|
2190
|
+
* Commands become nested through each invocation of methods on RuntimeContext.
|
|
2191
|
+
* Each invocation triggers the creation of a new RuntimeContext instance wrapping the current command with a new parent command.
|
|
2192
|
+
* 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.
|
|
2193
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/execute-method)
|
|
2194
|
+
* @method
|
|
2195
|
+
*/
|
|
2196
|
+
execute(): void;
|
|
2197
|
+
/**
|
|
2198
|
+
* Adds a reference to a library. Javonet allows you to reference and use modules or packages written in various languages.
|
|
2199
|
+
* This method allows you to use any library from all supported technologies. The necessary libraries need to be referenced.
|
|
2200
|
+
* 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.
|
|
2201
|
+
* 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.
|
|
2202
|
+
* @param {string} libraryPath - The relative or full path to the library.
|
|
2203
|
+
* @returns {RuntimeContext} RuntimeContext instance.
|
|
2204
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/getting-started/adding-references-to-libraries)
|
|
2205
|
+
* @method
|
|
2206
|
+
*/
|
|
2207
|
+
loadLibrary(libraryPath: string): RuntimeContext;
|
|
2208
|
+
/**
|
|
2209
|
+
* 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.
|
|
2210
|
+
* @param {string} typeName - The full name of the type.
|
|
2211
|
+
* @param {...any} args - The arguments to be passed, if needed
|
|
2212
|
+
* @returns {InvocationContext} InvocationContext instance, that wraps the command to get the type.
|
|
2213
|
+
* @method
|
|
2214
|
+
*/
|
|
2215
|
+
getType(typeName: string, ...args: any[]): InvocationContext;
|
|
2216
|
+
/**
|
|
2217
|
+
* Casts the provided value to a specific type. This method is used when invoking methods that require specific types of arguments.
|
|
2218
|
+
* 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.
|
|
2219
|
+
* After casting the value, it can be used as an argument when invoking methods.
|
|
2220
|
+
* @param {...any} args - The target type and the value to be cast.
|
|
2221
|
+
* @returns {InvocationContext} InvocationContext instance that wraps the command to cast the value.
|
|
2222
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/casting/casting)
|
|
2223
|
+
* @method
|
|
2224
|
+
*/
|
|
2225
|
+
cast(...args: any[]): InvocationContext;
|
|
2226
|
+
/**
|
|
2227
|
+
* Retrieves a specific item from an enum type. This method is used when working with enums from the called runtime.
|
|
2228
|
+
* 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.
|
|
2229
|
+
* After retrieving the item, it can be used as an argument when invoking methods or for other operations.
|
|
2230
|
+
* @param {...any} args - The enum type and the name of the item.
|
|
2231
|
+
* @returns {InvocationContext} InvocationContext instance that wraps the command to get the enum item.
|
|
2232
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/enums/using-enum-type)
|
|
2233
|
+
* @method
|
|
2234
|
+
*/
|
|
2235
|
+
getEnumItem(...args: any[]): InvocationContext;
|
|
2236
|
+
/**
|
|
2237
|
+
* 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.
|
|
2238
|
+
* 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.
|
|
2239
|
+
* After creating the reference, it can be used as an argument when invoking methods.
|
|
2240
|
+
* @param {...any} args - The value and optionally the type of the reference.
|
|
2241
|
+
* @returns {InvocationContext} InvocationContext instance that wraps the command to create a reference as ref.
|
|
2242
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/methods-arguments/passing-arguments-by-reference-with-ref-keyword)
|
|
2243
|
+
* @method
|
|
2244
|
+
*/
|
|
2245
|
+
asRef(...args: any[]): InvocationContext;
|
|
2246
|
+
/**
|
|
2247
|
+
* 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.
|
|
2248
|
+
* 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.
|
|
2249
|
+
* After creating the reference, it can be used as an argument when invoking methods.
|
|
2250
|
+
* @param {...any} args - The value and optionally the type of the reference.
|
|
2251
|
+
* @returns {InvocationContext} InvocationContext instance that wraps the command to create a reference as out.
|
|
2252
|
+
* @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)
|
|
2253
|
+
* @method
|
|
2254
|
+
*/
|
|
2255
|
+
asOut(...args: any[]): InvocationContext;
|
|
2256
|
+
healthCheck(): void;
|
|
2257
|
+
#private;
|
|
2258
|
+
}
|
|
2259
|
+
import { InvocationContext } from "@javonet/core/lib/sdk/InvocationContext";
|
|
2260
|
+
}
|
|
2261
|
+
declare module "dist/lib/sdk/RuntimeFactory" {
|
|
2262
|
+
export = RuntimeFactory;
|
|
2263
|
+
/**
|
|
2264
|
+
* The RuntimeFactory class provides methods for creating runtime contexts.
|
|
2265
|
+
* Each method corresponds to a specific runtime (CLR, JVM, .NET Core, Perl, Ruby, Node.js, Python) and returns a RuntimeContext instance for that runtime.
|
|
2266
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
2267
|
+
*/
|
|
2268
|
+
class RuntimeFactory {
|
|
2269
|
+
constructor(connectionData: any);
|
|
2270
|
+
connectionData: any;
|
|
2271
|
+
/**
|
|
2272
|
+
* Creates RuntimeContext instance to interact with the .NET Framework runtime.
|
|
2273
|
+
* @return {RuntimeContext} a RuntimeContext instance for the .NET Framework runtime
|
|
2274
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
2275
|
+
*/
|
|
2276
|
+
clr(): RuntimeContext;
|
|
2277
|
+
/**
|
|
2278
|
+
* Creates RuntimeContext instance to interact with the JVM runtime.
|
|
2279
|
+
* @return {RuntimeContext} a RuntimeContext instance for the JVM runtime
|
|
2280
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
2281
|
+
*/
|
|
2282
|
+
jvm(): RuntimeContext;
|
|
2283
|
+
/**
|
|
2284
|
+
* Creates RuntimeContext instance to interact with the .NET runtime.
|
|
2285
|
+
* @return {RuntimeContext} a RuntimeContext instance for the .NET runtime
|
|
2286
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
2287
|
+
*/
|
|
2288
|
+
netcore(): RuntimeContext;
|
|
2289
|
+
/**
|
|
2290
|
+
* Creates RuntimeContext instance to interact with the Perl runtime.
|
|
2291
|
+
* @return {RuntimeContext} a RuntimeContext instance for the Perl runtime
|
|
2292
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
2293
|
+
*/
|
|
2294
|
+
perl(): RuntimeContext;
|
|
2295
|
+
/**
|
|
2296
|
+
* Creates RuntimeContext instance to interact with the Python runtime.
|
|
2297
|
+
* @return {RuntimeContext} a RuntimeContext instance for the Python runtime
|
|
2298
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
2299
|
+
*/
|
|
2300
|
+
python(): RuntimeContext;
|
|
2301
|
+
/**
|
|
2302
|
+
* Creates RuntimeContext instance to interact with the Ruby runtime.
|
|
2303
|
+
* @return {RuntimeContext} a RuntimeContext instance for the Ruby runtime
|
|
2304
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
2305
|
+
*/
|
|
2306
|
+
ruby(): RuntimeContext;
|
|
2307
|
+
/**
|
|
2308
|
+
* Creates RuntimeContext instance to interact with Node.js runtime.
|
|
2309
|
+
* @return {RuntimeContext} a RuntimeContext instance for the Node.js runtime
|
|
2310
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
2311
|
+
*/
|
|
2312
|
+
nodejs(): RuntimeContext;
|
|
2313
|
+
}
|
|
2314
|
+
import RuntimeContext = require("@javonet/core/lib/sdk/RuntimeContext");
|
|
2315
|
+
}
|
|
2316
|
+
declare module "dist/lib/utils/RuntimeNameHandler" {
|
|
2317
|
+
export = RuntimeNameHandler;
|
|
2318
|
+
class RuntimeNameHandler {
|
|
2319
|
+
/**
|
|
2320
|
+
* @param {number} runtimeName
|
|
2321
|
+
* @returns {string}
|
|
2322
|
+
*/
|
|
2323
|
+
static getName(runtimeName: number): string;
|
|
2324
|
+
}
|
|
2325
|
+
}
|
|
2326
|
+
declare module "dist/lib/utils/connectionData/IConnectionData" {
|
|
2327
|
+
export = IConnectionData;
|
|
2328
|
+
class IConnectionData {
|
|
2329
|
+
get connectionType(): void;
|
|
2330
|
+
get hostname(): void;
|
|
2331
|
+
serializeConnectionData(): void;
|
|
2332
|
+
}
|
|
2333
|
+
}
|
|
2334
|
+
declare module "dist/lib/utils/connectionData/InMemoryConnectionData" {
|
|
2335
|
+
export = InMemoryConnectionData;
|
|
2336
|
+
/**
|
|
2337
|
+
* @extends IConnectionData
|
|
2338
|
+
*/
|
|
2339
|
+
class InMemoryConnectionData extends IConnectionData {
|
|
2340
|
+
_connectionType: 0;
|
|
2341
|
+
_hostname: string;
|
|
2342
|
+
get connectionType(): 0;
|
|
2343
|
+
get hostname(): string;
|
|
2344
|
+
serializeConnectionData(): number[];
|
|
2345
|
+
/**
|
|
2346
|
+
* @param {InMemoryConnectionData} other
|
|
2347
|
+
* @returns {boolean}
|
|
2348
|
+
*/
|
|
2349
|
+
equals(other: InMemoryConnectionData): boolean;
|
|
2350
|
+
}
|
|
2351
|
+
import IConnectionData = require("@javonet/core/lib/utils/connectionData/IConnectionData");
|
|
2352
|
+
}
|
|
2353
|
+
declare module "dist/lib/utils/connectionData/WsConnectionData" {
|
|
2354
|
+
export = WsConnectionData;
|
|
2355
|
+
/** @typedef {import('../../declarations').ConnectionType} ConnectionType */
|
|
2356
|
+
/**
|
|
2357
|
+
* Represents WebSocket connection data.
|
|
2358
|
+
* @extends IConnectionData
|
|
2359
|
+
*/
|
|
2360
|
+
class WsConnectionData extends IConnectionData {
|
|
2361
|
+
/**
|
|
2362
|
+
* @param {string} hostname - The hostname of the connection.
|
|
2363
|
+
*/
|
|
2364
|
+
constructor(hostname: string);
|
|
2365
|
+
/** @private @type {string} */
|
|
2366
|
+
private _hostname;
|
|
2367
|
+
/** @private @type {ConnectionType} */
|
|
2368
|
+
private _connectionType;
|
|
2369
|
+
/** @type {ConnectionType} */
|
|
2370
|
+
get connectionType(): ConnectionType;
|
|
2371
|
+
/** @type {string} */
|
|
2372
|
+
set hostname(value: string);
|
|
2373
|
+
/** @type {string} */
|
|
2374
|
+
get hostname(): string;
|
|
2375
|
+
/**
|
|
2376
|
+
* Serializes the connection data.
|
|
2377
|
+
* @returns {number[]} An array of connection data values.
|
|
2378
|
+
*/
|
|
2379
|
+
serializeConnectionData(): number[];
|
|
2380
|
+
equals(other: any): boolean;
|
|
2381
|
+
}
|
|
2382
|
+
namespace WsConnectionData {
|
|
2383
|
+
export { ConnectionType };
|
|
2384
|
+
}
|
|
2385
|
+
import IConnectionData = require("@javonet/core/lib/utils/connectionData/IConnectionData");
|
|
2386
|
+
type ConnectionType = import("@javonet/core/lib/declarations").ConnectionType;
|
|
2387
|
+
}
|
|
2388
|
+
declare module "dist/lib/utils/exception/ExceptionSerializer" {
|
|
2389
|
+
export = ExceptionSerializer;
|
|
2390
|
+
class ExceptionSerializer {
|
|
2391
|
+
static serializeException(exception: any, command: any): Command;
|
|
2392
|
+
static getExceptionCode(exception: any): 0 | 5 | 6;
|
|
2393
|
+
static serializeStackTrace(exception: any, stackClasses: any, stackMethods: any, stackLines: any, stackFiles: any): void;
|
|
2394
|
+
}
|
|
2395
|
+
import Command = require("@javonet/core/lib/utils/Command");
|
|
2396
|
+
}
|
|
2397
|
+
declare module "dist/index" {
|
|
2398
|
+
import CommandSerializer = require("@javonet/core/lib/core/protocol/CommandSerializer");
|
|
2399
|
+
import CommandDeserializer = require("@javonet/core/lib/core/protocol/CommandDeserializer");
|
|
2400
|
+
import TypeDeserializer = require("@javonet/core/lib/core/protocol/TypeDeserializer");
|
|
2401
|
+
import TypeSerializer = require("@javonet/core/lib/core/protocol/TypeSerializer");
|
|
2402
|
+
import Interpreter = require("@javonet/core/lib/core/interpreter/Interpreter");
|
|
2403
|
+
import { InvocationContext } from "@javonet/core/lib/sdk/InvocationContext";
|
|
2404
|
+
import { InvocationWsContext } from "@javonet/core/lib/sdk/InvocationContext";
|
|
2405
|
+
import RuntimeContext = require("@javonet/core/lib/sdk/RuntimeContext");
|
|
2406
|
+
import RuntimeFactory = require("@javonet/core/lib/sdk/RuntimeFactory");
|
|
2407
|
+
import Command = require("@javonet/core/lib/utils/Command");
|
|
2408
|
+
import CommandType = require("@javonet/core/lib/utils/CommandType");
|
|
2409
|
+
import ConnectionType = require("@javonet/core/lib/utils/ConnectionType");
|
|
2410
|
+
import ExceptionType = require("@javonet/core/lib/utils/ExceptionType");
|
|
2411
|
+
import RuntimeName = require("@javonet/core/lib/utils/RuntimeName");
|
|
2412
|
+
import RuntimeNameHandler = require("@javonet/core/lib/utils/RuntimeNameHandler");
|
|
2413
|
+
import StringEncodingMode = require("@javonet/core/lib/utils/StringEncodingMode");
|
|
2414
|
+
import Type = require("@javonet/core/lib/utils/Type");
|
|
2415
|
+
import IConnectionData = require("@javonet/core/lib/utils/connectionData/IConnectionData");
|
|
2416
|
+
import InMemoryConnectionData = require("@javonet/core/lib/utils/connectionData/InMemoryConnectionData");
|
|
2417
|
+
import WsConnectionData = require("@javonet/core/lib/utils/connectionData/WsConnectionData");
|
|
2418
|
+
import ExceptionSerializer = require("@javonet/core/lib/utils/exception/ExceptionSerializer");
|
|
2419
|
+
import ExceptionThrower = require("@javonet/core/lib/utils/exception/ExceptionThrower");
|
|
2420
|
+
export { CommandSerializer, CommandDeserializer, TypeDeserializer, TypeSerializer, Interpreter, InvocationContext, InvocationWsContext, RuntimeContext, RuntimeFactory, Command, CommandType, ConnectionType, ExceptionType, RuntimeName, RuntimeNameHandler, StringEncodingMode, Type, IConnectionData, InMemoryConnectionData, WsConnectionData, ExceptionSerializer, ExceptionThrower };
|
|
2421
|
+
}
|
|
2422
|
+
declare module "dist/lib/core/generator/handler/AbstractGeneratorHandler" {
|
|
2423
|
+
export = AbstractGeneratorHandler;
|
|
2424
|
+
class AbstractGeneratorHandler {
|
|
2425
|
+
generate_command(analyzed_object: any, parent_command: any, handlers: any): void;
|
|
2426
|
+
generate_code(existing_string_builder: any, common_command: any, used_object: any, handlers: any): void;
|
|
2427
|
+
}
|
|
2428
|
+
}
|
|
2429
|
+
declare module "dist/lib/core/generator/internal/SharedHandlerType" {
|
|
2430
|
+
export let ARGUMENT_NAME: number;
|
|
2431
|
+
export let METHOD_BODY: number;
|
|
2432
|
+
export let CLASS_NAME: number;
|
|
2433
|
+
export let METHOD_NAME: number;
|
|
2434
|
+
export let MODIFIER: number;
|
|
2435
|
+
export let TYPE: number;
|
|
2436
|
+
export let CLAZZ_INSTANCE: number;
|
|
2437
|
+
export let RETURN_TYPE: number;
|
|
2438
|
+
}
|
|
2439
|
+
declare module "dist/lib/core/generator/internal/CommonGenerator" {
|
|
2440
|
+
export = CommonGenerator;
|
|
2441
|
+
class CommonGenerator {
|
|
2442
|
+
static process_method_arguments(existing_string_builder: any, common_command: any, type_array: any, name_array: any, handlers: any): void;
|
|
2443
|
+
static process_method_arguments_names(existing_string_builder: any, common_command: any, name_array: any, handlers: any): void;
|
|
2444
|
+
}
|
|
2445
|
+
}
|
|
2446
|
+
declare module "dist/lib/core/generator/handler/CreateInstanceGeneratorHandler" {
|
|
2447
|
+
export = CreateInstanceGeneratorHandler;
|
|
2448
|
+
class CreateInstanceGeneratorHandler extends AbstractGeneratorHandler {
|
|
2449
|
+
}
|
|
2450
|
+
import AbstractGeneratorHandler = require("@javonet/core/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
2451
|
+
}
|
|
2452
|
+
declare module "dist/lib/core/generator/internal/NodejsStringBuilder" {
|
|
2453
|
+
export = NodejsStringBuilder;
|
|
2454
|
+
class NodejsStringBuilder {
|
|
2455
|
+
string: string;
|
|
2456
|
+
append(string: any): void;
|
|
2457
|
+
getString(): string;
|
|
2458
|
+
}
|
|
2459
|
+
}
|
|
2460
|
+
declare module "dist/lib/core/generator/handler/shared/SharedArgumentNameHandler" {
|
|
2461
|
+
export = SharedArgumentNameHandler;
|
|
2462
|
+
class SharedArgumentNameHandler extends AbstractGeneratorHandler {
|
|
2463
|
+
}
|
|
2464
|
+
import AbstractGeneratorHandler = require("@javonet/core/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
2465
|
+
}
|
|
2466
|
+
declare module "dist/lib/core/generator/handler/shared/SharedMethodNameHandler" {
|
|
2467
|
+
export = SharedMethodNameHandler;
|
|
2468
|
+
class SharedMethodNameHandler extends AbstractGeneratorHandler {
|
|
2469
|
+
is_numeric_char(c: any): boolean;
|
|
2470
|
+
}
|
|
2471
|
+
import AbstractGeneratorHandler = require("@javonet/core/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
2472
|
+
}
|
|
2473
|
+
declare module "dist/lib/core/generator/handler/shared/body/SharedBodyHandler" {
|
|
2474
|
+
export = SharedBodyHandler;
|
|
2475
|
+
class SharedBodyHandler extends AbstractGeneratorHandler {
|
|
2476
|
+
}
|
|
2477
|
+
import AbstractGeneratorHandler = require("@javonet/core/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
2478
|
+
}
|
|
2479
|
+
declare module "dist/lib/core/generator/handler/shared/SharedClassNameHandler" {
|
|
2480
|
+
export = SharedClassNameHandler;
|
|
2481
|
+
class SharedClassNameHandler extends AbstractGeneratorHandler {
|
|
2482
|
+
is_numeric_char(c: any): boolean;
|
|
2483
|
+
}
|
|
2484
|
+
import AbstractGeneratorHandler = require("@javonet/core/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
2485
|
+
}
|
|
2486
|
+
declare module "dist/lib/core/generator/handler/shared/SharedClassInstanceHandler" {
|
|
2487
|
+
export = SharedClassInstanceHandler;
|
|
2488
|
+
class SharedClassInstanceHandler extends AbstractGeneratorHandler {
|
|
2489
|
+
}
|
|
2490
|
+
import AbstractGeneratorHandler = require("@javonet/core/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
2491
|
+
}
|
|
2492
|
+
declare module "dist/lib/core/generator/handler/shared/SharedReturnTypeHandler" {
|
|
2493
|
+
export = SharedReturnTypeHandler;
|
|
2494
|
+
class SharedReturnTypeHandler extends AbstractGeneratorHandler {
|
|
2495
|
+
}
|
|
2496
|
+
import AbstractGeneratorHandler = require("@javonet/core/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
2497
|
+
}
|
|
2498
|
+
declare module "dist/lib/core/generator/utils/StringUtils" {
|
|
2499
|
+
export = StringUtils;
|
|
2500
|
+
class StringUtils {
|
|
2501
|
+
static capitalizeFirstLetter(string: any): any;
|
|
2502
|
+
}
|
|
2503
|
+
}
|
|
2504
|
+
declare module "dist/lib/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler" {
|
|
2505
|
+
export = SharedCreateInstanceBodyHandler;
|
|
2506
|
+
class SharedCreateInstanceBodyHandler extends AbstractGeneratorHandler {
|
|
2507
|
+
}
|
|
2508
|
+
import AbstractGeneratorHandler = require("@javonet/core/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
2509
|
+
}
|
|
2510
|
+
declare module "dist/lib/core/generator/handler/shared/body/SharedGetTypeBodyHandler" {
|
|
2511
|
+
export = SharedGetTypeBodyHandler;
|
|
2512
|
+
class SharedGetTypeBodyHandler extends AbstractGeneratorHandler {
|
|
2513
|
+
}
|
|
2514
|
+
import AbstractGeneratorHandler = require("@javonet/core/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
2515
|
+
}
|
|
2516
|
+
declare module "dist/lib/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler" {
|
|
2517
|
+
export = SharedInvokeInstanceMethodBodyHandler;
|
|
2518
|
+
class SharedInvokeInstanceMethodBodyHandler extends AbstractGeneratorHandler {
|
|
2519
|
+
}
|
|
2520
|
+
import AbstractGeneratorHandler = require("@javonet/core/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
2521
|
+
}
|
|
2522
|
+
declare module "dist/lib/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler" {
|
|
2523
|
+
export = SharedInvokeStaticMethodBodyHandler;
|
|
2524
|
+
class SharedInvokeStaticMethodBodyHandler extends AbstractGeneratorHandler {
|
|
2525
|
+
}
|
|
2526
|
+
import AbstractGeneratorHandler = require("@javonet/core/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
2527
|
+
}
|
|
2528
|
+
declare module "dist/lib/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler" {
|
|
2529
|
+
export = SharedGetStaticFieldBodyHandler;
|
|
2530
|
+
class SharedGetStaticFieldBodyHandler extends AbstractGeneratorHandler {
|
|
2531
|
+
}
|
|
2532
|
+
import AbstractGeneratorHandler = require("@javonet/core/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
2533
|
+
}
|
|
2534
|
+
declare module "dist/lib/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler" {
|
|
2535
|
+
export = SharedGetInstanceFieldBodyHandler;
|
|
2536
|
+
class SharedGetInstanceFieldBodyHandler extends AbstractGeneratorHandler {
|
|
2537
|
+
}
|
|
2538
|
+
import AbstractGeneratorHandler = require("@javonet/core/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
2539
|
+
}
|
|
2540
|
+
declare module "dist/lib/core/generator/handler/GetTypeGeneratorHandler" {
|
|
2541
|
+
export = GetTypeGeneratorHandler;
|
|
2542
|
+
class GetTypeGeneratorHandler extends AbstractGeneratorHandler {
|
|
2543
|
+
}
|
|
2544
|
+
import AbstractGeneratorHandler = require("@javonet/core/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
2545
|
+
}
|
|
2546
|
+
declare module "dist/lib/core/generator/handler/InvokeInstanceMethodGeneratorHandler" {
|
|
2547
|
+
export = InvokeInstanceMethodGeneratorHandler;
|
|
2548
|
+
class InvokeInstanceMethodGeneratorHandler extends AbstractGeneratorHandler {
|
|
2549
|
+
}
|
|
2550
|
+
import AbstractGeneratorHandler = require("@javonet/core/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
2551
|
+
}
|
|
2552
|
+
declare module "dist/lib/core/generator/handler/InvokeStaticMethodGeneratorHandler" {
|
|
2553
|
+
export = InvokeStaticMethodGeneratorHandler;
|
|
2554
|
+
class InvokeStaticMethodGeneratorHandler extends AbstractGeneratorHandler {
|
|
2555
|
+
}
|
|
2556
|
+
import AbstractGeneratorHandler = require("@javonet/core/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
2557
|
+
}
|
|
2558
|
+
declare module "dist/lib/core/generator/handler/GetStaticFieldGeneratorHandler" {
|
|
2559
|
+
export = GetStaticFieldGeneratorHandler;
|
|
2560
|
+
class GetStaticFieldGeneratorHandler extends AbstractGeneratorHandler {
|
|
2561
|
+
}
|
|
2562
|
+
import AbstractGeneratorHandler = require("@javonet/core/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
2563
|
+
}
|
|
2564
|
+
declare module "dist/lib/core/generator/handler/GetInstanceFieldGeneratorHandler" {
|
|
2565
|
+
export = GetInstanceFieldGeneratorHandler;
|
|
2566
|
+
class GetInstanceFieldGeneratorHandler extends AbstractGeneratorHandler {
|
|
2567
|
+
}
|
|
2568
|
+
import AbstractGeneratorHandler = require("@javonet/core/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
2569
|
+
}
|
|
2570
|
+
declare module "dist/lib/core/generator/handler/InvokeStandaloneMethodGeneratorHandler" {
|
|
2571
|
+
export = InvokeStandaloneMethodGeneratorHandler;
|
|
2572
|
+
class InvokeStandaloneMethodGeneratorHandler extends AbstractGeneratorHandler {
|
|
2573
|
+
}
|
|
2574
|
+
import AbstractGeneratorHandler = require("@javonet/core/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
2575
|
+
}
|
|
2576
|
+
declare module "dist/lib/core/generator/handler/shared/body/SharedInvokeStandaloneMethodBodyHandler" {
|
|
2577
|
+
export = SharedInvokeStandaloneMethodBodyHandler;
|
|
2578
|
+
class SharedInvokeStandaloneMethodBodyHandler extends AbstractGeneratorHandler {
|
|
2579
|
+
}
|
|
2580
|
+
import AbstractGeneratorHandler = require("@javonet/core/lib/core/generator/handler/AbstractGeneratorHandler");
|
|
2581
|
+
}
|
|
2582
|
+
declare module "dist/lib/core/generator/handler/Handlers" {
|
|
2583
|
+
export = Handlers;
|
|
2584
|
+
class Handlers {
|
|
2585
|
+
GENERATOR_HANDLER: {};
|
|
2586
|
+
SHARED_HANDLER: {};
|
|
2587
|
+
SHARED_BODY_HANDLER: {};
|
|
2588
|
+
}
|
|
2589
|
+
}
|
|
2590
|
+
declare module "dist/lib/core/generator/handler/GeneratorHandler" {
|
|
2591
|
+
export = GeneratorHandler;
|
|
2592
|
+
class GeneratorHandler {
|
|
2593
|
+
generate(command: any, file_path: any): any[];
|
|
2594
|
+
generate_class_file(existing_string_builder: any, class_file_name: any, file_path: any): any;
|
|
2595
|
+
}
|
|
2596
|
+
}
|
|
2597
|
+
declare module "dist/lib/core/handler/AbstractHandler" {
|
|
2598
|
+
export = AbstractHandler;
|
|
2599
|
+
class AbstractHandler {
|
|
2600
|
+
handlers: any[];
|
|
2601
|
+
process(command: any): void;
|
|
2602
|
+
handleCommand(command: any): void;
|
|
2603
|
+
iterate(cmd: any): void;
|
|
2604
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
2605
|
+
}
|
|
2606
|
+
}
|
|
2607
|
+
declare module "dist/lib/core/handler/ArrayGetItemHandler" {
|
|
2608
|
+
const _exports: ArrayGetItemHandler;
|
|
2609
|
+
export = _exports;
|
|
2610
|
+
class ArrayGetItemHandler extends AbstractHandler {
|
|
2611
|
+
requiredParametersCount: number;
|
|
2612
|
+
process(command: any): any;
|
|
2613
|
+
}
|
|
2614
|
+
import AbstractHandler = require("@javonet/core/lib/core/handler/AbstractHandler");
|
|
2615
|
+
}
|
|
2616
|
+
declare module "dist/lib/core/handler/ArrayGetRankHandler" {
|
|
2617
|
+
const _exports: ArrayGetRankHandler;
|
|
2618
|
+
export = _exports;
|
|
2619
|
+
class ArrayGetRankHandler extends AbstractHandler {
|
|
2620
|
+
requiredParametersCount: number;
|
|
2621
|
+
process(command: any): number;
|
|
2622
|
+
}
|
|
2623
|
+
import AbstractHandler = require("@javonet/core/lib/core/handler/AbstractHandler");
|
|
2624
|
+
}
|
|
2625
|
+
declare module "dist/lib/core/handler/ArrayGetSizeHandler" {
|
|
2626
|
+
const _exports: ArrayGetSizeHandler;
|
|
2627
|
+
export = _exports;
|
|
2628
|
+
class ArrayGetSizeHandler extends AbstractHandler {
|
|
2629
|
+
requiredParametersCount: number;
|
|
2630
|
+
process(command: any): number;
|
|
2631
|
+
}
|
|
2632
|
+
import AbstractHandler = require("@javonet/core/lib/core/handler/AbstractHandler");
|
|
2633
|
+
}
|
|
2634
|
+
declare module "dist/lib/core/handler/ArrayHandler" {
|
|
2635
|
+
const _exports: ArrayHandler;
|
|
2636
|
+
export = _exports;
|
|
2637
|
+
class ArrayHandler extends AbstractHandler {
|
|
2638
|
+
process(command: any): any;
|
|
2639
|
+
}
|
|
2640
|
+
import AbstractHandler = require("@javonet/core/lib/core/handler/AbstractHandler");
|
|
2641
|
+
}
|
|
2642
|
+
declare module "dist/lib/core/handler/ArraySetItemHandler" {
|
|
2643
|
+
const _exports: ArraySetItemHandler;
|
|
2644
|
+
export = _exports;
|
|
2645
|
+
class ArraySetItemHandler extends AbstractHandler {
|
|
2646
|
+
requiredParametersCount: number;
|
|
2647
|
+
process(command: any): number;
|
|
2648
|
+
}
|
|
2649
|
+
import AbstractHandler = require("@javonet/core/lib/core/handler/AbstractHandler");
|
|
2650
|
+
}
|
|
2651
|
+
declare module "dist/lib/core/handler/CastingHandler" {
|
|
2652
|
+
const _exports: CastingHandler;
|
|
2653
|
+
export = _exports;
|
|
2654
|
+
class CastingHandler extends AbstractHandler {
|
|
2655
|
+
}
|
|
2656
|
+
import AbstractHandler = require("@javonet/core/lib/core/handler/AbstractHandler");
|
|
2657
|
+
}
|
|
2658
|
+
declare module "dist/lib/core/handler/CreateClassInstanceHandler" {
|
|
2659
|
+
const _exports: CreateClassInstanceHandler;
|
|
2660
|
+
export = _exports;
|
|
2661
|
+
class CreateClassInstanceHandler extends AbstractHandler {
|
|
2662
|
+
requiredParametersCount: number;
|
|
2663
|
+
process(command: any): any;
|
|
2664
|
+
}
|
|
2665
|
+
import AbstractHandler = require("@javonet/core/lib/core/handler/AbstractHandler");
|
|
2666
|
+
}
|
|
2667
|
+
declare module "dist/lib/utils/uuid/rng" {
|
|
2668
|
+
function _exports(): Uint8Array<ArrayBuffer>;
|
|
2669
|
+
export = _exports;
|
|
2670
|
+
}
|
|
2671
|
+
declare module "dist/lib/utils/uuid/REGEX" {
|
|
2672
|
+
const _exports: RegExp;
|
|
2673
|
+
export = _exports;
|
|
2674
|
+
}
|
|
2675
|
+
declare module "dist/lib/utils/uuid/validate" {
|
|
2676
|
+
export = validate;
|
|
2677
|
+
function validate(uuid: any): boolean;
|
|
2678
|
+
}
|
|
2679
|
+
declare module "dist/lib/utils/uuid/stringify" {
|
|
2680
|
+
export = stringify;
|
|
2681
|
+
function stringify(arr: any, offset?: number): string;
|
|
2682
|
+
}
|
|
2683
|
+
declare module "dist/lib/utils/uuid/v4" {
|
|
2684
|
+
export = v4;
|
|
2685
|
+
function v4(options: any, buf: any, offset: any): any;
|
|
2686
|
+
}
|
|
2687
|
+
declare module "dist/lib/core/referenceCache/ReferencesCache" {
|
|
2688
|
+
export = ReferencesCache;
|
|
2689
|
+
class ReferencesCache {
|
|
2690
|
+
static getInstance(): any;
|
|
2691
|
+
cacheReference(reference: any): any;
|
|
2692
|
+
resolveReference(id: any): any;
|
|
2693
|
+
deleteReference(referenceGuid: any): number;
|
|
2694
|
+
}
|
|
2695
|
+
}
|
|
2696
|
+
declare module "dist/lib/core/handler/DestructReferenceHandler" {
|
|
2697
|
+
const _exports: DestructReferenceHandler;
|
|
2698
|
+
export = _exports;
|
|
2699
|
+
class DestructReferenceHandler extends AbstractHandler {
|
|
2700
|
+
process(command: any): any;
|
|
2701
|
+
}
|
|
2702
|
+
import AbstractHandler = require("@javonet/core/lib/core/handler/AbstractHandler");
|
|
2703
|
+
}
|
|
2704
|
+
declare module "dist/lib/core/namespaceCache/NamespaceCache" {
|
|
2705
|
+
export = NamespaceCache;
|
|
2706
|
+
class NamespaceCache {
|
|
2707
|
+
static _instance: null;
|
|
2708
|
+
namespaceCache: any[];
|
|
2709
|
+
cacheNamespace(namespaceRegex: any): void;
|
|
2710
|
+
isNamespaceCacheEmpty(): boolean;
|
|
2711
|
+
isTypeAllowed(typeToCheck: any): boolean;
|
|
2712
|
+
getCachedNamespaces(): any[];
|
|
2713
|
+
clearCache(): number;
|
|
2714
|
+
}
|
|
2715
|
+
}
|
|
2716
|
+
declare module "dist/lib/core/handler/EnableNamespaceHandler" {
|
|
2717
|
+
const _exports: EnableNamespaceHandler;
|
|
2718
|
+
export = _exports;
|
|
2719
|
+
class EnableNamespaceHandler extends AbstractHandler {
|
|
2720
|
+
requiredParametersCount: number;
|
|
2721
|
+
process(command: any): number;
|
|
2722
|
+
}
|
|
2723
|
+
import AbstractHandler = require("@javonet/core/lib/core/handler/AbstractHandler");
|
|
2724
|
+
}
|
|
2725
|
+
declare module "dist/lib/core/typeCache/TypeCache" {
|
|
2726
|
+
export = TypeCache;
|
|
2727
|
+
class TypeCache {
|
|
2728
|
+
static _instance: null;
|
|
2729
|
+
typeCache: any[];
|
|
2730
|
+
cacheType(typRegex: any): void;
|
|
2731
|
+
isTypeCacheEmpty(): boolean;
|
|
2732
|
+
isTypeAllowed(typeToCheck: any): boolean;
|
|
2733
|
+
getCachedTypes(): any[];
|
|
2734
|
+
clearCache(): number;
|
|
2735
|
+
}
|
|
2736
|
+
}
|
|
2737
|
+
declare module "dist/lib/core/handler/EnableTypeHandler" {
|
|
2738
|
+
const _exports: EnableTypeHandler;
|
|
2739
|
+
export = _exports;
|
|
2740
|
+
class EnableTypeHandler extends AbstractHandler {
|
|
2741
|
+
requiredParametersCount: number;
|
|
2742
|
+
process(command: any): number;
|
|
2743
|
+
}
|
|
2744
|
+
import AbstractHandler = require("@javonet/core/lib/core/handler/AbstractHandler");
|
|
2745
|
+
}
|
|
2746
|
+
declare module "dist/lib/core/handler/GetGlobalStaticFieldHandler" {
|
|
2747
|
+
const _exports: GetGlobalStaticFieldHandler;
|
|
2748
|
+
export = _exports;
|
|
2749
|
+
class GetGlobalStaticFieldHandler extends AbstractHandler {
|
|
2750
|
+
requiredParametersCount: number;
|
|
2751
|
+
process(command: any): any;
|
|
2752
|
+
}
|
|
2753
|
+
import AbstractHandler = require("@javonet/core/lib/core/handler/AbstractHandler");
|
|
2754
|
+
}
|
|
2755
|
+
declare module "dist/lib/core/handler/GetInstanceFieldHandler" {
|
|
2756
|
+
const _exports: GetInstanceFieldHandler;
|
|
2757
|
+
export = _exports;
|
|
2758
|
+
class GetInstanceFieldHandler extends AbstractHandler {
|
|
2759
|
+
requiredParametersCount: number;
|
|
2760
|
+
process(command: any): any;
|
|
2761
|
+
}
|
|
2762
|
+
import AbstractHandler = require("@javonet/core/lib/core/handler/AbstractHandler");
|
|
2763
|
+
}
|
|
2764
|
+
declare module "dist/lib/core/handler/GetStaticFieldHandler" {
|
|
2765
|
+
const _exports: GetStaticFieldHandler;
|
|
2766
|
+
export = _exports;
|
|
2767
|
+
class GetStaticFieldHandler extends AbstractHandler {
|
|
2768
|
+
requiredParametersCount: number;
|
|
2769
|
+
process(command: any): any;
|
|
2770
|
+
}
|
|
2771
|
+
import AbstractHandler = require("@javonet/core/lib/core/handler/AbstractHandler");
|
|
2772
|
+
}
|
|
2773
|
+
declare module "dist/lib/core/handler/LoadLibraryHandler" {
|
|
2774
|
+
const _exports: LoadLibraryHandler;
|
|
2775
|
+
export = _exports;
|
|
2776
|
+
class LoadLibraryHandler extends AbstractHandler {
|
|
2777
|
+
static loadedLibraries: any[];
|
|
2778
|
+
requiredParametersCount: number;
|
|
2779
|
+
process(command: any): number;
|
|
2780
|
+
getLoadedLibraries(): any[];
|
|
2781
|
+
}
|
|
2782
|
+
import AbstractHandler = require("@javonet/core/lib/core/handler/AbstractHandler");
|
|
2783
|
+
}
|
|
2784
|
+
declare module "dist/lib/core/handler/GetTypeHandler" {
|
|
2785
|
+
const _exports: GetTypeHandler;
|
|
2786
|
+
export = _exports;
|
|
2787
|
+
class GetTypeHandler extends AbstractHandler {
|
|
2788
|
+
requiredParametersCount: number;
|
|
2789
|
+
namespaceCache: NamespaceCache;
|
|
2790
|
+
typeCache: TypeCache;
|
|
2791
|
+
process(command: any): any;
|
|
2792
|
+
getAvailableTypes(): any[];
|
|
2793
|
+
}
|
|
2794
|
+
import AbstractHandler = require("@javonet/core/lib/core/handler/AbstractHandler");
|
|
2795
|
+
import NamespaceCache = require("@javonet/core/lib/core/namespaceCache/NamespaceCache");
|
|
2796
|
+
import TypeCache = require("@javonet/core/lib/core/typeCache/TypeCache");
|
|
2797
|
+
}
|
|
2798
|
+
declare module "dist/lib/core/handler/ValueHandler" {
|
|
2799
|
+
const _exports: ValueHandler;
|
|
2800
|
+
export = _exports;
|
|
2801
|
+
class ValueHandler extends AbstractHandler {
|
|
2802
|
+
process(command: any): any;
|
|
2803
|
+
}
|
|
2804
|
+
import AbstractHandler = require("@javonet/core/lib/core/handler/AbstractHandler");
|
|
2805
|
+
}
|
|
2806
|
+
declare module "dist/lib/core/handler/InvokeStaticMethodHandler" {
|
|
2807
|
+
const _exports: InvokeStaticMethodHandler;
|
|
2808
|
+
export = _exports;
|
|
2809
|
+
class InvokeStaticMethodHandler extends AbstractHandler {
|
|
2810
|
+
requiredParametersCount: number;
|
|
2811
|
+
process(command: any): any;
|
|
2812
|
+
}
|
|
2813
|
+
import AbstractHandler = require("@javonet/core/lib/core/handler/AbstractHandler");
|
|
2814
|
+
}
|
|
2815
|
+
declare module "dist/lib/core/handler/SetStaticFieldHandler" {
|
|
2816
|
+
const _exports: SetStaticFieldHandler;
|
|
2817
|
+
export = _exports;
|
|
2818
|
+
class SetStaticFieldHandler extends AbstractHandler {
|
|
2819
|
+
requiredParametersCount: number;
|
|
2820
|
+
process(command: any): number;
|
|
2821
|
+
}
|
|
2822
|
+
import AbstractHandler = require("@javonet/core/lib/core/handler/AbstractHandler");
|
|
2823
|
+
}
|
|
2824
|
+
declare module "dist/lib/core/handler/ResolveReferenceHandler" {
|
|
2825
|
+
const _exports: ResolveReferenceHandler;
|
|
2826
|
+
export = _exports;
|
|
2827
|
+
class ResolveReferenceHandler extends AbstractHandler {
|
|
2828
|
+
process(command: any): any;
|
|
2829
|
+
}
|
|
2830
|
+
import AbstractHandler = require("@javonet/core/lib/core/handler/AbstractHandler");
|
|
2831
|
+
}
|
|
2832
|
+
declare module "dist/lib/core/handler/SetInstanceFieldHandler" {
|
|
2833
|
+
const _exports: SetInstanceFieldHandler;
|
|
2834
|
+
export = _exports;
|
|
2835
|
+
class SetInstanceFieldHandler extends AbstractHandler {
|
|
2836
|
+
requiredParametersCount: number;
|
|
2837
|
+
process(command: any): number;
|
|
2838
|
+
}
|
|
2839
|
+
import AbstractHandler = require("@javonet/core/lib/core/handler/AbstractHandler");
|
|
2840
|
+
}
|
|
2841
|
+
declare module "dist/lib/core/handler/InvokeInstanceMethodHandler" {
|
|
2842
|
+
const _exports: InvokeInstanceMethodHandler;
|
|
2843
|
+
export = _exports;
|
|
2844
|
+
class InvokeInstanceMethodHandler extends AbstractHandler {
|
|
2845
|
+
requiredParametersCount: number;
|
|
2846
|
+
process(command: any): any;
|
|
2847
|
+
}
|
|
2848
|
+
import AbstractHandler = require("@javonet/core/lib/core/handler/AbstractHandler");
|
|
2849
|
+
}
|
|
2850
|
+
declare module "dist/lib/core/handler/InvokeGlobalMethodHandler" {
|
|
2851
|
+
const _exports: InvokeGlobalMethodHandler;
|
|
2852
|
+
export = _exports;
|
|
2853
|
+
class InvokeGlobalMethodHandler extends AbstractHandler {
|
|
2854
|
+
requiredParametersCount: number;
|
|
2855
|
+
process(command: any): any;
|
|
2856
|
+
}
|
|
2857
|
+
import AbstractHandler = require("@javonet/core/lib/core/handler/AbstractHandler");
|
|
2858
|
+
}
|
|
2859
|
+
declare module "dist/lib/core/handler/InvokeStandaloneMethodHandler" {
|
|
2860
|
+
const _exports: InvokeStandaloneMethodHandler;
|
|
2861
|
+
export = _exports;
|
|
2862
|
+
class InvokeStandaloneMethodHandler extends AbstractHandler {
|
|
2863
|
+
requiredParametersCount: number;
|
|
2864
|
+
process(command: any): any;
|
|
2865
|
+
throwError(type: any, methodName: any): void;
|
|
2866
|
+
}
|
|
2867
|
+
import AbstractHandler = require("@javonet/core/lib/core/handler/AbstractHandler");
|
|
2868
|
+
}
|
|
2869
|
+
declare module "dist/lib/core/handler/Handler" {
|
|
2870
|
+
export class Handler {
|
|
2871
|
+
handleCommand(command: any): Command;
|
|
2872
|
+
parseCommand(response: any, runtimeName: any): Command;
|
|
2873
|
+
}
|
|
2874
|
+
export const handlers: {
|
|
2875
|
+
0: {
|
|
2876
|
+
process(command: any): any;
|
|
2877
|
+
handlers: any[];
|
|
2878
|
+
handleCommand(command: any): void;
|
|
2879
|
+
iterate(cmd: any): void;
|
|
2880
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
2881
|
+
};
|
|
2882
|
+
1: {
|
|
2883
|
+
requiredParametersCount: number;
|
|
2884
|
+
process(command: any): number;
|
|
2885
|
+
getLoadedLibraries(): any[];
|
|
2886
|
+
handlers: any[];
|
|
2887
|
+
handleCommand(command: any): void;
|
|
2888
|
+
iterate(cmd: any): void;
|
|
2889
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
2890
|
+
};
|
|
2891
|
+
2: {
|
|
2892
|
+
requiredParametersCount: number;
|
|
2893
|
+
process(command: any): any;
|
|
2894
|
+
handlers: any[];
|
|
2895
|
+
handleCommand(command: any): void;
|
|
2896
|
+
iterate(cmd: any): void;
|
|
2897
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
2898
|
+
};
|
|
2899
|
+
6: {
|
|
2900
|
+
requiredParametersCount: number;
|
|
2901
|
+
namespaceCache: import("@javonet/core/lib/core/namespaceCache/NamespaceCache");
|
|
2902
|
+
typeCache: import("@javonet/core/lib/core/typeCache/TypeCache");
|
|
2903
|
+
process(command: any): any;
|
|
2904
|
+
getAvailableTypes(): any[];
|
|
2905
|
+
handlers: any[];
|
|
2906
|
+
handleCommand(command: any): void;
|
|
2907
|
+
iterate(cmd: any): void;
|
|
2908
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
2909
|
+
};
|
|
2910
|
+
3: {
|
|
2911
|
+
requiredParametersCount: number;
|
|
2912
|
+
process(command: any): any;
|
|
2913
|
+
handlers: any[];
|
|
2914
|
+
handleCommand(command: any): void;
|
|
2915
|
+
iterate(cmd: any): void;
|
|
2916
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
2917
|
+
};
|
|
2918
|
+
4: {
|
|
2919
|
+
requiredParametersCount: number;
|
|
2920
|
+
process(command: any): number;
|
|
2921
|
+
handlers: any[];
|
|
2922
|
+
handleCommand(command: any): void;
|
|
2923
|
+
iterate(cmd: any): void;
|
|
2924
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
2925
|
+
};
|
|
2926
|
+
5: {
|
|
2927
|
+
requiredParametersCount: number;
|
|
2928
|
+
process(command: any): any;
|
|
2929
|
+
handlers: any[];
|
|
2930
|
+
handleCommand(command: any): void;
|
|
2931
|
+
iterate(cmd: any): void;
|
|
2932
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
2933
|
+
};
|
|
2934
|
+
7: {
|
|
2935
|
+
process(command: any): any;
|
|
2936
|
+
handlers: any[];
|
|
2937
|
+
handleCommand(command: any): void;
|
|
2938
|
+
iterate(cmd: any): void;
|
|
2939
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
2940
|
+
};
|
|
2941
|
+
12: {
|
|
2942
|
+
process(command: any): void;
|
|
2943
|
+
handlers: any[];
|
|
2944
|
+
handleCommand(command: any): void;
|
|
2945
|
+
iterate(cmd: any): void;
|
|
2946
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
2947
|
+
};
|
|
2948
|
+
13: {
|
|
2949
|
+
requiredParametersCount: number;
|
|
2950
|
+
process(command: any): any;
|
|
2951
|
+
handlers: any[];
|
|
2952
|
+
handleCommand(command: any): void;
|
|
2953
|
+
iterate(cmd: any): void;
|
|
2954
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
2955
|
+
};
|
|
2956
|
+
25: {
|
|
2957
|
+
requiredParametersCount: number;
|
|
2958
|
+
process(command: any): number;
|
|
2959
|
+
handlers: any[];
|
|
2960
|
+
handleCommand(command: any): void;
|
|
2961
|
+
iterate(cmd: any): void;
|
|
2962
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
2963
|
+
};
|
|
2964
|
+
9: {
|
|
2965
|
+
requiredParametersCount: number;
|
|
2966
|
+
process(command: any): any;
|
|
2967
|
+
handlers: any[];
|
|
2968
|
+
handleCommand(command: any): void;
|
|
2969
|
+
iterate(cmd: any): void;
|
|
2970
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
2971
|
+
};
|
|
2972
|
+
37: {
|
|
2973
|
+
requiredParametersCount: number;
|
|
2974
|
+
process(command: any): any;
|
|
2975
|
+
throwError(type: any, methodName: any): void;
|
|
2976
|
+
handlers: any[];
|
|
2977
|
+
handleCommand(command: any): void;
|
|
2978
|
+
iterate(cmd: any): void;
|
|
2979
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
2980
|
+
};
|
|
2981
|
+
16: {
|
|
2982
|
+
requiredParametersCount: number;
|
|
2983
|
+
process(command: any): any;
|
|
2984
|
+
handlers: any[];
|
|
2985
|
+
handleCommand(command: any): void;
|
|
2986
|
+
iterate(cmd: any): void;
|
|
2987
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
2988
|
+
};
|
|
2989
|
+
17: {
|
|
2990
|
+
process(command: any): any;
|
|
2991
|
+
handlers: any[];
|
|
2992
|
+
handleCommand(command: any): void;
|
|
2993
|
+
iterate(cmd: any): void;
|
|
2994
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
2995
|
+
};
|
|
2996
|
+
19: {
|
|
2997
|
+
requiredParametersCount: number;
|
|
2998
|
+
process(command: any): any;
|
|
2999
|
+
handlers: any[];
|
|
3000
|
+
handleCommand(command: any): void;
|
|
3001
|
+
iterate(cmd: any): void;
|
|
3002
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3003
|
+
};
|
|
3004
|
+
20: {
|
|
3005
|
+
requiredParametersCount: number;
|
|
3006
|
+
process(command: any): number;
|
|
3007
|
+
handlers: any[];
|
|
3008
|
+
handleCommand(command: any): void;
|
|
3009
|
+
iterate(cmd: any): void;
|
|
3010
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3011
|
+
};
|
|
3012
|
+
21: {
|
|
3013
|
+
requiredParametersCount: number;
|
|
3014
|
+
process(command: any): number;
|
|
3015
|
+
handlers: any[];
|
|
3016
|
+
handleCommand(command: any): void;
|
|
3017
|
+
iterate(cmd: any): void;
|
|
3018
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3019
|
+
};
|
|
3020
|
+
22: {
|
|
3021
|
+
requiredParametersCount: number;
|
|
3022
|
+
process(command: any): number;
|
|
3023
|
+
handlers: any[];
|
|
3024
|
+
handleCommand(command: any): void;
|
|
3025
|
+
iterate(cmd: any): void;
|
|
3026
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3027
|
+
};
|
|
3028
|
+
23: {
|
|
3029
|
+
process(command: any): any;
|
|
3030
|
+
handlers: any[];
|
|
3031
|
+
handleCommand(command: any): void;
|
|
3032
|
+
iterate(cmd: any): void;
|
|
3033
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3034
|
+
};
|
|
3035
|
+
34: {
|
|
3036
|
+
requiredParametersCount: number;
|
|
3037
|
+
process(command: any): number;
|
|
3038
|
+
handlers: any[];
|
|
3039
|
+
handleCommand(command: any): void;
|
|
3040
|
+
iterate(cmd: any): void;
|
|
3041
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3042
|
+
};
|
|
3043
|
+
35: {
|
|
3044
|
+
requiredParametersCount: number;
|
|
3045
|
+
process(command: any): number;
|
|
3046
|
+
handlers: any[];
|
|
3047
|
+
handleCommand(command: any): void;
|
|
3048
|
+
iterate(cmd: any): void;
|
|
3049
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3050
|
+
};
|
|
3051
|
+
};
|
|
3052
|
+
import { Command } from "@javonet/core";
|
|
3053
|
+
}
|
|
3054
|
+
declare module "dist/lib/core/handler/SetGlobalStaticFieldHandler" {
|
|
3055
|
+
const _exports: SetGlobalStaticFieldHandler;
|
|
3056
|
+
export = _exports;
|
|
3057
|
+
class SetGlobalStaticFieldHandler extends AbstractHandler {
|
|
3058
|
+
requiredParametersCount: number;
|
|
3059
|
+
}
|
|
3060
|
+
import AbstractHandler = require("@javonet/core/lib/core/handler/AbstractHandler");
|
|
3061
|
+
}
|
|
3062
|
+
declare module "dist/lib/utils/RuntimeLogger" {
|
|
3063
|
+
export = RuntimeLogger;
|
|
3064
|
+
class RuntimeLogger {
|
|
3065
|
+
static notLoggedYet: boolean;
|
|
3066
|
+
static getRuntimeInfo(): string;
|
|
3067
|
+
static printRuntimeInfo(): void;
|
|
3068
|
+
}
|
|
3069
|
+
}
|
|
3070
|
+
declare module "dist/lib/core/receiver/Receiver" {
|
|
3071
|
+
export = Receiver;
|
|
3072
|
+
class Receiver {
|
|
3073
|
+
static connectionData: InMemoryConnectionData;
|
|
3074
|
+
/**
|
|
3075
|
+
* @param {number[]} messageByteArray
|
|
3076
|
+
*/
|
|
3077
|
+
static sendCommand(messageByteArray: number[]): Int8Array<ArrayBuffer>;
|
|
3078
|
+
static heartBeat(messageByteArray: any): Int8Array<ArrayBuffer>;
|
|
3079
|
+
Receiver(): void;
|
|
3080
|
+
}
|
|
3081
|
+
import { InMemoryConnectionData } from "@javonet/core";
|
|
3082
|
+
}
|
|
3083
|
+
declare module "dist/lib/core/receiver/ReceiverNative" {
|
|
3084
|
+
export {};
|
|
3085
|
+
}
|
|
3086
|
+
declare module "dist/lib/core/transmitter/TransmitterWrapper" {
|
|
3087
|
+
export = TransmitterWrapper;
|
|
3088
|
+
class TransmitterWrapper {
|
|
3089
|
+
static initialize(): any;
|
|
3090
|
+
static activate(licenseKey: any): any;
|
|
3091
|
+
static sendCommand(messageArray: any): any;
|
|
3092
|
+
static setConfigSource(configSource: any): any;
|
|
3093
|
+
}
|
|
3094
|
+
}
|
|
3095
|
+
declare module "dist/lib/core/transmitter/Transmitter" {
|
|
3096
|
+
export = Transmitter;
|
|
3097
|
+
class Transmitter {
|
|
3098
|
+
static initialize(): any;
|
|
3099
|
+
static sendCommand(messageArray: any): any;
|
|
3100
|
+
static activate: (licenseKey: any) => any;
|
|
3101
|
+
static setConfigSource(configSource: any): any;
|
|
3102
|
+
}
|
|
3103
|
+
}
|
|
3104
|
+
declare module "dist/lib/sdk/tools/JsonFileResolver" {
|
|
3105
|
+
export = JsonFileResolver;
|
|
3106
|
+
class JsonFileResolver {
|
|
3107
|
+
constructor(path: any);
|
|
3108
|
+
path: any;
|
|
3109
|
+
jsonObject: any;
|
|
3110
|
+
getLicenseKey(): any;
|
|
3111
|
+
getRuntimes(): any;
|
|
3112
|
+
getRuntime(runtimeName: any, configName: any): any;
|
|
3113
|
+
getChannel(runtimeName: any, configName: any): any;
|
|
3114
|
+
getChannelType(runtimeName: any, configName: any): any;
|
|
3115
|
+
getChannelHost(runtimeName: any, configName: any): any;
|
|
3116
|
+
getChannelPort(runtimeName: any, configName: any): any;
|
|
3117
|
+
getModules(runtimeName: any, configName: any): any;
|
|
3118
|
+
}
|
|
3119
|
+
}
|
|
3120
|
+
declare module "dist/lib/utils/connectionData/TcpConnectionData" {
|
|
3121
|
+
export = TcpConnectionData;
|
|
3122
|
+
/**
|
|
3123
|
+
* @extends IConnectionData
|
|
3124
|
+
*/
|
|
3125
|
+
class TcpConnectionData extends IConnectionData {
|
|
3126
|
+
constructor(hostname: any, port: any);
|
|
3127
|
+
_port: any;
|
|
3128
|
+
_hostname: any;
|
|
3129
|
+
_connectionType: 1;
|
|
3130
|
+
ipAddress: string | null;
|
|
3131
|
+
get connectionType(): 1;
|
|
3132
|
+
get hostname(): any;
|
|
3133
|
+
/**
|
|
3134
|
+
* @param {TcpConnectionData} other
|
|
3135
|
+
* @returns {boolean}
|
|
3136
|
+
*/
|
|
3137
|
+
equals(other: TcpConnectionData): boolean;
|
|
3138
|
+
/**
|
|
3139
|
+
* @param {string} hostname
|
|
3140
|
+
* @returns {string|null}
|
|
3141
|
+
*/
|
|
3142
|
+
resolveIpAddress(hostname: string): string | null;
|
|
3143
|
+
serializeConnectionData(): 1[];
|
|
3144
|
+
#private;
|
|
3145
|
+
}
|
|
3146
|
+
import { IConnectionData } from "@javonet/core";
|
|
3147
|
+
}
|
|
3148
|
+
declare module "dist/lib/sdk/ConfigRuntimeFactory" {
|
|
3149
|
+
export = ConfigRuntimeFactory;
|
|
3150
|
+
/**
|
|
3151
|
+
* The ConfigRuntimeFactory class provides methods for creating runtime contexts.
|
|
3152
|
+
* Each method corresponds to a specific runtime (CLR, JVM, .NET Core, Perl, Ruby, Node.js, Python) and returns a RuntimeContext instance for that runtime.
|
|
3153
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
3154
|
+
*/
|
|
3155
|
+
class ConfigRuntimeFactory {
|
|
3156
|
+
constructor(path: any);
|
|
3157
|
+
path: any;
|
|
3158
|
+
/**
|
|
3159
|
+
* Creates RuntimeContext instance to interact with the .NET Framework runtime.
|
|
3160
|
+
* @param {string} [configName="default"] - The name of the configuration to use (optional).
|
|
3161
|
+
* @return {RuntimeContext} a RuntimeContext instance for the .NET Framework runtime
|
|
3162
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
3163
|
+
*/
|
|
3164
|
+
clr(configName?: string): RuntimeContext;
|
|
3165
|
+
/**
|
|
3166
|
+
* Creates RuntimeContext instance to interact with the JVM runtime.
|
|
3167
|
+
* @param {string} [configName="default"] - The name of the configuration to use (optional).
|
|
3168
|
+
* @return {RuntimeContext} a RuntimeContext instance for the JVM runtime
|
|
3169
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
3170
|
+
*/
|
|
3171
|
+
jvm(configName?: string): RuntimeContext;
|
|
3172
|
+
/**
|
|
3173
|
+
* Creates RuntimeContext instance to interact with the .NET runtime.
|
|
3174
|
+
* @param {string} [configName="default"] - The name of the configuration to use (optional).
|
|
3175
|
+
* @return {RuntimeContext} a RuntimeContext instance for the .NET runtime
|
|
3176
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
3177
|
+
*/
|
|
3178
|
+
netcore(configName?: string): RuntimeContext;
|
|
3179
|
+
/**
|
|
3180
|
+
* Creates RuntimeContext instance to interact with the Perl runtime.
|
|
3181
|
+
* @param {string} [configName="default"] - The name of the configuration to use (optional).
|
|
3182
|
+
* @return {RuntimeContext} a RuntimeContext instance for the Perl runtime
|
|
3183
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
3184
|
+
*/
|
|
3185
|
+
perl(configName?: string): RuntimeContext;
|
|
3186
|
+
/**
|
|
3187
|
+
* Creates RuntimeContext instance to interact with the Python runtime.
|
|
3188
|
+
* @param {string} [configName="default"] - The name of the configuration to use (optional).
|
|
3189
|
+
* @return {RuntimeContext} a RuntimeContext instance for the Python runtime
|
|
3190
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
3191
|
+
*/
|
|
3192
|
+
python(configName?: string): RuntimeContext;
|
|
3193
|
+
/**
|
|
3194
|
+
* Creates RuntimeContext instance to interact with the Ruby runtime.
|
|
3195
|
+
* @param {string} [configName="default"] - The name of the configuration to use (optional).
|
|
3196
|
+
* @return {RuntimeContext} a RuntimeContext instance for the Ruby runtime
|
|
3197
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
3198
|
+
*/
|
|
3199
|
+
ruby(configName?: string): RuntimeContext;
|
|
3200
|
+
/**
|
|
3201
|
+
* Creates RuntimeContext instance to interact with Node.js runtime.
|
|
3202
|
+
* @param {string} [configName="default"] - The name of the configuration to use (optional).
|
|
3203
|
+
* @return {RuntimeContext} a RuntimeContext instance for the Node.js runtime
|
|
3204
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
3205
|
+
*/
|
|
3206
|
+
nodejs(configName?: string): RuntimeContext;
|
|
3207
|
+
#private;
|
|
3208
|
+
}
|
|
3209
|
+
import { RuntimeContext } from "@javonet/core";
|
|
3210
|
+
}
|
|
3211
|
+
declare module "dist/lib/sdk/Javonet" {
|
|
3212
|
+
/**
|
|
3213
|
+
* The Javonet class is a singleton class that serves as the entry point for interacting with Javonet.
|
|
3214
|
+
* It provides methods to activate and initialize the Javonet SDK.
|
|
3215
|
+
* It supports both in-memory and TCP connections.
|
|
3216
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/javonet-static-class)
|
|
3217
|
+
*/
|
|
3218
|
+
export class Javonet {
|
|
3219
|
+
/**
|
|
3220
|
+
* Initializes Javonet using an in-memory channel on the same machine.
|
|
3221
|
+
* @returns {RuntimeFactory} A RuntimeFactory instance configured for an in-memory connection.
|
|
3222
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/in-memory-channel)
|
|
3223
|
+
*/
|
|
3224
|
+
static inMemory(): RuntimeFactory;
|
|
3225
|
+
/**
|
|
3226
|
+
* Initializes Javonet with a TCP connection to a remote machine.
|
|
3227
|
+
* @param {TcpConnectionData} tcpConnectionData - The tcp connection data of the remote machine.
|
|
3228
|
+
* @returns {RuntimeFactory} A RuntimeFactory instance configured for a TCP connection.
|
|
3229
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/tcp-channel)
|
|
3230
|
+
*/
|
|
3231
|
+
static tcp(tcpConnectionData: TcpConnectionData): RuntimeFactory;
|
|
3232
|
+
/**
|
|
3233
|
+
* Initializes Javonet with a WebSocket connection to a remote machine.
|
|
3234
|
+
* @param {WsConnectionData} wsConnectionData - The WebSocket connection data of the remote machine.
|
|
3235
|
+
* @returns {RuntimeFactory} A RuntimeFactory instance configured for a WebSocket connection.
|
|
3236
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/websocket-channel)
|
|
3237
|
+
*/
|
|
3238
|
+
static ws(wsConnectionData: WsConnectionData): RuntimeFactory;
|
|
3239
|
+
/**
|
|
3240
|
+
* Initializes Javonet with a custom configuration file taken from external source.
|
|
3241
|
+
* Currentyl supported: Configuration file in JSON format
|
|
3242
|
+
* @param {string} configPath - Path to a configuration file.
|
|
3243
|
+
* @returns {ConfigRuntimeFactory} A ConfigRuntimeFactory instance with configuration data.
|
|
3244
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/configure-channel)
|
|
3245
|
+
*/
|
|
3246
|
+
static withConfig(configPath: string): ConfigRuntimeFactory;
|
|
3247
|
+
/**
|
|
3248
|
+
* Activates Javonet with the provided license key.
|
|
3249
|
+
* @param {string} licenseKey - The license key to activate Javonet.
|
|
3250
|
+
* @returns {number} The activation status code.
|
|
3251
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/getting-started/activating-javonet)
|
|
3252
|
+
*/
|
|
3253
|
+
static activate(licenseKey: string): number;
|
|
3254
|
+
static getRuntimeInfo(): string;
|
|
3255
|
+
/**
|
|
3256
|
+
* Sets the configuration source for the Javonet SDK.
|
|
3257
|
+
*
|
|
3258
|
+
* @param {string} configSource - The configuration source.
|
|
3259
|
+
*/
|
|
3260
|
+
static setConfigSource(configSource: string): void;
|
|
3261
|
+
}
|
|
3262
|
+
import TcpConnectionData = require("@javonet/core/lib/utils/connectionData/TcpConnectionData");
|
|
3263
|
+
import { WsConnectionData } from "@javonet/core";
|
|
3264
|
+
import { RuntimeFactory } from "@javonet/core";
|
|
3265
|
+
import ConfigRuntimeFactory = require("@javonet/core/lib/sdk/ConfigRuntimeFactory");
|
|
3266
|
+
export { TcpConnectionData, WsConnectionData };
|
|
3267
|
+
}
|
|
3268
|
+
declare module "dist/lib/sdk/tools/SdkExceptionHelper" {
|
|
3269
|
+
export = sendExceptionToAppInsights;
|
|
3270
|
+
/**
|
|
3271
|
+
*
|
|
3272
|
+
* @param {any} e
|
|
3273
|
+
* @param {string} licenseKey
|
|
3274
|
+
*/
|
|
3275
|
+
function sendExceptionToAppInsights(e: any, licenseKey: string): Promise<any>;
|
|
3276
|
+
}
|
|
3277
|
+
declare module "lib/core/generator/handler/AbstractGeneratorHandler" {
|
|
3278
|
+
export = AbstractGeneratorHandler;
|
|
3279
|
+
class AbstractGeneratorHandler {
|
|
3280
|
+
generate_command(analyzed_object: any, parent_command: any, handlers: any): void;
|
|
3281
|
+
generate_code(existing_string_builder: any, common_command: any, used_object: any, handlers: any): void;
|
|
3282
|
+
}
|
|
3283
|
+
}
|
|
3284
|
+
declare module "lib/core/generator/internal/SharedHandlerType" {
|
|
3285
|
+
export let ARGUMENT_NAME: number;
|
|
3286
|
+
export let METHOD_BODY: number;
|
|
3287
|
+
export let CLASS_NAME: number;
|
|
3288
|
+
export let METHOD_NAME: number;
|
|
3289
|
+
export let MODIFIER: number;
|
|
3290
|
+
export let TYPE: number;
|
|
3291
|
+
export let CLAZZ_INSTANCE: number;
|
|
3292
|
+
export let RETURN_TYPE: number;
|
|
3293
|
+
}
|
|
3294
|
+
declare module "lib/core/generator/internal/CommonGenerator" {
|
|
3295
|
+
export = CommonGenerator;
|
|
3296
|
+
class CommonGenerator {
|
|
3297
|
+
static process_method_arguments(existing_string_builder: any, common_command: any, type_array: any, name_array: any, handlers: any): void;
|
|
3298
|
+
static process_method_arguments_names(existing_string_builder: any, common_command: any, name_array: any, handlers: any): void;
|
|
3299
|
+
}
|
|
3300
|
+
}
|
|
3301
|
+
declare module "lib/core/generator/handler/CreateInstanceGeneratorHandler" {
|
|
3302
|
+
export = CreateInstanceGeneratorHandler;
|
|
3303
|
+
class CreateInstanceGeneratorHandler extends AbstractGeneratorHandler {
|
|
3304
|
+
}
|
|
3305
|
+
import AbstractGeneratorHandler = require("lib/core/generator/handler/AbstractGeneratorHandler");
|
|
3306
|
+
}
|
|
3307
|
+
declare module "lib/core/generator/internal/NodejsStringBuilder" {
|
|
3308
|
+
export = NodejsStringBuilder;
|
|
3309
|
+
class NodejsStringBuilder {
|
|
3310
|
+
string: string;
|
|
3311
|
+
append(string: any): void;
|
|
3312
|
+
getString(): string;
|
|
3313
|
+
}
|
|
3314
|
+
}
|
|
3315
|
+
declare module "lib/core/generator/handler/shared/SharedArgumentNameHandler" {
|
|
3316
|
+
export = SharedArgumentNameHandler;
|
|
3317
|
+
class SharedArgumentNameHandler extends AbstractGeneratorHandler {
|
|
3318
|
+
}
|
|
3319
|
+
import AbstractGeneratorHandler = require("lib/core/generator/handler/AbstractGeneratorHandler");
|
|
3320
|
+
}
|
|
3321
|
+
declare module "lib/core/generator/handler/shared/SharedMethodNameHandler" {
|
|
3322
|
+
export = SharedMethodNameHandler;
|
|
3323
|
+
class SharedMethodNameHandler extends AbstractGeneratorHandler {
|
|
3324
|
+
is_numeric_char(c: any): boolean;
|
|
3325
|
+
}
|
|
3326
|
+
import AbstractGeneratorHandler = require("lib/core/generator/handler/AbstractGeneratorHandler");
|
|
3327
|
+
}
|
|
3328
|
+
declare module "lib/core/generator/handler/shared/body/SharedBodyHandler" {
|
|
3329
|
+
export = SharedBodyHandler;
|
|
3330
|
+
class SharedBodyHandler extends AbstractGeneratorHandler {
|
|
3331
|
+
}
|
|
3332
|
+
import AbstractGeneratorHandler = require("lib/core/generator/handler/AbstractGeneratorHandler");
|
|
3333
|
+
}
|
|
3334
|
+
declare module "lib/core/generator/handler/shared/SharedClassNameHandler" {
|
|
3335
|
+
export = SharedClassNameHandler;
|
|
3336
|
+
class SharedClassNameHandler extends AbstractGeneratorHandler {
|
|
3337
|
+
is_numeric_char(c: any): boolean;
|
|
3338
|
+
}
|
|
3339
|
+
import AbstractGeneratorHandler = require("lib/core/generator/handler/AbstractGeneratorHandler");
|
|
3340
|
+
}
|
|
3341
|
+
declare module "lib/core/generator/handler/shared/SharedClassInstanceHandler" {
|
|
3342
|
+
export = SharedClassInstanceHandler;
|
|
3343
|
+
class SharedClassInstanceHandler extends AbstractGeneratorHandler {
|
|
3344
|
+
}
|
|
3345
|
+
import AbstractGeneratorHandler = require("lib/core/generator/handler/AbstractGeneratorHandler");
|
|
3346
|
+
}
|
|
3347
|
+
declare module "lib/core/generator/handler/shared/SharedReturnTypeHandler" {
|
|
3348
|
+
export = SharedReturnTypeHandler;
|
|
3349
|
+
class SharedReturnTypeHandler extends AbstractGeneratorHandler {
|
|
3350
|
+
}
|
|
3351
|
+
import AbstractGeneratorHandler = require("lib/core/generator/handler/AbstractGeneratorHandler");
|
|
3352
|
+
}
|
|
3353
|
+
declare module "lib/core/generator/utils/StringUtils" {
|
|
3354
|
+
export = StringUtils;
|
|
3355
|
+
class StringUtils {
|
|
3356
|
+
static capitalizeFirstLetter(string: any): any;
|
|
3357
|
+
}
|
|
3358
|
+
}
|
|
3359
|
+
declare module "lib/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler" {
|
|
3360
|
+
export = SharedCreateInstanceBodyHandler;
|
|
3361
|
+
class SharedCreateInstanceBodyHandler extends AbstractGeneratorHandler {
|
|
3362
|
+
}
|
|
3363
|
+
import AbstractGeneratorHandler = require("lib/core/generator/handler/AbstractGeneratorHandler");
|
|
3364
|
+
}
|
|
3365
|
+
declare module "lib/core/generator/handler/shared/body/SharedGetTypeBodyHandler" {
|
|
3366
|
+
export = SharedGetTypeBodyHandler;
|
|
3367
|
+
class SharedGetTypeBodyHandler extends AbstractGeneratorHandler {
|
|
3368
|
+
}
|
|
3369
|
+
import AbstractGeneratorHandler = require("lib/core/generator/handler/AbstractGeneratorHandler");
|
|
3370
|
+
}
|
|
3371
|
+
declare module "lib/core/generator/handler/shared/body/SharedInvokeInstanceMethodBodyHandler" {
|
|
3372
|
+
export = SharedInvokeInstanceMethodBodyHandler;
|
|
3373
|
+
class SharedInvokeInstanceMethodBodyHandler extends AbstractGeneratorHandler {
|
|
3374
|
+
}
|
|
3375
|
+
import AbstractGeneratorHandler = require("lib/core/generator/handler/AbstractGeneratorHandler");
|
|
3376
|
+
}
|
|
3377
|
+
declare module "lib/core/generator/handler/shared/body/SharedInvokeStaticMethodBodyHandler" {
|
|
3378
|
+
export = SharedInvokeStaticMethodBodyHandler;
|
|
3379
|
+
class SharedInvokeStaticMethodBodyHandler extends AbstractGeneratorHandler {
|
|
3380
|
+
}
|
|
3381
|
+
import AbstractGeneratorHandler = require("lib/core/generator/handler/AbstractGeneratorHandler");
|
|
3382
|
+
}
|
|
3383
|
+
declare module "lib/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler" {
|
|
3384
|
+
export = SharedGetStaticFieldBodyHandler;
|
|
3385
|
+
class SharedGetStaticFieldBodyHandler extends AbstractGeneratorHandler {
|
|
3386
|
+
}
|
|
3387
|
+
import AbstractGeneratorHandler = require("lib/core/generator/handler/AbstractGeneratorHandler");
|
|
3388
|
+
}
|
|
3389
|
+
declare module "lib/core/generator/handler/shared/body/SharedGetInstanceFieldBodyHandler" {
|
|
3390
|
+
export = SharedGetInstanceFieldBodyHandler;
|
|
3391
|
+
class SharedGetInstanceFieldBodyHandler extends AbstractGeneratorHandler {
|
|
3392
|
+
}
|
|
3393
|
+
import AbstractGeneratorHandler = require("lib/core/generator/handler/AbstractGeneratorHandler");
|
|
3394
|
+
}
|
|
3395
|
+
declare module "lib/core/generator/handler/GetTypeGeneratorHandler" {
|
|
3396
|
+
export = GetTypeGeneratorHandler;
|
|
3397
|
+
class GetTypeGeneratorHandler extends AbstractGeneratorHandler {
|
|
3398
|
+
}
|
|
3399
|
+
import AbstractGeneratorHandler = require("lib/core/generator/handler/AbstractGeneratorHandler");
|
|
3400
|
+
}
|
|
3401
|
+
declare module "lib/core/generator/handler/InvokeInstanceMethodGeneratorHandler" {
|
|
3402
|
+
export = InvokeInstanceMethodGeneratorHandler;
|
|
3403
|
+
class InvokeInstanceMethodGeneratorHandler extends AbstractGeneratorHandler {
|
|
3404
|
+
}
|
|
3405
|
+
import AbstractGeneratorHandler = require("lib/core/generator/handler/AbstractGeneratorHandler");
|
|
3406
|
+
}
|
|
3407
|
+
declare module "lib/core/generator/handler/InvokeStaticMethodGeneratorHandler" {
|
|
3408
|
+
export = InvokeStaticMethodGeneratorHandler;
|
|
3409
|
+
class InvokeStaticMethodGeneratorHandler extends AbstractGeneratorHandler {
|
|
3410
|
+
}
|
|
3411
|
+
import AbstractGeneratorHandler = require("lib/core/generator/handler/AbstractGeneratorHandler");
|
|
3412
|
+
}
|
|
3413
|
+
declare module "lib/core/generator/handler/GetStaticFieldGeneratorHandler" {
|
|
3414
|
+
export = GetStaticFieldGeneratorHandler;
|
|
3415
|
+
class GetStaticFieldGeneratorHandler extends AbstractGeneratorHandler {
|
|
3416
|
+
}
|
|
3417
|
+
import AbstractGeneratorHandler = require("lib/core/generator/handler/AbstractGeneratorHandler");
|
|
3418
|
+
}
|
|
3419
|
+
declare module "lib/core/generator/handler/GetInstanceFieldGeneratorHandler" {
|
|
3420
|
+
export = GetInstanceFieldGeneratorHandler;
|
|
3421
|
+
class GetInstanceFieldGeneratorHandler extends AbstractGeneratorHandler {
|
|
3422
|
+
}
|
|
3423
|
+
import AbstractGeneratorHandler = require("lib/core/generator/handler/AbstractGeneratorHandler");
|
|
3424
|
+
}
|
|
3425
|
+
declare module "lib/core/generator/handler/InvokeStandaloneMethodGeneratorHandler" {
|
|
3426
|
+
export = InvokeStandaloneMethodGeneratorHandler;
|
|
3427
|
+
class InvokeStandaloneMethodGeneratorHandler extends AbstractGeneratorHandler {
|
|
3428
|
+
}
|
|
3429
|
+
import AbstractGeneratorHandler = require("lib/core/generator/handler/AbstractGeneratorHandler");
|
|
3430
|
+
}
|
|
3431
|
+
declare module "lib/core/generator/handler/shared/body/SharedInvokeStandaloneMethodBodyHandler" {
|
|
3432
|
+
export = SharedInvokeStandaloneMethodBodyHandler;
|
|
3433
|
+
class SharedInvokeStandaloneMethodBodyHandler extends AbstractGeneratorHandler {
|
|
3434
|
+
}
|
|
3435
|
+
import AbstractGeneratorHandler = require("lib/core/generator/handler/AbstractGeneratorHandler");
|
|
3436
|
+
}
|
|
3437
|
+
declare module "lib/core/generator/handler/Handlers" {
|
|
3438
|
+
export = Handlers;
|
|
3439
|
+
class Handlers {
|
|
3440
|
+
GENERATOR_HANDLER: {};
|
|
3441
|
+
SHARED_HANDLER: {};
|
|
3442
|
+
SHARED_BODY_HANDLER: {};
|
|
3443
|
+
}
|
|
3444
|
+
}
|
|
3445
|
+
declare module "lib/core/generator/handler/GeneratorHandler" {
|
|
3446
|
+
export = GeneratorHandler;
|
|
3447
|
+
class GeneratorHandler {
|
|
3448
|
+
generate(command: any, file_path: any): any[];
|
|
3449
|
+
generate_class_file(existing_string_builder: any, class_file_name: any, file_path: any): any;
|
|
3450
|
+
}
|
|
3451
|
+
}
|
|
3452
|
+
declare module "lib/core/handler/AbstractHandler" {
|
|
3453
|
+
export = AbstractHandler;
|
|
3454
|
+
class AbstractHandler {
|
|
3455
|
+
handlers: any[];
|
|
3456
|
+
process(command: any): void;
|
|
3457
|
+
handleCommand(command: any): void;
|
|
3458
|
+
iterate(cmd: any): void;
|
|
3459
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3460
|
+
}
|
|
3461
|
+
}
|
|
3462
|
+
declare module "lib/core/handler/ArrayGetItemHandler" {
|
|
3463
|
+
const _exports: ArrayGetItemHandler;
|
|
3464
|
+
export = _exports;
|
|
3465
|
+
class ArrayGetItemHandler extends AbstractHandler {
|
|
3466
|
+
requiredParametersCount: number;
|
|
3467
|
+
process(command: any): any;
|
|
3468
|
+
}
|
|
3469
|
+
import AbstractHandler = require("lib/core/handler/AbstractHandler");
|
|
3470
|
+
}
|
|
3471
|
+
declare module "lib/core/handler/ArrayGetRankHandler" {
|
|
3472
|
+
const _exports: ArrayGetRankHandler;
|
|
3473
|
+
export = _exports;
|
|
3474
|
+
class ArrayGetRankHandler extends AbstractHandler {
|
|
3475
|
+
requiredParametersCount: number;
|
|
3476
|
+
process(command: any): number;
|
|
3477
|
+
}
|
|
3478
|
+
import AbstractHandler = require("lib/core/handler/AbstractHandler");
|
|
3479
|
+
}
|
|
3480
|
+
declare module "lib/core/handler/ArrayGetSizeHandler" {
|
|
3481
|
+
const _exports: ArrayGetSizeHandler;
|
|
3482
|
+
export = _exports;
|
|
3483
|
+
class ArrayGetSizeHandler extends AbstractHandler {
|
|
3484
|
+
requiredParametersCount: number;
|
|
3485
|
+
process(command: any): number;
|
|
3486
|
+
}
|
|
3487
|
+
import AbstractHandler = require("lib/core/handler/AbstractHandler");
|
|
3488
|
+
}
|
|
3489
|
+
declare module "lib/core/handler/ArrayHandler" {
|
|
3490
|
+
const _exports: ArrayHandler;
|
|
3491
|
+
export = _exports;
|
|
3492
|
+
class ArrayHandler extends AbstractHandler {
|
|
3493
|
+
process(command: any): any;
|
|
3494
|
+
}
|
|
3495
|
+
import AbstractHandler = require("lib/core/handler/AbstractHandler");
|
|
3496
|
+
}
|
|
3497
|
+
declare module "lib/core/handler/ArraySetItemHandler" {
|
|
3498
|
+
const _exports: ArraySetItemHandler;
|
|
3499
|
+
export = _exports;
|
|
3500
|
+
class ArraySetItemHandler extends AbstractHandler {
|
|
3501
|
+
requiredParametersCount: number;
|
|
3502
|
+
process(command: any): number;
|
|
3503
|
+
}
|
|
3504
|
+
import AbstractHandler = require("lib/core/handler/AbstractHandler");
|
|
3505
|
+
}
|
|
3506
|
+
declare module "lib/core/handler/CastingHandler" {
|
|
3507
|
+
const _exports: CastingHandler;
|
|
3508
|
+
export = _exports;
|
|
3509
|
+
class CastingHandler extends AbstractHandler {
|
|
3510
|
+
}
|
|
3511
|
+
import AbstractHandler = require("lib/core/handler/AbstractHandler");
|
|
3512
|
+
}
|
|
3513
|
+
declare module "lib/core/handler/CreateClassInstanceHandler" {
|
|
3514
|
+
const _exports: CreateClassInstanceHandler;
|
|
3515
|
+
export = _exports;
|
|
3516
|
+
class CreateClassInstanceHandler extends AbstractHandler {
|
|
3517
|
+
requiredParametersCount: number;
|
|
3518
|
+
process(command: any): any;
|
|
3519
|
+
}
|
|
3520
|
+
import AbstractHandler = require("lib/core/handler/AbstractHandler");
|
|
3521
|
+
}
|
|
3522
|
+
declare module "lib/utils/uuid/rng" {
|
|
3523
|
+
function _exports(): Uint8Array<ArrayBuffer>;
|
|
3524
|
+
export = _exports;
|
|
3525
|
+
}
|
|
3526
|
+
declare module "lib/utils/uuid/REGEX" {
|
|
3527
|
+
const _exports: RegExp;
|
|
3528
|
+
export = _exports;
|
|
3529
|
+
}
|
|
3530
|
+
declare module "lib/utils/uuid/validate" {
|
|
3531
|
+
export = validate;
|
|
3532
|
+
function validate(uuid: any): boolean;
|
|
3533
|
+
}
|
|
3534
|
+
declare module "lib/utils/uuid/stringify" {
|
|
3535
|
+
export = stringify;
|
|
3536
|
+
function stringify(arr: any, offset?: number): string;
|
|
3537
|
+
}
|
|
3538
|
+
declare module "lib/utils/uuid/v4" {
|
|
3539
|
+
export = v4;
|
|
3540
|
+
function v4(options: any, buf: any, offset: any): any;
|
|
3541
|
+
}
|
|
3542
|
+
declare module "lib/core/referenceCache/ReferencesCache" {
|
|
3543
|
+
export = ReferencesCache;
|
|
3544
|
+
class ReferencesCache {
|
|
3545
|
+
static getInstance(): any;
|
|
3546
|
+
cacheReference(reference: any): any;
|
|
3547
|
+
resolveReference(id: any): any;
|
|
3548
|
+
deleteReference(referenceGuid: any): number;
|
|
3549
|
+
}
|
|
3550
|
+
}
|
|
3551
|
+
declare module "lib/core/handler/DestructReferenceHandler" {
|
|
3552
|
+
const _exports: DestructReferenceHandler;
|
|
3553
|
+
export = _exports;
|
|
3554
|
+
class DestructReferenceHandler extends AbstractHandler {
|
|
3555
|
+
process(command: any): any;
|
|
3556
|
+
}
|
|
3557
|
+
import AbstractHandler = require("lib/core/handler/AbstractHandler");
|
|
3558
|
+
}
|
|
3559
|
+
declare module "lib/core/namespaceCache/NamespaceCache" {
|
|
3560
|
+
export = NamespaceCache;
|
|
3561
|
+
class NamespaceCache {
|
|
3562
|
+
static _instance: null;
|
|
3563
|
+
namespaceCache: any[];
|
|
3564
|
+
cacheNamespace(namespaceRegex: any): void;
|
|
3565
|
+
isNamespaceCacheEmpty(): boolean;
|
|
3566
|
+
isTypeAllowed(typeToCheck: any): boolean;
|
|
3567
|
+
getCachedNamespaces(): any[];
|
|
3568
|
+
clearCache(): number;
|
|
3569
|
+
}
|
|
3570
|
+
}
|
|
3571
|
+
declare module "lib/core/handler/EnableNamespaceHandler" {
|
|
3572
|
+
const _exports: EnableNamespaceHandler;
|
|
3573
|
+
export = _exports;
|
|
3574
|
+
class EnableNamespaceHandler extends AbstractHandler {
|
|
3575
|
+
requiredParametersCount: number;
|
|
3576
|
+
process(command: any): number;
|
|
3577
|
+
}
|
|
3578
|
+
import AbstractHandler = require("lib/core/handler/AbstractHandler");
|
|
3579
|
+
}
|
|
3580
|
+
declare module "lib/core/typeCache/TypeCache" {
|
|
3581
|
+
export = TypeCache;
|
|
3582
|
+
class TypeCache {
|
|
3583
|
+
static _instance: null;
|
|
3584
|
+
typeCache: any[];
|
|
3585
|
+
cacheType(typRegex: any): void;
|
|
3586
|
+
isTypeCacheEmpty(): boolean;
|
|
3587
|
+
isTypeAllowed(typeToCheck: any): boolean;
|
|
3588
|
+
getCachedTypes(): any[];
|
|
3589
|
+
clearCache(): number;
|
|
3590
|
+
}
|
|
3591
|
+
}
|
|
3592
|
+
declare module "lib/core/handler/EnableTypeHandler" {
|
|
3593
|
+
const _exports: EnableTypeHandler;
|
|
3594
|
+
export = _exports;
|
|
3595
|
+
class EnableTypeHandler extends AbstractHandler {
|
|
3596
|
+
requiredParametersCount: number;
|
|
3597
|
+
process(command: any): number;
|
|
3598
|
+
}
|
|
3599
|
+
import AbstractHandler = require("lib/core/handler/AbstractHandler");
|
|
3600
|
+
}
|
|
3601
|
+
declare module "lib/core/handler/GetGlobalStaticFieldHandler" {
|
|
3602
|
+
const _exports: GetGlobalStaticFieldHandler;
|
|
3603
|
+
export = _exports;
|
|
3604
|
+
class GetGlobalStaticFieldHandler extends AbstractHandler {
|
|
3605
|
+
requiredParametersCount: number;
|
|
3606
|
+
process(command: any): any;
|
|
3607
|
+
}
|
|
3608
|
+
import AbstractHandler = require("lib/core/handler/AbstractHandler");
|
|
3609
|
+
}
|
|
3610
|
+
declare module "lib/core/handler/GetInstanceFieldHandler" {
|
|
3611
|
+
const _exports: GetInstanceFieldHandler;
|
|
3612
|
+
export = _exports;
|
|
3613
|
+
class GetInstanceFieldHandler extends AbstractHandler {
|
|
3614
|
+
requiredParametersCount: number;
|
|
3615
|
+
process(command: any): any;
|
|
3616
|
+
}
|
|
3617
|
+
import AbstractHandler = require("lib/core/handler/AbstractHandler");
|
|
3618
|
+
}
|
|
3619
|
+
declare module "lib/core/handler/GetStaticFieldHandler" {
|
|
3620
|
+
const _exports: GetStaticFieldHandler;
|
|
3621
|
+
export = _exports;
|
|
3622
|
+
class GetStaticFieldHandler extends AbstractHandler {
|
|
3623
|
+
requiredParametersCount: number;
|
|
3624
|
+
process(command: any): any;
|
|
3625
|
+
}
|
|
3626
|
+
import AbstractHandler = require("lib/core/handler/AbstractHandler");
|
|
3627
|
+
}
|
|
3628
|
+
declare module "lib/core/handler/LoadLibraryHandler" {
|
|
3629
|
+
const _exports: LoadLibraryHandler;
|
|
3630
|
+
export = _exports;
|
|
3631
|
+
class LoadLibraryHandler extends AbstractHandler {
|
|
3632
|
+
static loadedLibraries: any[];
|
|
3633
|
+
requiredParametersCount: number;
|
|
3634
|
+
process(command: any): number;
|
|
3635
|
+
getLoadedLibraries(): any[];
|
|
3636
|
+
}
|
|
3637
|
+
import AbstractHandler = require("lib/core/handler/AbstractHandler");
|
|
3638
|
+
}
|
|
3639
|
+
declare module "lib/core/handler/GetTypeHandler" {
|
|
3640
|
+
const _exports: GetTypeHandler;
|
|
3641
|
+
export = _exports;
|
|
3642
|
+
class GetTypeHandler extends AbstractHandler {
|
|
3643
|
+
requiredParametersCount: number;
|
|
3644
|
+
namespaceCache: NamespaceCache;
|
|
3645
|
+
typeCache: TypeCache;
|
|
3646
|
+
process(command: any): any;
|
|
3647
|
+
getAvailableTypes(): any[];
|
|
3648
|
+
}
|
|
3649
|
+
import AbstractHandler = require("lib/core/handler/AbstractHandler");
|
|
3650
|
+
import NamespaceCache = require("lib/core/namespaceCache/NamespaceCache");
|
|
3651
|
+
import TypeCache = require("lib/core/typeCache/TypeCache");
|
|
3652
|
+
}
|
|
3653
|
+
declare module "lib/core/handler/ValueHandler" {
|
|
3654
|
+
const _exports: ValueHandler;
|
|
3655
|
+
export = _exports;
|
|
3656
|
+
class ValueHandler extends AbstractHandler {
|
|
3657
|
+
process(command: any): any;
|
|
3658
|
+
}
|
|
3659
|
+
import AbstractHandler = require("lib/core/handler/AbstractHandler");
|
|
3660
|
+
}
|
|
3661
|
+
declare module "lib/core/handler/InvokeStaticMethodHandler" {
|
|
3662
|
+
const _exports: InvokeStaticMethodHandler;
|
|
3663
|
+
export = _exports;
|
|
3664
|
+
class InvokeStaticMethodHandler extends AbstractHandler {
|
|
3665
|
+
requiredParametersCount: number;
|
|
3666
|
+
process(command: any): any;
|
|
3667
|
+
}
|
|
3668
|
+
import AbstractHandler = require("lib/core/handler/AbstractHandler");
|
|
3669
|
+
}
|
|
3670
|
+
declare module "lib/core/handler/SetStaticFieldHandler" {
|
|
3671
|
+
const _exports: SetStaticFieldHandler;
|
|
3672
|
+
export = _exports;
|
|
3673
|
+
class SetStaticFieldHandler extends AbstractHandler {
|
|
3674
|
+
requiredParametersCount: number;
|
|
3675
|
+
process(command: any): number;
|
|
3676
|
+
}
|
|
3677
|
+
import AbstractHandler = require("lib/core/handler/AbstractHandler");
|
|
3678
|
+
}
|
|
3679
|
+
declare module "lib/core/handler/ResolveReferenceHandler" {
|
|
3680
|
+
const _exports: ResolveReferenceHandler;
|
|
3681
|
+
export = _exports;
|
|
3682
|
+
class ResolveReferenceHandler extends AbstractHandler {
|
|
3683
|
+
process(command: any): any;
|
|
3684
|
+
}
|
|
3685
|
+
import AbstractHandler = require("lib/core/handler/AbstractHandler");
|
|
3686
|
+
}
|
|
3687
|
+
declare module "lib/core/handler/SetInstanceFieldHandler" {
|
|
3688
|
+
const _exports: SetInstanceFieldHandler;
|
|
3689
|
+
export = _exports;
|
|
3690
|
+
class SetInstanceFieldHandler extends AbstractHandler {
|
|
3691
|
+
requiredParametersCount: number;
|
|
3692
|
+
process(command: any): number;
|
|
3693
|
+
}
|
|
3694
|
+
import AbstractHandler = require("lib/core/handler/AbstractHandler");
|
|
3695
|
+
}
|
|
3696
|
+
declare module "lib/core/handler/InvokeInstanceMethodHandler" {
|
|
3697
|
+
const _exports: InvokeInstanceMethodHandler;
|
|
3698
|
+
export = _exports;
|
|
3699
|
+
class InvokeInstanceMethodHandler extends AbstractHandler {
|
|
3700
|
+
requiredParametersCount: number;
|
|
3701
|
+
process(command: any): any;
|
|
3702
|
+
}
|
|
3703
|
+
import AbstractHandler = require("lib/core/handler/AbstractHandler");
|
|
3704
|
+
}
|
|
3705
|
+
declare module "lib/core/handler/InvokeGlobalMethodHandler" {
|
|
3706
|
+
const _exports: InvokeGlobalMethodHandler;
|
|
3707
|
+
export = _exports;
|
|
3708
|
+
class InvokeGlobalMethodHandler extends AbstractHandler {
|
|
3709
|
+
requiredParametersCount: number;
|
|
3710
|
+
process(command: any): any;
|
|
3711
|
+
}
|
|
3712
|
+
import AbstractHandler = require("lib/core/handler/AbstractHandler");
|
|
3713
|
+
}
|
|
3714
|
+
declare module "lib/core/handler/InvokeStandaloneMethodHandler" {
|
|
3715
|
+
const _exports: InvokeStandaloneMethodHandler;
|
|
3716
|
+
export = _exports;
|
|
3717
|
+
class InvokeStandaloneMethodHandler extends AbstractHandler {
|
|
3718
|
+
requiredParametersCount: number;
|
|
3719
|
+
process(command: any): any;
|
|
3720
|
+
throwError(type: any, methodName: any): void;
|
|
3721
|
+
}
|
|
3722
|
+
import AbstractHandler = require("lib/core/handler/AbstractHandler");
|
|
3723
|
+
}
|
|
3724
|
+
declare module "lib/core/handler/Handler" {
|
|
3725
|
+
export class Handler {
|
|
3726
|
+
handleCommand(command: any): Command;
|
|
3727
|
+
parseCommand(response: any, runtimeName: any): Command;
|
|
3728
|
+
}
|
|
3729
|
+
export const handlers: {
|
|
3730
|
+
0: {
|
|
3731
|
+
process(command: any): any;
|
|
3732
|
+
handlers: any[];
|
|
3733
|
+
handleCommand(command: any): void;
|
|
3734
|
+
iterate(cmd: any): void;
|
|
3735
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3736
|
+
};
|
|
3737
|
+
1: {
|
|
3738
|
+
requiredParametersCount: number;
|
|
3739
|
+
process(command: any): number;
|
|
3740
|
+
getLoadedLibraries(): any[];
|
|
3741
|
+
handlers: any[];
|
|
3742
|
+
handleCommand(command: any): void;
|
|
3743
|
+
iterate(cmd: any): void;
|
|
3744
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3745
|
+
};
|
|
3746
|
+
2: {
|
|
3747
|
+
requiredParametersCount: number;
|
|
3748
|
+
process(command: any): any;
|
|
3749
|
+
handlers: any[];
|
|
3750
|
+
handleCommand(command: any): void;
|
|
3751
|
+
iterate(cmd: any): void;
|
|
3752
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3753
|
+
};
|
|
3754
|
+
6: {
|
|
3755
|
+
requiredParametersCount: number;
|
|
3756
|
+
namespaceCache: import("lib/core/namespaceCache/NamespaceCache");
|
|
3757
|
+
typeCache: import("lib/core/typeCache/TypeCache");
|
|
3758
|
+
process(command: any): any;
|
|
3759
|
+
getAvailableTypes(): any[];
|
|
3760
|
+
handlers: any[];
|
|
3761
|
+
handleCommand(command: any): void;
|
|
3762
|
+
iterate(cmd: any): void;
|
|
3763
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3764
|
+
};
|
|
3765
|
+
3: {
|
|
3766
|
+
requiredParametersCount: number;
|
|
3767
|
+
process(command: any): any;
|
|
3768
|
+
handlers: any[];
|
|
3769
|
+
handleCommand(command: any): void;
|
|
3770
|
+
iterate(cmd: any): void;
|
|
3771
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3772
|
+
};
|
|
3773
|
+
4: {
|
|
3774
|
+
requiredParametersCount: number;
|
|
3775
|
+
process(command: any): number;
|
|
3776
|
+
handlers: any[];
|
|
3777
|
+
handleCommand(command: any): void;
|
|
3778
|
+
iterate(cmd: any): void;
|
|
3779
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3780
|
+
};
|
|
3781
|
+
5: {
|
|
3782
|
+
requiredParametersCount: number;
|
|
3783
|
+
process(command: any): any;
|
|
3784
|
+
handlers: any[];
|
|
3785
|
+
handleCommand(command: any): void;
|
|
3786
|
+
iterate(cmd: any): void;
|
|
3787
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3788
|
+
};
|
|
3789
|
+
7: {
|
|
3790
|
+
process(command: any): any;
|
|
3791
|
+
handlers: any[];
|
|
3792
|
+
handleCommand(command: any): void;
|
|
3793
|
+
iterate(cmd: any): void;
|
|
3794
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3795
|
+
};
|
|
3796
|
+
12: {
|
|
3797
|
+
process(command: any): void;
|
|
3798
|
+
handlers: any[];
|
|
3799
|
+
handleCommand(command: any): void;
|
|
3800
|
+
iterate(cmd: any): void;
|
|
3801
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3802
|
+
};
|
|
3803
|
+
13: {
|
|
3804
|
+
requiredParametersCount: number;
|
|
3805
|
+
process(command: any): any;
|
|
3806
|
+
handlers: any[];
|
|
3807
|
+
handleCommand(command: any): void;
|
|
3808
|
+
iterate(cmd: any): void;
|
|
3809
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3810
|
+
};
|
|
3811
|
+
25: {
|
|
3812
|
+
requiredParametersCount: number;
|
|
3813
|
+
process(command: any): number;
|
|
3814
|
+
handlers: any[];
|
|
3815
|
+
handleCommand(command: any): void;
|
|
3816
|
+
iterate(cmd: any): void;
|
|
3817
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3818
|
+
};
|
|
3819
|
+
9: {
|
|
3820
|
+
requiredParametersCount: number;
|
|
3821
|
+
process(command: any): any;
|
|
3822
|
+
handlers: any[];
|
|
3823
|
+
handleCommand(command: any): void;
|
|
3824
|
+
iterate(cmd: any): void;
|
|
3825
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3826
|
+
};
|
|
3827
|
+
37: {
|
|
3828
|
+
requiredParametersCount: number;
|
|
3829
|
+
process(command: any): any;
|
|
3830
|
+
throwError(type: any, methodName: any): void;
|
|
3831
|
+
handlers: any[];
|
|
3832
|
+
handleCommand(command: any): void;
|
|
3833
|
+
iterate(cmd: any): void;
|
|
3834
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3835
|
+
};
|
|
3836
|
+
16: {
|
|
3837
|
+
requiredParametersCount: number;
|
|
3838
|
+
process(command: any): any;
|
|
3839
|
+
handlers: any[];
|
|
3840
|
+
handleCommand(command: any): void;
|
|
3841
|
+
iterate(cmd: any): void;
|
|
3842
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3843
|
+
};
|
|
3844
|
+
17: {
|
|
3845
|
+
process(command: any): any;
|
|
3846
|
+
handlers: any[];
|
|
3847
|
+
handleCommand(command: any): void;
|
|
3848
|
+
iterate(cmd: any): void;
|
|
3849
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3850
|
+
};
|
|
3851
|
+
19: {
|
|
3852
|
+
requiredParametersCount: number;
|
|
3853
|
+
process(command: any): any;
|
|
3854
|
+
handlers: any[];
|
|
3855
|
+
handleCommand(command: any): void;
|
|
3856
|
+
iterate(cmd: any): void;
|
|
3857
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3858
|
+
};
|
|
3859
|
+
20: {
|
|
3860
|
+
requiredParametersCount: number;
|
|
3861
|
+
process(command: any): number;
|
|
3862
|
+
handlers: any[];
|
|
3863
|
+
handleCommand(command: any): void;
|
|
3864
|
+
iterate(cmd: any): void;
|
|
3865
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3866
|
+
};
|
|
3867
|
+
21: {
|
|
3868
|
+
requiredParametersCount: number;
|
|
3869
|
+
process(command: any): number;
|
|
3870
|
+
handlers: any[];
|
|
3871
|
+
handleCommand(command: any): void;
|
|
3872
|
+
iterate(cmd: any): void;
|
|
3873
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3874
|
+
};
|
|
3875
|
+
22: {
|
|
3876
|
+
requiredParametersCount: number;
|
|
3877
|
+
process(command: any): number;
|
|
3878
|
+
handlers: any[];
|
|
3879
|
+
handleCommand(command: any): void;
|
|
3880
|
+
iterate(cmd: any): void;
|
|
3881
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3882
|
+
};
|
|
3883
|
+
23: {
|
|
3884
|
+
process(command: any): any;
|
|
3885
|
+
handlers: any[];
|
|
3886
|
+
handleCommand(command: any): void;
|
|
3887
|
+
iterate(cmd: any): void;
|
|
3888
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3889
|
+
};
|
|
3890
|
+
34: {
|
|
3891
|
+
requiredParametersCount: number;
|
|
3892
|
+
process(command: any): number;
|
|
3893
|
+
handlers: any[];
|
|
3894
|
+
handleCommand(command: any): void;
|
|
3895
|
+
iterate(cmd: any): void;
|
|
3896
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3897
|
+
};
|
|
3898
|
+
35: {
|
|
3899
|
+
requiredParametersCount: number;
|
|
3900
|
+
process(command: any): number;
|
|
3901
|
+
handlers: any[];
|
|
3902
|
+
handleCommand(command: any): void;
|
|
3903
|
+
iterate(cmd: any): void;
|
|
3904
|
+
process_stack_trace(error: any, class_name: any): any;
|
|
3905
|
+
};
|
|
3906
|
+
};
|
|
3907
|
+
import { Command } from "@javonet/core";
|
|
3908
|
+
}
|
|
3909
|
+
declare module "lib/core/handler/SetGlobalStaticFieldHandler" {
|
|
3910
|
+
const _exports: SetGlobalStaticFieldHandler;
|
|
3911
|
+
export = _exports;
|
|
3912
|
+
class SetGlobalStaticFieldHandler extends AbstractHandler {
|
|
3913
|
+
requiredParametersCount: number;
|
|
3914
|
+
}
|
|
3915
|
+
import AbstractHandler = require("lib/core/handler/AbstractHandler");
|
|
3916
|
+
}
|
|
3917
|
+
declare module "lib/utils/RuntimeLogger" {
|
|
3918
|
+
export = RuntimeLogger;
|
|
3919
|
+
class RuntimeLogger {
|
|
3920
|
+
static notLoggedYet: boolean;
|
|
3921
|
+
static getRuntimeInfo(): string;
|
|
3922
|
+
static printRuntimeInfo(): void;
|
|
3923
|
+
}
|
|
3924
|
+
}
|
|
3925
|
+
declare module "lib/core/receiver/Receiver" {
|
|
3926
|
+
export = Receiver;
|
|
3927
|
+
class Receiver {
|
|
3928
|
+
static connectionData: InMemoryConnectionData;
|
|
3929
|
+
/**
|
|
3930
|
+
* @param {number[]} messageByteArray
|
|
3931
|
+
*/
|
|
3932
|
+
static sendCommand(messageByteArray: number[]): Int8Array<ArrayBuffer>;
|
|
3933
|
+
static heartBeat(messageByteArray: any): Int8Array<ArrayBuffer>;
|
|
3934
|
+
Receiver(): void;
|
|
3935
|
+
}
|
|
3936
|
+
import { InMemoryConnectionData } from "@javonet/core";
|
|
3937
|
+
}
|
|
3938
|
+
declare module "lib/core/receiver/ReceiverNative" {
|
|
3939
|
+
export {};
|
|
3940
|
+
}
|
|
3941
|
+
declare module "lib/core/transmitter/TransmitterWrapper" {
|
|
3942
|
+
export = TransmitterWrapper;
|
|
3943
|
+
class TransmitterWrapper {
|
|
3944
|
+
static initialize(): any;
|
|
3945
|
+
static activate(licenseKey: any): any;
|
|
3946
|
+
static sendCommand(messageArray: any): any;
|
|
3947
|
+
static setConfigSource(configSource: any): any;
|
|
3948
|
+
}
|
|
3949
|
+
}
|
|
3950
|
+
declare module "lib/core/transmitter/Transmitter" {
|
|
3951
|
+
export = Transmitter;
|
|
3952
|
+
class Transmitter {
|
|
3953
|
+
static initialize(): any;
|
|
3954
|
+
static sendCommand(messageArray: any): any;
|
|
3955
|
+
static activate: (licenseKey: any) => any;
|
|
3956
|
+
static setConfigSource(configSource: any): any;
|
|
3957
|
+
}
|
|
3958
|
+
}
|
|
3959
|
+
declare module "lib/core/webSocketClient/WebSocketClient" {
|
|
3960
|
+
export = WebSocketClient;
|
|
3961
|
+
/**
|
|
3962
|
+
* WebSocketClient class that handles WebSocket connection, message sending, and automatic disconnection.
|
|
3963
|
+
*/
|
|
3964
|
+
class WebSocketClient {
|
|
3965
|
+
/**
|
|
3966
|
+
* @param {string} url
|
|
3967
|
+
* @param {object} options
|
|
3968
|
+
*/
|
|
3969
|
+
constructor(url: string, options: object);
|
|
3970
|
+
/**
|
|
3971
|
+
* @type {string}
|
|
3972
|
+
*/
|
|
3973
|
+
url: string;
|
|
3974
|
+
/**
|
|
3975
|
+
* @type {WebSocket | null}
|
|
3976
|
+
*/
|
|
3977
|
+
instance: WebSocket | null;
|
|
3978
|
+
/**
|
|
3979
|
+
* @type {boolean} isConnected indicates whether the WebSocket is connected.
|
|
3980
|
+
*/
|
|
3981
|
+
isConnected: boolean;
|
|
3982
|
+
/**
|
|
3983
|
+
* @type {boolean}
|
|
3984
|
+
*/
|
|
3985
|
+
isDisconnectedAfterMessage: boolean;
|
|
3986
|
+
/**
|
|
3987
|
+
* Sends messageArray through websocket connection
|
|
3988
|
+
* @async
|
|
3989
|
+
* @param {Buffer|ArrayBuffer|Buffer[]} messageArray
|
|
3990
|
+
* @returns {Promise<Buffer|ArrayBuffer|Buffer[]>}
|
|
3991
|
+
*/
|
|
3992
|
+
send(messageArray: Buffer | ArrayBuffer | Buffer[]): Promise<Buffer | ArrayBuffer | Buffer[]>;
|
|
3993
|
+
/**
|
|
3994
|
+
* Disconnects the WebSocket by terminating the connection.
|
|
3995
|
+
*/
|
|
3996
|
+
disconnect(): void;
|
|
3997
|
+
/**
|
|
3998
|
+
* Connects to the WebSocket server.
|
|
3999
|
+
* @private
|
|
4000
|
+
* @async
|
|
4001
|
+
* @returns {Promise<void>} - A promise that resolves when the connection is established.
|
|
4002
|
+
*/
|
|
4003
|
+
private _connect;
|
|
4004
|
+
/**
|
|
4005
|
+
* Sends the data to the WebSocket server and listens for a response.
|
|
4006
|
+
* @private
|
|
4007
|
+
* @async
|
|
4008
|
+
* @param {string|Buffer|ArrayBuffer|Buffer[]} data - The data to send.
|
|
4009
|
+
* @param {Function} resolve - The resolve function for the Promise.
|
|
4010
|
+
* @param {Function} reject - The reject function for the Promise.
|
|
4011
|
+
*/
|
|
4012
|
+
private _sendMessage;
|
|
4013
|
+
}
|
|
4014
|
+
}
|
|
4015
|
+
declare module "lib/core/transmitter/TransmitterWebsocket" {
|
|
4016
|
+
export = TransmitterWebsocket;
|
|
4017
|
+
/** @typedef {import('../../../../core/lib/declarations').WsConnectionData} WsConnectionData */
|
|
4018
|
+
class TransmitterWebsocket {
|
|
4019
|
+
/**
|
|
4020
|
+
* @returns {void}
|
|
4021
|
+
*/
|
|
4022
|
+
static initialize(): void;
|
|
4023
|
+
/**
|
|
4024
|
+
* @returns {void}
|
|
4025
|
+
*/
|
|
4026
|
+
static setConfigSource(): void;
|
|
4027
|
+
/**
|
|
4028
|
+
* @returns {void}
|
|
4029
|
+
*/
|
|
4030
|
+
static activate(): void;
|
|
4031
|
+
/**
|
|
4032
|
+
* @async
|
|
4033
|
+
* @param {number[]} messageByteArray
|
|
4034
|
+
* @param {WsConnectionData} connectionData
|
|
4035
|
+
* @returns {Promise<number[]>} responseByteArray
|
|
4036
|
+
*/
|
|
4037
|
+
static sendCommand(messageByteArray: number[], connectionData: WsConnectionData): Promise<number[]>;
|
|
4038
|
+
}
|
|
4039
|
+
namespace TransmitterWebsocket {
|
|
4040
|
+
export { WsConnectionData };
|
|
4041
|
+
}
|
|
4042
|
+
type WsConnectionData = any;
|
|
4043
|
+
}
|
|
4044
|
+
declare module "lib/sdk/tools/JsonFileResolver" {
|
|
4045
|
+
export = JsonFileResolver;
|
|
4046
|
+
class JsonFileResolver {
|
|
4047
|
+
constructor(path: any);
|
|
4048
|
+
path: any;
|
|
4049
|
+
jsonObject: any;
|
|
4050
|
+
getLicenseKey(): any;
|
|
4051
|
+
getRuntimes(): any;
|
|
4052
|
+
getRuntime(runtimeName: any, configName: any): any;
|
|
4053
|
+
getChannel(runtimeName: any, configName: any): any;
|
|
4054
|
+
getChannelType(runtimeName: any, configName: any): any;
|
|
4055
|
+
getChannelHost(runtimeName: any, configName: any): any;
|
|
4056
|
+
getChannelPort(runtimeName: any, configName: any): any;
|
|
4057
|
+
getModules(runtimeName: any, configName: any): any;
|
|
4058
|
+
}
|
|
4059
|
+
}
|
|
4060
|
+
declare module "lib/utils/connectionData/TcpConnectionData" {
|
|
4061
|
+
export = TcpConnectionData;
|
|
4062
|
+
/**
|
|
4063
|
+
* @extends IConnectionData
|
|
4064
|
+
*/
|
|
4065
|
+
class TcpConnectionData extends IConnectionData {
|
|
4066
|
+
constructor(hostname: any, port: any);
|
|
4067
|
+
_port: any;
|
|
4068
|
+
_hostname: any;
|
|
4069
|
+
_connectionType: 1;
|
|
4070
|
+
ipAddress: string | null;
|
|
4071
|
+
get connectionType(): 1;
|
|
4072
|
+
get hostname(): any;
|
|
4073
|
+
/**
|
|
4074
|
+
* @param {TcpConnectionData} other
|
|
4075
|
+
* @returns {boolean}
|
|
4076
|
+
*/
|
|
4077
|
+
equals(other: TcpConnectionData): boolean;
|
|
4078
|
+
/**
|
|
4079
|
+
* @param {string} hostname
|
|
4080
|
+
* @returns {string|null}
|
|
4081
|
+
*/
|
|
4082
|
+
resolveIpAddress(hostname: string): string | null;
|
|
4083
|
+
serializeConnectionData(): 1[];
|
|
4084
|
+
#private;
|
|
4085
|
+
}
|
|
4086
|
+
import { IConnectionData } from "@javonet/core";
|
|
4087
|
+
}
|
|
4088
|
+
declare module "lib/sdk/ConfigRuntimeFactory" {
|
|
4089
|
+
export = ConfigRuntimeFactory;
|
|
4090
|
+
/**
|
|
4091
|
+
* The ConfigRuntimeFactory class provides methods for creating runtime contexts.
|
|
4092
|
+
* Each method corresponds to a specific runtime (CLR, JVM, .NET Core, Perl, Ruby, Node.js, Python) and returns a RuntimeContext instance for that runtime.
|
|
4093
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
4094
|
+
*/
|
|
4095
|
+
class ConfigRuntimeFactory {
|
|
4096
|
+
constructor(path: any);
|
|
4097
|
+
path: any;
|
|
4098
|
+
/**
|
|
4099
|
+
* Creates RuntimeContext instance to interact with the .NET Framework runtime.
|
|
4100
|
+
* @param {string} [configName="default"] - The name of the configuration to use (optional).
|
|
4101
|
+
* @return {RuntimeContext} a RuntimeContext instance for the .NET Framework runtime
|
|
4102
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
4103
|
+
*/
|
|
4104
|
+
clr(configName?: string): RuntimeContext;
|
|
4105
|
+
/**
|
|
4106
|
+
* Creates RuntimeContext instance to interact with the JVM runtime.
|
|
4107
|
+
* @param {string} [configName="default"] - The name of the configuration to use (optional).
|
|
4108
|
+
* @return {RuntimeContext} a RuntimeContext instance for the JVM runtime
|
|
4109
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
4110
|
+
*/
|
|
4111
|
+
jvm(configName?: string): RuntimeContext;
|
|
4112
|
+
/**
|
|
4113
|
+
* Creates RuntimeContext instance to interact with the .NET runtime.
|
|
4114
|
+
* @param {string} [configName="default"] - The name of the configuration to use (optional).
|
|
4115
|
+
* @return {RuntimeContext} a RuntimeContext instance for the .NET runtime
|
|
4116
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
4117
|
+
*/
|
|
4118
|
+
netcore(configName?: string): RuntimeContext;
|
|
4119
|
+
/**
|
|
4120
|
+
* Creates RuntimeContext instance to interact with the Perl runtime.
|
|
4121
|
+
* @param {string} [configName="default"] - The name of the configuration to use (optional).
|
|
4122
|
+
* @return {RuntimeContext} a RuntimeContext instance for the Perl runtime
|
|
4123
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
4124
|
+
*/
|
|
4125
|
+
perl(configName?: string): RuntimeContext;
|
|
4126
|
+
/**
|
|
4127
|
+
* Creates RuntimeContext instance to interact with the Python runtime.
|
|
4128
|
+
* @param {string} [configName="default"] - The name of the configuration to use (optional).
|
|
4129
|
+
* @return {RuntimeContext} a RuntimeContext instance for the Python runtime
|
|
4130
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
4131
|
+
*/
|
|
4132
|
+
python(configName?: string): RuntimeContext;
|
|
4133
|
+
/**
|
|
4134
|
+
* Creates RuntimeContext instance to interact with the Ruby runtime.
|
|
4135
|
+
* @param {string} [configName="default"] - The name of the configuration to use (optional).
|
|
4136
|
+
* @return {RuntimeContext} a RuntimeContext instance for the Ruby runtime
|
|
4137
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
4138
|
+
*/
|
|
4139
|
+
ruby(configName?: string): RuntimeContext;
|
|
4140
|
+
/**
|
|
4141
|
+
* Creates RuntimeContext instance to interact with Node.js runtime.
|
|
4142
|
+
* @param {string} [configName="default"] - The name of the configuration to use (optional).
|
|
4143
|
+
* @return {RuntimeContext} a RuntimeContext instance for the Node.js runtime
|
|
4144
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
4145
|
+
*/
|
|
4146
|
+
nodejs(configName?: string): RuntimeContext;
|
|
4147
|
+
#private;
|
|
4148
|
+
}
|
|
4149
|
+
import { RuntimeContext } from "@javonet/core";
|
|
4150
|
+
}
|
|
4151
|
+
declare module "lib/sdk/Javonet" {
|
|
4152
|
+
/**
|
|
4153
|
+
* The Javonet class is a singleton class that serves as the entry point for interacting with Javonet.
|
|
4154
|
+
* It provides methods to activate and initialize the Javonet SDK.
|
|
4155
|
+
* It supports both in-memory and TCP connections.
|
|
4156
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/javonet-static-class)
|
|
4157
|
+
*/
|
|
4158
|
+
export class Javonet {
|
|
4159
|
+
/**
|
|
4160
|
+
* Initializes Javonet using an in-memory channel on the same machine.
|
|
4161
|
+
* @returns {RuntimeFactory} A RuntimeFactory instance configured for an in-memory connection.
|
|
4162
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/in-memory-channel)
|
|
4163
|
+
*/
|
|
4164
|
+
static inMemory(): RuntimeFactory;
|
|
4165
|
+
/**
|
|
4166
|
+
* Initializes Javonet with a TCP connection to a remote machine.
|
|
4167
|
+
* @param {TcpConnectionData} tcpConnectionData - The tcp connection data of the remote machine.
|
|
4168
|
+
* @returns {RuntimeFactory} A RuntimeFactory instance configured for a TCP connection.
|
|
4169
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/tcp-channel)
|
|
4170
|
+
*/
|
|
4171
|
+
static tcp(tcpConnectionData: TcpConnectionData): RuntimeFactory;
|
|
4172
|
+
/**
|
|
4173
|
+
* Initializes Javonet with a WebSocket connection to a remote machine.
|
|
4174
|
+
* @param {WsConnectionData} wsConnectionData - The WebSocket connection data of the remote machine.
|
|
4175
|
+
* @returns {RuntimeFactory} A RuntimeFactory instance configured for a WebSocket connection.
|
|
4176
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/websocket-channel)
|
|
4177
|
+
*/
|
|
4178
|
+
static ws(wsConnectionData: WsConnectionData): RuntimeFactory;
|
|
4179
|
+
/**
|
|
4180
|
+
* Initializes Javonet with a custom configuration file taken from external source.
|
|
4181
|
+
* Currentyl supported: Configuration file in JSON format
|
|
4182
|
+
* @param {string} configPath - Path to a configuration file.
|
|
4183
|
+
* @returns {ConfigRuntimeFactory} A ConfigRuntimeFactory instance with configuration data.
|
|
4184
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/configure-channel)
|
|
4185
|
+
*/
|
|
4186
|
+
static withConfig(configPath: string): ConfigRuntimeFactory;
|
|
4187
|
+
/**
|
|
4188
|
+
* Activates Javonet with the provided license key.
|
|
4189
|
+
* @param {string} licenseKey - The license key to activate Javonet.
|
|
4190
|
+
* @returns {number} The activation status code.
|
|
4191
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/getting-started/activating-javonet)
|
|
4192
|
+
*/
|
|
4193
|
+
static activate(licenseKey: string): number;
|
|
4194
|
+
static getRuntimeInfo(): string;
|
|
4195
|
+
/**
|
|
4196
|
+
* Sets the configuration source for the Javonet SDK.
|
|
4197
|
+
*
|
|
4198
|
+
* @param {string} configSource - The configuration source.
|
|
4199
|
+
*/
|
|
4200
|
+
static setConfigSource(configSource: string): void;
|
|
4201
|
+
}
|
|
4202
|
+
import TcpConnectionData = require("lib/utils/connectionData/TcpConnectionData");
|
|
4203
|
+
import { WsConnectionData } from "@javonet/core";
|
|
4204
|
+
import { RuntimeFactory } from "@javonet/core";
|
|
4205
|
+
import ConfigRuntimeFactory = require("lib/sdk/ConfigRuntimeFactory");
|
|
4206
|
+
export { TcpConnectionData, WsConnectionData };
|
|
4207
|
+
}
|
|
4208
|
+
declare module "lib/sdk/RuntimeContext" {
|
|
4209
|
+
export = RuntimeContext;
|
|
4210
|
+
/**
|
|
4211
|
+
* Represents a single context which allows interaction with a selected technology.
|
|
4212
|
+
* Refers to a single instance of the called runtime within a particular target OS process.
|
|
4213
|
+
* 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.
|
|
4214
|
+
* Multiple Runtime Contexts can be initialized within one process.
|
|
4215
|
+
* Calling the same technology on inMemory communication channel will return the existing instance of runtime context.
|
|
4216
|
+
* Calling the same technology on TCP channel but on different nodes will result in unique Runtime Contexts.
|
|
4217
|
+
* 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.
|
|
4218
|
+
* @see [Javonet Guides]{@link https://www.javonet.com/guides/v2/javascript/foundations/runtime-context}
|
|
4219
|
+
* @class
|
|
4220
|
+
*/
|
|
4221
|
+
class RuntimeContext {
|
|
4222
|
+
static memoryRuntimeContexts: Map<any, any>;
|
|
4223
|
+
static networkRuntimeContexts: Map<any, any>;
|
|
4224
|
+
static webSocketRuntimeContexts: Map<any, any>;
|
|
4225
|
+
static getInstance(runtimeName: any, connectionData: any): any;
|
|
4226
|
+
constructor(runtimeName: any, connectionData: any);
|
|
4227
|
+
runtimeName: any;
|
|
4228
|
+
connectionData: any;
|
|
4229
|
+
/**
|
|
4230
|
+
* Executes the current command. The initial state of RuntimeContext is non-materialized,
|
|
4231
|
+
* wrapping either a single command or a chain of recursively nested commands.
|
|
4232
|
+
* Commands become nested through each invocation of methods on RuntimeContext.
|
|
4233
|
+
* Each invocation triggers the creation of a new RuntimeContext instance wrapping the current command with a new parent command.
|
|
4234
|
+
* 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.
|
|
4235
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/execute-method)
|
|
4236
|
+
* @method
|
|
4237
|
+
*/
|
|
4238
|
+
execute(): void;
|
|
4239
|
+
/**
|
|
4240
|
+
* Adds a reference to a library. Javonet allows you to reference and use modules or packages written in various languages.
|
|
4241
|
+
* This method allows you to use any library from all supported technologies. The necessary libraries need to be referenced.
|
|
4242
|
+
* 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.
|
|
4243
|
+
* 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.
|
|
4244
|
+
* @param {string} libraryPath - The relative or full path to the library.
|
|
4245
|
+
* @returns {RuntimeContext} RuntimeContext instance.
|
|
4246
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/getting-started/adding-references-to-libraries)
|
|
4247
|
+
* @method
|
|
4248
|
+
*/
|
|
4249
|
+
loadLibrary(libraryPath: string): RuntimeContext;
|
|
4250
|
+
/**
|
|
4251
|
+
* 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.
|
|
4252
|
+
* @param {string} typeName - The full name of the type.
|
|
4253
|
+
* @param {...any} args - The arguments to be passed, if needed
|
|
4254
|
+
* @returns {InvocationContext} InvocationContext instance, that wraps the command to get the type.
|
|
4255
|
+
* @method
|
|
4256
|
+
*/
|
|
4257
|
+
getType(typeName: string, ...args: any[]): InvocationContext;
|
|
4258
|
+
/**
|
|
4259
|
+
* Casts the provided value to a specific type. This method is used when invoking methods that require specific types of arguments.
|
|
4260
|
+
* 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.
|
|
4261
|
+
* After casting the value, it can be used as an argument when invoking methods.
|
|
4262
|
+
* @param {...any} args - The target type and the value to be cast.
|
|
4263
|
+
* @returns {InvocationContext} InvocationContext instance that wraps the command to cast the value.
|
|
4264
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/casting/casting)
|
|
4265
|
+
* @method
|
|
4266
|
+
*/
|
|
4267
|
+
cast(...args: any[]): InvocationContext;
|
|
4268
|
+
/**
|
|
4269
|
+
* Retrieves a specific item from an enum type. This method is used when working with enums from the called runtime.
|
|
4270
|
+
* 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.
|
|
4271
|
+
* After retrieving the item, it can be used as an argument when invoking methods or for other operations.
|
|
4272
|
+
* @param {...any} args - The enum type and the name of the item.
|
|
4273
|
+
* @returns {InvocationContext} InvocationContext instance that wraps the command to get the enum item.
|
|
4274
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/enums/using-enum-type)
|
|
4275
|
+
* @method
|
|
4276
|
+
*/
|
|
4277
|
+
getEnumItem(...args: any[]): InvocationContext;
|
|
4278
|
+
/**
|
|
4279
|
+
* 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.
|
|
4280
|
+
* 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.
|
|
4281
|
+
* After creating the reference, it can be used as an argument when invoking methods.
|
|
4282
|
+
* @param {...any} args - The value and optionally the type of the reference.
|
|
4283
|
+
* @returns {InvocationContext} InvocationContext instance that wraps the command to create a reference as ref.
|
|
4284
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/methods-arguments/passing-arguments-by-reference-with-ref-keyword)
|
|
4285
|
+
* @method
|
|
4286
|
+
*/
|
|
4287
|
+
asRef(...args: any[]): InvocationContext;
|
|
4288
|
+
/**
|
|
4289
|
+
* 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.
|
|
4290
|
+
* 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.
|
|
4291
|
+
* After creating the reference, it can be used as an argument when invoking methods.
|
|
4292
|
+
* @param {...any} args - The value and optionally the type of the reference.
|
|
4293
|
+
* @returns {InvocationContext} InvocationContext instance that wraps the command to create a reference as out.
|
|
4294
|
+
* @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)
|
|
4295
|
+
* @method
|
|
4296
|
+
*/
|
|
4297
|
+
asOut(...args: any[]): InvocationContext;
|
|
4298
|
+
healthCheck(): void;
|
|
4299
|
+
#private;
|
|
4300
|
+
}
|
|
4301
|
+
}
|
|
4302
|
+
declare module "lib/sdk/RuntimeFactory" {
|
|
4303
|
+
export = RuntimeFactory;
|
|
4304
|
+
/**
|
|
4305
|
+
* The RuntimeFactory class provides methods for creating runtime contexts.
|
|
4306
|
+
* Each method corresponds to a specific runtime (CLR, JVM, .NET Core, Perl, Ruby, Node.js, Python) and returns a RuntimeContext instance for that runtime.
|
|
4307
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
4308
|
+
*/
|
|
4309
|
+
class RuntimeFactory {
|
|
4310
|
+
constructor(connectionData: any);
|
|
4311
|
+
connectionData: any;
|
|
4312
|
+
/**
|
|
4313
|
+
* Creates RuntimeContext instance to interact with the .NET Framework runtime.
|
|
4314
|
+
* @return {RuntimeContext} a RuntimeContext instance for the .NET Framework runtime
|
|
4315
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
4316
|
+
*/
|
|
4317
|
+
clr(): RuntimeContext;
|
|
4318
|
+
/**
|
|
4319
|
+
* Creates RuntimeContext instance to interact with the JVM runtime.
|
|
4320
|
+
* @return {RuntimeContext} a RuntimeContext instance for the JVM runtime
|
|
4321
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
4322
|
+
*/
|
|
4323
|
+
jvm(): RuntimeContext;
|
|
4324
|
+
/**
|
|
4325
|
+
* Creates RuntimeContext instance to interact with the .NET runtime.
|
|
4326
|
+
* @return {RuntimeContext} a RuntimeContext instance for the .NET runtime
|
|
4327
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
4328
|
+
*/
|
|
4329
|
+
netcore(): RuntimeContext;
|
|
4330
|
+
/**
|
|
4331
|
+
* Creates RuntimeContext instance to interact with the Perl runtime.
|
|
4332
|
+
* @return {RuntimeContext} a RuntimeContext instance for the Perl runtime
|
|
4333
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
4334
|
+
*/
|
|
4335
|
+
perl(): RuntimeContext;
|
|
4336
|
+
/**
|
|
4337
|
+
* Creates RuntimeContext instance to interact with the Python runtime.
|
|
4338
|
+
* @return {RuntimeContext} a RuntimeContext instance for the Python runtime
|
|
4339
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
4340
|
+
*/
|
|
4341
|
+
python(): RuntimeContext;
|
|
4342
|
+
/**
|
|
4343
|
+
* Creates RuntimeContext instance to interact with the Ruby runtime.
|
|
4344
|
+
* @return {RuntimeContext} a RuntimeContext instance for the Ruby runtime
|
|
4345
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
4346
|
+
*/
|
|
4347
|
+
ruby(): RuntimeContext;
|
|
4348
|
+
/**
|
|
4349
|
+
* Creates RuntimeContext instance to interact with Node.js runtime.
|
|
4350
|
+
* @return {RuntimeContext} a RuntimeContext instance for the Node.js runtime
|
|
4351
|
+
* @see [Javonet Guides](https://www.javonet.com/guides/v2/javascript/foundations/runtime-context)
|
|
4352
|
+
*/
|
|
4353
|
+
nodejs(): RuntimeContext;
|
|
4354
|
+
}
|
|
4355
|
+
import RuntimeContext = require("lib/sdk/RuntimeContext");
|
|
4356
|
+
}
|
|
4357
|
+
declare module "lib/sdk/tools/SdkExceptionHelper" {
|
|
4358
|
+
export = sendExceptionToAppInsights;
|
|
4359
|
+
/**
|
|
4360
|
+
*
|
|
4361
|
+
* @param {any} e
|
|
4362
|
+
* @param {string} licenseKey
|
|
4363
|
+
*/
|
|
4364
|
+
function sendExceptionToAppInsights(e: any, licenseKey: string): Promise<any>;
|
|
4365
|
+
}
|
|
4366
|
+
declare module "scripts/copy-files" {
|
|
4367
|
+
export {};
|
|
4368
|
+
}
|