I have question about my program. My program should be to able create UML diagram from Java code, but I don't know, how design method, which will retrieves (load) Java keywords, objects etc. Notice: I can not use automated programs to create UML diagram. It is my thesis.
My idea was create enum class with Java keywords, that are seen in UML diagram and check all loaded code with this enum. But there are several problems, which I am not able to solve, especially spaces. Next problem is following:
For example I have code:
[space][space]public[space]class[space][space][space]SomeClass[space]{
[empty line]
private int something;
public BufferedReader br;
private ArrayList<File> al;
}
Comments for this code:
- [space] represents the classical gap in the code.
- I have highlighted the gaps on purpose because it is syntactically correct.
- I don't know how do I load all Java classes as BufferedReader, ArrayList, etc or other objects.
Thank you for any reply. I suppose there is a better way to solve this problem.