Sha256: 57d18ff0a84b2dcdd3366c933116fb1c9e6ce7fa77a083dd2f84fa3deadec26c

Contents?: true

Size: 1.17 KB

Versions: 64

Compression:

Stored size: 1.17 KB

Contents

from javonet.core.generator.handler.AbstractGeneretatorHandler import AbstractGeneratorHandler
from javonet.core.generator.internal.CommonGenerator import CommonGenerator


class SharedCreateInstanceBodyHandler(AbstractGeneratorHandler):
    def generate_command(self, analyzed_object, parent_command, handlers):
        return analyzed_object

    def generate_code(self, existing_string_builder, common_command, used_object, handlers):
        existing_string_builder.append("\n")
        existing_string_builder.append("        self.instance = Javonet.inMemory().")
        existing_string_builder.append(str(common_command.runtime_name.name))
        existing_string_builder.append("().")
        existing_string_builder.append("get_type(\"")
        existing_string_builder.append(used_object.get_payload()[0])
        existing_string_builder.append("\").")
        existing_string_builder.append("create_instance(")
        CommonGenerator.process_method_arguments_names(existing_string_builder, common_command,
                                                       used_object.get_payload()[3], handlers)
        existing_string_builder.append(")")
        existing_string_builder.append("\n")

Version data entries

64 entries across 38 versions & 1 rubygems

Version Path
javonet-ruby-sdk-2.5.10 lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.py
javonet-ruby-sdk-2.5.9 lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.py
javonet-ruby-sdk-2.5.8 lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.py
javonet-ruby-sdk-2.5.7 lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.py
javonet-ruby-sdk-2.5.6 lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.py
javonet-ruby-sdk-2.5.5 lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.py
javonet-ruby-sdk-2.5.4 lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.py
javonet-ruby-sdk-2.5.3 lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.py
javonet-ruby-sdk-2.5.2 lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.py
javonet-ruby-sdk-2.5.1 lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.py
javonet-ruby-sdk-2.5.0 lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.py
javonet-ruby-sdk-2.4.11 lib/javonet-ruby-sdk/Binaries/Python/javonet/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.py
javonet-ruby-sdk-2.4.10 lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.py
javonet-ruby-sdk-2.4.10 lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.py
javonet-ruby-sdk-2.4.9 lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.py
javonet-ruby-sdk-2.4.9 lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.py
javonet-ruby-sdk-2.4.8 lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.py
javonet-ruby-sdk-2.4.8 lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.py
javonet-ruby-sdk-2.4.7 lib/javonet-ruby-sdk/Binaries/Python/Linux/X64/javonet/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.py
javonet-ruby-sdk-2.4.7 lib/javonet-ruby-sdk/Binaries/Python/MacOs/X64/javonet/core/generator/handler/shared/body/SharedCreateInstanceBodyHandler.py