title: How to create UML diagram from loaded Java code?
body: <p>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.</p>
  
  <p>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:</p>
  
  <p>For example I have code:</p>
  
  <pre><code>[space][space]public[space]class[space][space][space]SomeClass[space]{
  [empty line]
  private int something;
  public BufferedReader br;
  private ArrayList&lt;File&gt; al;
  }
  </code></pre>
  
  <p>Comments for this code:</p>
  
  <ul>
  <li>[space] represents the classical gap in the code.</li>
  <li>I have highlighted the gaps on purpose because it is syntactically correct.</li>
  <li>I don't know how do I load all Java classes as BufferedReader, ArrayList, etc or other objects.</li>
  </ul>
  
  <p>Thank you for any reply. I suppose there is a better way to solve this problem.</p>