Exemplo n.º 1
0
 def inheritanceAdapterToStr(self,
                             inheritanceList: typing.List[Type]) -> str:
     return ", ".join([
         "public {}<Impl>".format(
             str(typeToStrOriginal(inheritance, adapter=True)))
         for inheritance in inheritanceList
     ])
Exemplo n.º 2
0
 def typeRegistryToStr(self, entity: Type) -> str:
     return typeToStrOriginal(
         entity=entity,
         registry=[entity.fqn for entity in self.composition.registry]
         if self.composition else None)
Exemplo n.º 3
0
 def typeNonConstToStr(self, entity: Type) -> str:
     return typeToStrOriginal(entity=entity, nonConst=True)
Exemplo n.º 4
0
 def typeDefinitionToStr(self, entity: Type) -> str:
     return typeToStrOriginal(entity=entity, definition=True)
Exemplo n.º 5
0
 def typeReferenceToStr(self, entity: Type) -> str:
     return typeToStrOriginal(entity=entity, reference=True)
Exemplo n.º 6
0
 def typeToStr(self, entity: Type) -> str:
     return typeToStrOriginal(entity=entity)
Exemplo n.º 7
0
 def inheritanceToStr(self, inheritanceList: typing.List[Type]) -> str:
     return ", ".join([
         "public {}".format(str(typeToStrOriginal(inheritance)))
         for inheritance in inheritanceList
     ])