public class ReflectionMetaMethod
extends MetaMethod
A MetaMethod implementation that wraps a reflection-based method call. This class provides access to a cached method and delegates method invocations to the underlying cached method.
This implementation is for internal use by the Groovy runtime.
| Modifiers | Name | Description |
|---|---|---|
protected CachedMethod |
method |
The underlying cached method that this MetaMethod wraps |
| Fields inherited from class | Fields |
|---|---|
class MetaMethod |
EMPTY_ARRAY |
| Constructor and description |
|---|
ReflectionMetaMethod(CachedMethod method)Constructs a new ReflectionMetaMethod. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public MetaMethod |
getCachedMethod()Returns the cached method wrapped by this MetaMethod. |
|
public CachedClass |
getDeclaringClass()Returns the class that declares the wrapped cached method. |
|
public int |
getModifiers()Returns the modifiers of the wrapped cached method. |
|
public String |
getName()Returns the name of the wrapped cached method. |
|
protected Class[] |
getPT() |
|
public Class |
getReturnType()Returns the return type of the wrapped cached method. |
|
public Object |
invoke(Object object, Object[] arguments)Invokes the wrapped cached method on the given object with the specified arguments. |
|
public String |
toString()Returns a string representation of the wrapped cached method. |
| 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 |
The underlying cached method that this MetaMethod wraps
Constructs a new ReflectionMetaMethod.
method - the cached method to wrapReturns the cached method wrapped by this MetaMethod.
Returns the class that declares the wrapped cached method.
Returns the modifiers of the wrapped cached method.
Returns the name of the wrapped cached method.
Returns the return type of the wrapped cached method.
Invokes the wrapped cached method on the given object with the specified arguments.
object - the object to invoke the method onarguments - the method argumentsReturns a string representation of the wrapped cached method.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.