Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-31

Add MetaClass.getMethodClosure to allow analysis of 'does understand method'

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-beta-4
    • None
    • None

    Description

      have some kinda way to do this

      MethodProxy proxy = metaClass.getMethod("name", List arguments)
      if (proxy != null)

      { proxy.call(instance, arguments); }

      else

      { // invoke on delegate InvokeHelper.invokeMethod(delegate, name, arguments) }

      so rather than just doing 'hasMethod' or 'understandsMethod' we can return
      a Closure or MethodProxy or something or null if a method is not understood

      Attachments

        Activity

          People

            Unassigned Unassigned
            jstrachan James Strachan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: