MCPcopy Index your code
hub / github.com/dropbox/dropbox-sdk-java / is_enum

Method is_enum

core/generator/java/java.stoneg.py:1922–1927  ·  view source on GitHub ↗
(data_type)

Source from the content-addressed store, hash-verified

1920
1921 @staticmethod
1922 def is_enum(data_type):
1923 assert isinstance(data_type, DataType), repr(data_type)
1924 if is_union_type(data_type):
1925 return all(is_void_type(f.data_type) for f in data_type.all_fields)
1926 else:
1927 return False
1928
1929 @staticmethod
1930 def has_value(field):

Callers 9

field_enum_nameMethod · 0.95
field_static_instanceMethod · 0.95
class_blockMethod · 0.80
generate_data_typeMethod · 0.80
generate_hash_codeMethod · 0.80
generate_union_equalsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected