Sha256: c66e3ef162ed330be0a2300f42706b02f6b26e8c30f871c1f95f78c6420b1af5

Contents?: true

Size: 938 Bytes

Versions: 3

Compression:

Stored size: 938 Bytes

Contents

const AbstractGeneratorHandler = require('../../AbstractGeneratorHandler')
const { RuntimeName } = require('../../../../../..')
const OS = require('os')
const StringUtils = require('../../../utils/StringUtils')

class SharedGetTypeBodyHandler extends AbstractGeneratorHandler {
    generate_code(existing_string_builder, common_command, used_object, handlers) {
        existing_string_builder.append('return 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('execute()')
        existing_string_builder.append(OS.EOL)
    }
}

module.exports = SharedGetTypeBodyHandler

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
javonet-ruby-sdk-2.5.11 lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js
javonet-ruby-sdk-2.5.10 lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js
javonet-ruby-sdk-2.5.9 lib/javonet-ruby-sdk/Binaries/Nodejs/lib/core/generator/handler/shared/body/SharedGetTypeBodyHandler.js