public static class GeneratedMetaMethod.Proxy
extends GeneratedMetaMethod
Placeholder for a generated adapter. The first call to proxy() builds the
real meta-method, through ProxyFactory when the class name is a generated
dgm$ index, and otherwise by loading that class and calling its constructor.
| Fields inherited from class | Fields |
|---|---|
class MetaMethod |
EMPTY_ARRAY |
| Constructor and description |
|---|
Proxy(String className, String name, CachedClass declaringClass, Class returnType, Class[] parameters)Stores className and forwards the method shape to GeneratedMetaMethod. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Object |
doMethodInvoke(Object object, Object[] argumentArray) |
|
public Object |
invoke(Object object, Object[] arguments) |
|
public boolean |
isValidMethod(Class[] arguments) |
|
public final MetaMethod |
proxy()Returns the generated adapter, creating it on the first call. |
| Methods inherited from class | Name |
|---|---|
class GeneratedMetaMethod |
getDeclaringClass, getModifiers, getName, getReturnType, getTargetMethodHandle |
class MetaMethod |
checkParameters, clone, doMethodInvoke, equal, equal, getDeclaringClass, getDescriptor, getModifiers, getMopName, getName, getReturnType, getSignature, invoke, isAbstract, isCacheable, isDefault, isMethod, isSame, processDoMethodInvokeException, toString |
class ParameterTypes |
coerceArgumentsToClasses, correctArguments, getNativeParameterTypes, getPT, getParameterTypes, isValidExactMethod, isValidExactMethod, isValidMethod, isValidMethod, isVargsMethod, isVargsMethod, setParametersTypes |
Stores className and forwards the method shape to GeneratedMetaMethod.
className - internal name of the adapter proxy() will loadname - method namedeclaringClass - declaring class passed to GeneratedMetaMethodreturnType - return type passed to GeneratedMetaMethodparameters - parameter types passed to MetaMethodReturns the generated adapter, creating it on the first call. Creation is synchronized. A failure to load or construct the adapter is wrapped in GroovyRuntimeException after the cause is printed.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.