Sha256: 73285135499c0f77fdc0e788202dd24ad4eb54178a4f63e879053847b620d9dd
Contents?: true
Size: 1.33 KB
Versions: 6
Compression:
Stored size: 1.33 KB
Contents
const AbstractGeneratorHandler = require("../../AbstractGeneratorHandler"); const SharedHandlerType = require("../../../internal/SharedHandlerType"); const StringUtils = require("../../../utils/StringUtils"); const RuntimeJs = require("../../../../../utils/Runtime"); const OS = require("os"); class SharedGetStaticFieldBodyHandler 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(RuntimeJs)[common_command.runtime])) 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("getStaticField(\"") existing_string_builder.append(used_object.payload[0]) existing_string_builder.append("\").") existing_string_builder.append("execute().resultValue") existing_string_builder.append(OS.EOL) } } module.exports = SharedGetStaticFieldBodyHandler
Version data entries
6 entries across 3 versions & 1 rubygems