Searched refs:enum_definition (Results 1 – 2 of 2) sorted by relevance
242 for enum_definition in enum_definitions:243 package_path = enum_definition.enum_package.replace('.', os.path.sep)244 file_name = enum_definition.class_name + '.java'246 output = GenerateOutput(source_path, enum_definition)255 def GenerateOutput(source_path, enum_definition): argument275 for enum_name, enum_value in enum_definition.entries.iteritems():284 'CLASS_NAME': enum_definition.class_name,286 'PACKAGE': enum_definition.enum_package,
318 def describe_enum(enum_definition): argument328 enum_descriptor.name = enum_definition.definition_name().split('.')[-1]331 for number in enum_definition.numbers():332 value = enum_definition.lookup_by_number(number)