Sha256: 31bfa5366057d4ca4796f6a87239e1a9a1f46dbd390aff45e71a2223fcfbf65a
Contents?: true
Size: 1.6 KB
Versions: 61
Compression:
Stored size: 1.6 KB
Contents
const AbstractGeneratorHandler = require("../../AbstractGeneratorHandler"); const StringUtils = require("../../../utils/StringUtils"); const CommonGenerator = require("../../../internal/CommonGenerator"); const SharedHandlerType = require("../../../internal/SharedHandlerType"); const RuntimeName = require("../../../../../utils/RuntimeName"); const OS = require("os"); class SharedInvokeStaticMethodBodyHandler extends AbstractGeneratorHandler { generate_code(existing_string_builder, common_command, used_object, handlers) { handlers.SHARED_HANDLER[SharedHandlerType.RETURN_TYPE].generate_code(existing_string_builder, common_command, used_object.payload[1], handlers) existing_string_builder.append("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[3]) existing_string_builder.append("\").") existing_string_builder.append("invokeStaticMethod(\"") existing_string_builder.append(used_object.payload[0]) existing_string_builder.append("\", ") CommonGenerator.process_method_arguments_names(existing_string_builder, common_command, used_object.payload[5], handlers) existing_string_builder.append(").") existing_string_builder.append("execute().resultValue") existing_string_builder.append(OS.EOL) } } module.exports = SharedInvokeStaticMethodBodyHandler
Version data entries
61 entries across 35 versions & 1 rubygems