public class TransformMetaMethod
extends MetaMethod
A MetaMethod implementation useful for implementing coercion based invocations. This method wraps another metamethod and allows for argument transformation or other custom handling during method invocation.
| Fields inherited from class | Fields |
|---|---|
class MetaMethod |
EMPTY_ARRAY |
| Constructor and description |
|---|
TransformMetaMethod(MetaMethod metaMethod)Constructs a new TransformMetaMethod. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Object |
doMethodInvoke(Object object, Object[] arguments)Invokes the wrapped metamethod without argument coercion. |
|
public CachedClass |
getDeclaringClass()Returns the class that declares the wrapped metamethod. |
|
public int |
getModifiers()Returns the modifiers of the wrapped metamethod. |
|
public String |
getName()Returns the name of the wrapped metamethod. |
|
public Class |
getReturnType()Returns the return type of the wrapped metamethod. |
|
public Object |
invoke(Object object, Object[] arguments)Invokes the wrapped metamethod on the given object with the specified arguments. |
| 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 |
Constructs a new TransformMetaMethod.
metaMethod - the metamethod to wrapInvokes the wrapped metamethod without argument coercion. This method skips the default argument coercion performed by the parent invoke method.
object - the object to invoke the method onarguments - the method argumentsReturns the class that declares the wrapped metamethod.
Returns the modifiers of the wrapped metamethod.
Returns the name of the wrapped metamethod.
Returns the return type of the wrapped metamethod.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.