@SuppressWarnings(value: rawtypes) @CompileStatic abstract class MethodInvokingClosure extends Closure
Not public API. Used by GormEnhancer
| Modifiers | Name | Description |
|---|---|---|
protected Object |
apiDelegate |
|
protected MetaMethod |
metaMethod |
|
protected String |
methodName |
|
protected Class[] |
parameterTypes |
| Fields inherited from class | Fields |
|---|---|
class Closure |
OWNER_FIRST, DELEGATE_FIRST, OWNER_ONLY, DELEGATE_ONLY, TO_SELF, DONE, SKIP, IDENTITY |
| Constructor and description |
|---|
MethodInvokingClosure(Object apiDelegate, String methodName, Class[] parameterTypes) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
abstract Object |
call(Object[] args) |
|
Object |
doCall(Object[] args) |
|
int |
getMaximumNumberOfParameters() |
|
Class[] |
getParameterTypes() |
|
protected static MetaMethod |
pickMetaMethod(MetaClass theMetaClass, String methodName, Class[] parameterTypes, boolean staticScope)Utility method for choosing matching metamethod, handles MethodSelectionException |
| Methods inherited from class | Name |
|---|---|
class Closure |
andThen, andThenSelf, andThenSelf, asWritable, call, call, call, clone, compose, composeSelf, composeSelf, curry, curry, dehydrate, equals, getClass, getDelegate, getDirective, getMaximumNumberOfParameters, getMetaClass, getOwner, getParameterTypes, getProperty, getResolveStrategy, getThisObject, hashCode, invokeMethod, isCase, leftShift, leftShift, memoize, memoizeAtLeast, memoizeAtMost, memoizeBetween, ncurry, ncurry, notify, notifyAll, rcurry, rcurry, rehydrate, rightShift, run, setDelegate, setDirective, setMetaClass, setProperty, setResolveStrategy, toString, trampoline, trampoline, wait, wait, wait |
Utility method for choosing matching metamethod, handles MethodSelectionException @return