Package: org.codehaus.groovy.runtime

## [Java] Class MethodClosure

- org.codehaus.groovy.runtime.MethodClosure

- Represents a method on an object using a closure which can be invoked at any time

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `static boolean` | `ALLOW_RESOLVE` |
    `static String` | `ANY_INSTANCE_METHOD_EXISTS` |
    `static String` | `NEW` |

  - ### Constructor Summary

    Constructors
    Constructor and description
    `MethodClosure (Object owner, String method)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `protected Object` | `doCall(Object arguments)`
    `` | `String` | `getMethod()`
    `` | `Object` | `getProperty(String property)`

- - ### Field Detail

    - #### public static boolean ALLOW_RESOLVE

    - #### public static final String ANY_INSTANCE_METHOD_EXISTS

    - #### public static final String NEW

  - ### Constructor Detail

    - #### public MethodClosure(Object owner, String method)

  - ### Method Detail

    - #### protected Object doCall(Object arguments)

    - #### public String getMethod()

    - #### public Object getProperty(String property)