protected final void checkIfGroovyObjectMethod ( MetaMethod metaMethod ) { if ( metaMethod instanceof ClosureMetaMethod || metaMethod instanceof MixinInstanceMetaMethod ) { if ( isGetPropertyMethod ( metaMethod ) ) { getPropertyMethod = metaMethod ; } else if ( isInvokeMethod ( metaMethod ) ) { invokeMethodMethod = metaMethod ; } else if ( isSetPropertyMethod ( metaMethod ) ) { setPropertyMethod = metaMethod ; } } }
Checks if the metaMethod is a method from the GroovyObject interface such as setProperty getProperty and invokeMethod