title: How do I dynamically invoke methods in Groovy?
body: <p>At runtime I'm grabbing a list of method names on a class, and I want to invoke these methods.  I understand how to get the first part done from here:
  <a href="http://docs.codehaus.org/display/GROOVY/JN3535-Reflection" rel="noreferrer">http://docs.codehaus.org/display/GROOVY/JN3535-Reflection</a></p>
  
  <pre><code>GroovyObject.methods.each{ println it.name }
  </code></pre>
  
  <p>What I can't seem to find information on is how to then invoke a method once I've grabbed its name.  </p>
  
  <p>What I want is to get here:</p>
  
  <pre><code>GroovyObject.methods.each{ GroovyObject.invokeMethod( it.name, argList) }
  </code></pre>
  
  <p>I can't seem to find the correct syntax.  The above seems to assume I've overloaded the default invokeMethod for the GroovyObject class, which is NOT the direction I want to go.  </p>