devana.code_generation.printers.default

devana.code_generation.printers.default.attributeprinter

class AttributeDeclarationPrinter(printer_dispatcher=None)[source]

Bases: ICodePrinter, DispatcherInjectable

Printer for attribute.

print(source, config=None, context=None)[source]
class AttributePrinter(printer_dispatcher=None)[source]

Bases: ICodePrinter, DispatcherInjectable

Printer for code attribute.

print(source, config=None, context=None)[source]

devana.code_generation.printers.default.basictypeprinter

class BasicTypePrinter(printer_dispatcher=None)[source]

Bases: ICodePrinter, DispatcherInjectable

Core type printer.

print(source, _1=None, _2=None)[source]
Return type

str

devana.code_generation.printers.default.classprinter

class AccessSpecifierPrinter(printer_dispatcher=None)[source]

Bases: ICodePrinter, DispatcherInjectable

Printer for class members access specifier.

print(source, config=None, _=None)[source]
Return type

str

class ClassPrinter(printer_dispatcher=None)[source]

Bases: ICodePrinter, DispatcherInjectable

Printer for class/struct declaration.

print(source, config=None, context=None)[source]
class ConstructorPrinter(printer_dispatcher=None)[source]

Bases: FunctionPrinter

Printer for class constructor.

print(source, config=None, _=None)[source]
Return type

str

class DestructorPrinter(printer_dispatcher=None)[source]

Bases: FunctionPrinter

Printer for class destructor.

print(source, config=None, _=None)[source]
Return type

str

class FieldPrinter(printer_dispatcher=None)[source]

Bases: VariablePrinter

Printer for class field.

print(source, config=None, context=None)[source]
class MethodPrinter(printer_dispatcher=None)[source]

Bases: FunctionPrinter

Printer for class method.

print(source, config=None, _=None)[source]
Return type

str

class SectionPrinter(printer_dispatcher=None)[source]

Bases: ICodePrinter, DispatcherInjectable

Printer for class section.

print(source, config=None, context=None)[source]

devana.code_generation.printers.default.commentprinter

class CommentPrinter(printer_dispatcher=None)[source]

Bases: ICodePrinter, DispatcherInjectable

Printer for comments.

print(source, config=None, context=None)[source]

devana.code_generation.printers.default.defaultprinter

create_default_printer()[source]
Return type

CodePrinter

devana.code_generation.printers.default.enumprinter

class EnumAsTypePrinter(printer_dispatcher=None)[source]

Bases: ICodePrinter, DispatcherInjectable

Printer for enum used as type inside expression.

print(source, _1=None, _2=None)[source]
Return type

str

class EnumPrinter(printer_dispatcher=None)[source]

Bases: ICodePrinter, DispatcherInjectable

Printer for enum declaration.

print(source, config=None, context=None)[source]

devana.code_generation.printers.default.externcprinter

class ExternCPrinter(printer_dispatcher=None)[source]

Bases: ICodePrinter, DispatcherInjectable

Printer for extern c syntax.

print(source, config=None, _=None)[source]
Return type

str

devana.code_generation.printers.default.fileprinter

class FilePrinter(printer_dispatcher=None)[source]

Bases: ICodePrinter, DispatcherInjectable

Printer for whole file.

print(source, config=None, context=None)[source]
class IncludePrinter(printer_dispatcher=None)[source]

Bases: ICodePrinter, DispatcherInjectable

Printer for include directive.

print(source, config=None, context=None)[source]

devana.code_generation.printers.default.functionprinter

class ArgumentPrinter(printer_dispatcher=None)[source]

Bases: VariablePrinter

Printer for arguments used in function declaration.

print(source, config=None, _=None)[source]
Return type

str

class FunctionPrinter(printer_dispatcher=None)[source]

Bases: ICodePrinter, DispatcherInjectable

Printer for function declaration.

print(source, config=None, context=None)[source]

devana.code_generation.printers.default.functiontypeprinter

class FunctionTypePrinter(printer_dispatcher=None)[source]

Bases: ICodePrinter, DispatcherInjectable

Printer for function use as type like function pointer.

print(source, config=None, _=None)[source]

devana.code_generation.printers.default.namespaceprinter

class NamespacePrinter(printer_dispatcher=None)[source]

Bases: ICodePrinter, DispatcherInjectable

Printer for namespace.

print(source, config=None, _=None)[source]
Return type

str

devana.code_generation.printers.default.stubtypeprinter

class StubTypePrinter(printer_dispatcher=None)[source]

Bases: ICodePrinter, DispatcherInjectable

Stub class to print everything.

print(source, _1=None, _2=None)[source]
Return type

str

devana.code_generation.printers.default.templateparameterprinter

class TemplateParameterPrinter(printer_dispatcher=None)[source]

Bases: ICodePrinter, DispatcherInjectable

Printer for template parameter.

print(source, _1=None, _2=None)[source]
Return type

str

devana.code_generation.printers.default.typedefprinter

class TypedefPrinter(printer_dispatcher=None)[source]

Bases: ICodePrinter, DispatcherInjectable

Printer for typedefs.

print(source, config=None, context=None)[source]

devana.code_generation.printers.default.typeexpressionprinter

class GenericTypeParameterPrinter(printer_dispatcher=None)[source]

Bases: ICodePrinter, DispatcherInjectable

Printer for generic type of template like T.

print(source, _1=None, _2=None)[source]
Return type

str

class TypeExpressionPrinter(printer_dispatcher=None)[source]

Bases: ICodePrinter, DispatcherInjectable

Printer for syntax of type usage.

print(source, config=None, _=None)[source]
Return type

str

devana.code_generation.printers.default.unionprinter

class UnionPrinter(printer_dispatcher=None)[source]

Bases: ICodePrinter, DispatcherInjectable

Printer for union declaration.

print(source, config=None, context=None)[source]

devana.code_generation.printers.default.usingnamespaceprinter

class UsingNamespacePrinter(printer_dispatcher=None)[source]

Bases: ICodePrinter, DispatcherInjectable

Printer for using namespace syntax.

print(source, config=None, _=None)[source]

devana.code_generation.printers.default.usingprinter

class UsingPrinter(printer_dispatcher=None)[source]

Bases: ICodePrinter, DispatcherInjectable

Printer for using syntax.

print(source, config=None, context=None)[source]

devana.code_generation.printers.default.utilityprinters

namespaces_string(source)[source]
Return type

str

devana.code_generation.printers.default.variableprinter

class GlobalVariablePrinter(printer_dispatcher=None)[source]

Bases: VariablePrinter

Printer for global variable declaration.

print(source, config=None, _=None)[source]
Return type

str

class VariablePrinter(printer_dispatcher=None)[source]

Bases: ICodePrinter, DispatcherInjectable

Printer for variable usage.

print(source, config=None, _=None)[source]
Return type

str

A set of basic classes that print syntax elements.

The module contains classes that print components and an instance factory of a default configured printers.