Generic type support for class diagrams
See original GitHub issueI want to be able to define a generic class in class diagrams. This currently breaks because the parser doesn’t allow <
or >
in the class name.
classDiagram
class Test<T> {
+ test: int
}
If this syntax would break something, there could be an alternative syntax
classDiagram
class Test{T} {
+ test: int
}
This should render with <
>
brackets. Needs more work because this means additional parsing.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
UML Class Diagram and Generics - java - Stack Overflow
I'm looking for two things really: One is how do I model generic java classes if i were doing it with pen and...
Read more >Defining Generics with UML Templates - Eclipse
The kinds of UML metatypes that can be templateable are Classifier (Class, Component etc.), Operation, Package and less commonly, Property, and StringExpression ...
Read more >Generics - No Magic Documentation
Generics permit classes, structs, interfaces, delegates, and methods to be parameterized by the data types they store and manipulate.
Read more >UML class diagram , How can i draw generic method with type ...
Hello everybody, I would like to draw this code to class diagram public interface IDataContext { IList GetAll() where T : class, new();...
Read more >Generic classes in the class diagram - ResearchGate
In BlueJ, generic types are supported explicitly at all stages of interaction. When a generic class is instantiated, the constructor dialogue includes an ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This issue is about class diagrams, not flow diagrams.
New contributor here! I’m interested in taking this on. Looks like the grammar in classDiagram.jison will need to be added to.
Edit: originally incorrectly referred to flow.json