title: Groovy way to dynamically invoke a static method
body: <p>I know in Groovy you can invoke a method on a class/object using a string.  For example:</p>
  
  <pre><code>Foo."get"(1)
    /* or */
  String meth = "get"
  Foo."$meth"(1)
  </code></pre>
  
  <p>Is there a way to do this with the class?  I have the name of the class as a string and would like to be able to dynamically invoke that class.  For example, looking to do something like:</p>
  
  <pre><code>String clazz = "Foo"
  "$clazz".get(1)
  </code></pre>
  
  <p>I think I'm missing something really obvious, just am not able to figure it out.</p>