public abstract class GeneratedMetaMethod
extends MetaMethod
Base for a generated default-Groovy-method adapter. The name, declaring class, and return type are fixed here; parameter types are stored by MetaMethod.
| Modifiers | Name | Description |
|---|---|---|
static class |
GeneratedMetaMethod.DgmMethodRecord |
One generated default-Groovy-method adapter, as written to META-INF/dgminfo.
|
static class |
GeneratedMetaMethod.Proxy |
Placeholder for a generated adapter. |
interface |
GeneratedMetaMethod.ProxyFactory |
Creates the generated DGM adapter for a DgmMethodRecord by its index, with a direct constructor call rather than reflection. |
| Fields inherited from class | Fields |
|---|---|
class MetaMethod |
EMPTY_ARRAY |
| Constructor and description |
|---|
GeneratedMetaMethod(String name, CachedClass declaringClass, Class returnType, Class[] parameters)Stores the name, declaring class, and return type, and passes parameters to MetaMethod. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public CachedClass |
getDeclaringClass() |
|
public int |
getModifiers() |
|
public String |
getName() |
|
public Class |
getReturnType() |
|
public MethodHandle |
getTargetMethodHandle()Returns a MethodHandle pointing directly to the underlying target method, or null if not available. |
| Methods inherited from class | Name |
|---|---|
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 the name, declaring class, and return type, and passes
parameters to MetaMethod.
name - method namedeclaringClass - class that declares the methodreturnType - method return typeparameters - parameter types passed to MetaMethod Returns a MethodHandle pointing directly to the underlying target method,
or null if not available.
Generated DGM adapter classes override this to provide a pre-computed handle that avoids the boxing overhead of invoke(Object, Object[]).
nullCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.