Top Fields Constructors Methods
org.codehaus.groovy.runtime.metaclass

public Class ReflectionMetaMethod

extends MetaMethod
Class Inheritance
Known Direct Subclasses
org.codehaus.groovy.runtime.metaclass.NewMetaMethod
Imports
groovy.lang.MetaMethod, org.codehaus.groovy.reflection.CachedClass, .CachedMethod, org.codehaus.groovy.runtime.InvokerInvocationException, java.lang.reflect.InvocationTargetException

Field Summary

Modifier and TypeField and Description
protected final CachedMethod
Inherited from groovy.lang.MetaMethod:
EMPTY_ARRAY

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public MetaMethod
public CachedClass
getDeclaringClass()

Implements abstract groovy.lang.MetaMethod.getDeclaringClass.

Gets the class where this method is declared
public int
getModifiers()

Implements abstract groovy.lang.MetaMethod.getModifiers.

Returns the modifiers for this method
public String
getName()

Implements abstract groovy.lang.MetaMethod.getName.

Returns the name of the method represented by this class
protected Class<T>[]
public Class<T>
getReturnType()

Implements abstract groovy.lang.MetaMethod.getReturnType.

Access the return type for this method
public Object
invoke(Object
The object this method should be invoked on
object
,
Object[]
The arguments for the method if applicable
arguments
)

Implements abstract groovy.lang.MetaMethod.invoke.

Invoke this method
public String
toString()

Overrides groovy.lang.MetaMethod.toString.

Returns a string representation of this method
Inherited from groovy.lang.MetaMethod:
checkParametersclonedoMethodInvokeequalequalgetDescriptorgetMopNamegetSignatureisAbstractisCacheableisMethodisPrivateisProtectedisPublicisSameisStaticprocessDoMethodInvokeException

Field Detail

methodback to summary
protected final CachedMethod method

Constructor Detail

ReflectionMetaMethodback to summary
public ReflectionMetaMethod(CachedMethod method)

Method Detail

getCachedMethodback to summary
public MetaMethod getCachedMethod()
getDeclaringClassback to summary
public CachedClass getDeclaringClass()

Implements abstract groovy.lang.MetaMethod.getDeclaringClass.

Doc from groovy.lang.MetaMethod.getDeclaringClass.

Gets the class where this method is declared

Returns:CachedClass

class of this method

getModifiersback to summary
public int getModifiers()

Implements abstract groovy.lang.MetaMethod.getModifiers.

Doc from groovy.lang.MetaMethod.getModifiers.

Returns the modifiers for this method

Returns:int

modifiers as an int.

getNameback to summary
public String getName()

Implements abstract groovy.lang.MetaMethod.getName.

Doc from groovy.lang.MetaMethod.getName.

Returns the name of the method represented by this class

Returns:String

name of this method

getPTback to summary
protected Class<T>[] getPT()

Overrides org.codehaus.groovy.reflection.ParameterTypes.getPT.

getReturnTypeback to summary
public Class<T> getReturnType()

Implements abstract groovy.lang.MetaMethod.getReturnType.

Doc from groovy.lang.MetaMethod.getReturnType.

Access the return type for this method

Returns:Class<T>

the return type of this method

invokeback to summary
public Object invoke(Object object, Object[] arguments)

Implements abstract groovy.lang.MetaMethod.invoke.

Doc from groovy.lang.MetaMethod.invoke.

Invoke this method

Parameters
object:Object

The object this method should be invoked on

arguments:Object[]

The arguments for the method if applicable

Returns:Object

The return value of the invocation

toStringback to summary
public String toString()

Overrides groovy.lang.MetaMethod.toString.

Doc from groovy.lang.MetaMethod.toString.

Returns a string representation of this method

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object.