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

Method get_java_package

compiler/fory_compiler/generators/java.py:107–117  ·  view source on GitHub ↗

Get the Java package name. Priority: 1. java_package option from FDL file 2. FDL package declaration

(self)

Source from the content-addressed store, hash-verified

105 self._validate_import_packages()
106
107 def get_java_package(self) -> Optional[str]:
108 """Get the Java package name.
109
110 Priority:
111 1. java_package option from FDL file
112 2. FDL package declaration
113 """
114 java_package = self.schema.get_option("java_package")
115 if java_package:
116 return java_package
117 return self.schema.package
118
119 def get_module_class_name(self) -> str:
120 """Get the generated module class name."""

Calls 1

get_optionMethod · 0.80

Tested by

no test coverage detected