Sha256: 4fca10b3460922d751f35d4ddc40ab4ce07d5f27ea89e4d62941726a4769b147

Contents?: true

Size: 1.3 KB

Versions: 26

Compression:

Stored size: 1.3 KB

Contents

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


class SharedGetStaticFieldBodyHandler(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):
        handlers.SHARED_HANDLER[SharedHandlerType.TYPE].generate_code(existing_string_builder, common_command,
                                                                      used_object.get_payload()[1], handlers)
        existing_string_builder.append("(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()[3])
        existing_string_builder.append("\").")
        existing_string_builder.append("get_static_field(\"")
        existing_string_builder.append(used_object.get_payload()[0])
        existing_string_builder.append("\").")
        existing_string_builder.append("execute().get_value())")
        existing_string_builder.append("\n")

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
javonet-ruby-sdk-2.4.10 lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.py
javonet-ruby-sdk-2.4.9 lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.py
javonet-ruby-sdk-2.4.8 lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.py
javonet-ruby-sdk-2.4.7 lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.py
javonet-ruby-sdk-2.4.6 lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.py
javonet-ruby-sdk-2.4.5 lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.py
javonet-ruby-sdk-2.4.4 lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.py
javonet-ruby-sdk-2.4.3 lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.py
javonet-ruby-sdk-2.4.2 lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.py
javonet-ruby-sdk-2.3.0 lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.py
javonet-ruby-sdk-2.2.0 lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.py
javonet-ruby-sdk-2.1.14 lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.py
javonet-ruby-sdk-2.1.13 lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.py
javonet-ruby-sdk-2.1.12 lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.py
javonet-ruby-sdk-2.1.11 lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.py
javonet-ruby-sdk-2.1.10 lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.py
javonet-ruby-sdk-2.1.9 lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.py
javonet-ruby-sdk-2.1.8 lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.py
javonet-ruby-sdk-2.1.7 lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.py
javonet-ruby-sdk-2.1.6 lib/javonet-ruby-sdk/Binaries/Python/Windows/X64/javonet/core/generator/handler/shared/body/SharedGetStaticFieldBodyHandler.py