Sha256: f06b10d654b28f01165bde854a5148e09cc02db807b360e9f84d9a768b5b24d4

Contents?: true

Size: 1.19 KB

Versions: 61

Compression:

Stored size: 1.19 KB

Contents

const AbstractGeneratorHandler = require("../../AbstractGeneratorHandler");
const CommonGenerator = require("../../../internal/CommonGenerator");
const StringUtils = require("../../../utils/StringUtils");
const RuntimeName = require("../../../../../utils/RuntimeName");
const OS = require("os");

class SharedCreateInstanceBodyHandler extends AbstractGeneratorHandler {

    generate_code(existing_string_builder, common_command, used_object, handlers) {
        existing_string_builder.append("this.instance = Javonet.inMemory().")
        existing_string_builder.append(StringUtils.capitalizeFirstLetter(Object.keys(RuntimeName)[common_command.runtimeName]))
        existing_string_builder.append("().")
        existing_string_builder.append("getType(\"")
        existing_string_builder.append(used_object.payload[0])
        existing_string_builder.append("\").")
        existing_string_builder.append("createInstance(")
        CommonGenerator.process_method_arguments_names(existing_string_builder, common_command,
            used_object.payload[3], handlers)
        existing_string_builder.append(")")
        existing_string_builder.append(OS.EOL)
    }
}

module.exports = SharedCreateInstanceBodyHandler

Version data entries

61 entries across 35 versions & 1 rubygems

Version Path
javonet-ruby-sdk-2.1.10 lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js
javonet-ruby-sdk-2.1.9 lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js
javonet-ruby-sdk-2.1.9 lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js
javonet-ruby-sdk-2.1.8 lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js
javonet-ruby-sdk-2.1.8 lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js
javonet-ruby-sdk-2.1.7 lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js
javonet-ruby-sdk-2.1.7 lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js
javonet-ruby-sdk-2.1.6 lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js
javonet-ruby-sdk-2.1.6 lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js
javonet-ruby-sdk-2.1.5 lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js
javonet-ruby-sdk-2.1.5 lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js
javonet-ruby-sdk-2.1.4 lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js
javonet-ruby-sdk-2.1.4 lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js
javonet-ruby-sdk-2.1.3 lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js
javonet-ruby-sdk-2.1.3 lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js
javonet-ruby-sdk-2.1.2 lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js
javonet-ruby-sdk-2.1.2 lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js
javonet-ruby-sdk-2.1.1 lib/javonet-ruby-sdk/Binaries/Nodejs/MacOs/X64/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js
javonet-ruby-sdk-2.1.1 lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js
javonet-ruby-sdk-2.1.0 lib/javonet-ruby-sdk/Binaries/Nodejs/Linux/X64/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.js