title: Is there a library that generates UIs based on metadata declarations like this>>?
body: <p>Do you know about a library that allows us to generate UI by just stating that it should be generated?</p>
  
  <p>I think there must be a person who have implemented a mechanism allowing us to transform code like this:</p>
  
  <pre><code>class Main {
      @Command
      int add(int a, int b) {
          return a+b;
      }
  }
  </code></pre>
  
  <p>into, say, a dialog with 2 text fields and a button? Or into a webform? You've got the idea, right?</p>
  
  <p>The type of UI and the language doesn't matter, if it allows us to simply say, "This should be a command" without those lots of XML files scattered all over the application.</p>
  
  <p>And, btw, what do you think about this kind of meta-programming?</p>