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

Method java_array

compiler/fory_compiler/generators/java.py:1534–1537  ·  view source on GitHub ↗
(self, field: Optional[Field])

Source from the content-addressed store, hash-verified

1532 return isinstance(self.schema.get_type(field_type.name), (Message, Union))
1533
1534 def java_array(self, field: Optional[Field]) -> bool:
1535 if field is None:
1536 return False
1537 return bool(field.options.get("java_array"))
1538
1539 def collect_array_type_use_imports(
1540 self, field_type: ArrayType, imports: Set[str], type_use: bool

Callers 8

generate_union_classMethod · 0.95
generate_typeMethod · 0.95
collect_type_importsMethod · 0.95
collect_array_importsMethod · 0.95
get_array_annotationMethod · 0.95

Calls 2

boolFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected