devana.preprocessing.components.extractors

devana.preprocessing.components.extractors.attributeextractor

class AttributeExtractor[source]

Bases: IGenerator

Extract text data from C++ attributes.

generate(data)[source]

Generate data like generate code.

Return type

List[Attribute]

classmethod get_produced_type()[source]

Specifies a result type, typically as an interface.

Return type

Type

classmethod get_required_type()[source]

Specifies the required input type. In common cases should be interfaced.

Return type

Type

devana.preprocessing.components.extractors.commentextractor

class CommentExtractor[source]

Bases: IGenerator

Extract text data from comments.

generate(data)[source]

Generate data like generate code.

Return type

List[Comment]

classmethod get_produced_type()[source]

Specifies a result type, typically as an interface.

Return type

Type

classmethod get_required_type()[source]

Specifies the required input type. In common cases should be interfaced.

Return type

Type

A set of ready-made generators that accept a set of data (usually just C++ files to be parsed) and extract from them the content that is of interest to the user, which constitutes the basis for processing, for example, attributes or comments.