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