MCPcopy Create free account
hub / github.com/apache/fory / get_struct_annotation

Method get_struct_annotation

compiler/fory_compiler/generators/java.py:474–478  ·  view source on GitHub ↗

Return the ForyStruct annotation for a generated message.

(self, message: Message)

Source from the content-addressed store, hash-verified

472 return GeneratedFile(path=path, content="\n".join(lines))
473
474 def get_struct_annotation(self, message: Message) -> str:
475 """Return the ForyStruct annotation for a generated message."""
476 if self.get_effective_evolving(message):
477 return "@ForyStruct"
478 return "@ForyStruct(evolution = Evolution.DISABLED)"
479
480 # Generates a Java class file from a message schema definition.
481 def generate_message_file(self, message: Message) -> GeneratedFile:

Callers 2

generate_message_fileMethod · 0.95

Calls 1

Tested by

no test coverage detected