Top Inners Fields Constructors Methods
org.codehaus.groovy.reflection

public abstract Class GeneratedMetaMethod

extends MetaMethod
Class Inheritance
Known Direct Subclasses
org.codehaus.groovy.reflection.GeneratedMetaMethod.Proxy
Imports
groovy.lang.GroovyRuntimeException, .MetaMethod, java.io.BufferedInputStream, .BufferedOutputStream, .DataInputStream, .DataOutputStream, .FileOutputStream, .IOException, .Serializable, java.lang.reflect.Constructor, .Modifier, java.util.ArrayList, .HashMap, .LinkedHashMap, .List, .Map

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Field Summary

Modifier and TypeField and Description
private final CachedClass
private final String
private final Class<T>
Inherited from groovy.lang.MetaMethod:
EMPTY_ARRAY

Constructor Summary

AccessConstructor and Description
public
GeneratedMetaMethod(String name, CachedClass declaringClass, Class<T> returnType, Class<T>[] parameters)

Method Summary

Modifier and TypeMethod and Description
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
public Class<T>
getReturnType()

Implements abstract groovy.lang.MetaMethod.getReturnType.

Access the return type for this method
Inherited from groovy.lang.MetaMethod:
checkParametersclonedoMethodInvokeequalequalgetDescriptorgetMopNamegetSignatureinvokeisAbstractisCacheableisMethodisPrivateisProtectedisPublicisSameisStaticprocessDoMethodInvokeExceptiontoString

Field Detail

declaringClassback to summary
private final CachedClass declaringClass
nameback to summary
private final String name
returnTypeback to summary
private final Class<T> returnType

Constructor Detail

GeneratedMetaMethodback to summary
public GeneratedMetaMethod(String name, CachedClass declaringClass, Class<T> returnType, Class<T>[] parameters)

Method Detail

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

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

org.codehaus.groovy.reflection back to summary

public Class GeneratedMetaMethod.DgmMethodRecord

extends Object
implements Serializable
Class Inheritance
  • java.lang.Object
  • org.codehaus.groovy.reflection.GeneratedMetaMethod.DgmMethodRecord
All Implemented Interfaces
java.io.Serializable

Field Summary

Modifier and TypeField and Description
public String
public String
public Class<T>[]
private static final Class<T>[]
public Class<T>
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static List<GeneratedMetaMethod.DgmMethodRecord>
public static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

classNameback to summary
public String className
methodNameback to summary
public String methodName
parametersback to summary
public Class<T>[] parameters
PRIMITIVE_CLASSESback to summary
private static final Class<T>[] PRIMITIVE_CLASSES
returnTypeback to summary
public Class<T> returnType
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

DgmMethodRecordback to summary
public DgmMethodRecord()

Method Detail

loadDgmInfoback to summary
public static List<GeneratedMetaMethod.DgmMethodRecord> loadDgmInfo() throws IOException
saveDgmInfoback to summary
public static void saveDgmInfo(List<GeneratedMetaMethod.DgmMethodRecord> records, String file) throws IOException
org.codehaus.groovy.reflection back to summary

public Class GeneratedMetaMethod.Proxy

extends GeneratedMetaMethod
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final String
private volatile MetaMethod

Constructor Summary

AccessConstructor and Description
public
Proxy(String className, String name, CachedClass declaringClass, Class<T> returnType, Class<T>[] parameters)

Method Summary

Modifier and TypeMethod and Description
private void
public Object
doMethodInvoke(Object
The object the method is to be called at.
object
,
Object[]
Arguments for the method invocation.
argumentArray
)

Overrides groovy.lang.MetaMethod.doMethodInvoke.

Invokes the method this object represents.
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 boolean
public final MetaMethod
Inherited from org.codehaus.groovy.reflection.GeneratedMetaMethod:
getDeclaringClassgetModifiersgetNamegetReturnType

Field Detail

classNameback to summary
private final String className
proxyback to summary
private volatile MetaMethod proxy

Constructor Detail

Proxyback to summary
public Proxy(String className, String name, CachedClass declaringClass, Class<T> returnType, Class<T>[] parameters)

Method Detail

createProxyback to summary
private void createProxy()
doMethodInvokeback to summary
public Object doMethodInvoke(Object object, Object[] argumentArray)

Overrides groovy.lang.MetaMethod.doMethodInvoke.

Doc from groovy.lang.MetaMethod.doMethodInvoke.

Invokes the method this object represents. This method is not final but it should be overloaded very carefully and only by generated methods there is no guarantee that it will be called

Parameters
object:Object

The object the method is to be called at.

argumentArray:Object[]

Arguments for the method invocation.

Returns:Object

The return value of the invoked method.

Annotations
@Override
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

isValidMethodback to summary
public boolean isValidMethod(Class<T>[] arguments)

Overrides org.codehaus.groovy.reflection.ParameterTypes.isValidMethod.

Annotations
@Override
proxyback to summary
public final MetaMethod proxy()