Top Description Inners Fields Constructors Methods
groovy.lang

public Class MetaClassImpl

extends Object
implements MetaClass, MutableMetaClass
Class Inheritance
All Implemented Interfaces
groovy.lang.MutableMetaClass, groovy.lang.MetaClass, groovy.lang.MetaObjectProtocol
Known Direct Subclasses
groovy.lang.ProxyMetaClass, org.codehaus.groovy.runtime.metaclass.ClosureMetaClass, groovy.lang.ExpandoMetaClass
Imports
org.apache.groovy.internal.util.UncheckedThrow, org.apache.groovy.util.BeanUtils, .SystemUtil, org.codehaus.groovy.GroovyBugError, org.codehaus.groovy.ast.ClassNode, org.codehaus.groovy.classgen.asm.BytecodeHelper, org.codehaus.groovy.control.CompilationUnit, .Phases, org.codehaus.groovy.reflection.CachedClass, .CachedConstructor, .CachedField, .CachedMethod, .ClassInfo, .GeneratedMetaMethod, .ParameterTypes, .ReflectionCache, org.codehaus.groovy.reflection.android.AndroidSupport, org.codehaus.groovy.runtime.ArrayTypeUtils, .ConvertedClosure, .CurriedClosure, .DefaultGroovyMethods, .GeneratedClosure, .GroovyCategorySupport, .GroovyCategorySupport.CategoryMethod, .InvokerHelper, .InvokerInvocationException, .MetaClassHelper, .MethodClosure, org.codehaus.groovy.runtime.callsite.AbstractCallSite, .CallSite, .ConstructorSite, .MetaClassConstructorSite, .PogoMetaClassSite, .PogoMetaMethodSite, .PojoMetaClassSite, .PojoMetaMethodSite, .StaticMetaClassSite, .StaticMetaMethodSite, org.codehaus.groovy.runtime.metaclass.ClosureMetaMethod, .MetaClassRegistryImpl, .MetaMethodIndex, .MethodMetaProperty.GetBeanMethodMetaProperty, .MethodMetaProperty.GetMethodMetaProperty, .MethodSelectionException, .MissingMethodExceptionNoStack, .MissingMethodExecutionFailed, .MissingPropertyExceptionNoStack, .MixinInstanceMetaMethod, .MultipleSetterProperty, .NewInstanceMetaMethod, .NewMetaMethod, .NewStaticMetaMethod, .TransformMetaMethod, org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation, .NumberMathModificationInfo, org.codehaus.groovy.runtime.wrappers.Wrapper, org.codehaus.groovy.util.ComplexKeyHashMap, .FastArray, .SingleKeyHashMap, org.codehaus.groovy.vmplugin.VMPlugin, .VMPluginFactory, java.beans.BeanInfo, .EventSetDescriptor, .Introspector, .PropertyDescriptor, java.lang.reflect.Array, .Constructor, .Method, .Modifier, .Proxy, java.net.URL, java.security.AccessController, .PrivilegedActionException, .PrivilegedExceptionAction, java.util.ArrayList, .Arrays, .Collection, .Collections, .Comparator, .HashMap, .HashSet, .Iterator, .LinkedHashSet, .LinkedList, .List, .ListIterator, .Map, .Set, java.util.concurrent.ConcurrentHashMap, .ConcurrentMap

Allows methods to be dynamically added to existing classes at runtime
See Also
groovy.lang.MetaClass

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
public static class
private static enum
public static class
MetaClassImpl.MetaConstructor

This is a helper class introduced in Groovy 2.1.0, which is used only by indy.

pack-priv static class
private abstract class

Field Summary

Modifier and TypeField and Description
private final MetaMethod[]
private final List<MetaMethod>
private static final MetaMethod
private final MetaProperty
private static final Comparator<CachedClass>
private static final String
private ClassNode
private final MetaClassImpl.Index
private final MetaClassImpl.Index
private static final String
private FastArray
private static final String
public static final Object[]
private MetaMethod
private MetaMethod
private static final String
protected MetaMethod
private static final Class<T>[]
private volatile boolean
private static final boolean
protected static final String
protected MetaMethod
protected final boolean
protected final boolean
private final Map<String, MetaMethod>
private MetaMethodIndex.Header
protected final MetaMethodIndex
private static final SingleKeyHashMap.Copier
protected static final String
private static final Class<T>[]
private MetaMethod
private final MetaMethod[]
private static final SingleKeyHashMap.Copier
private final Set<MetaMethod>
private static final boolean
private boolean
private static final ConcurrentMap<String, String>
protected static final String
private MetaMethod
private MetaMethod
protected MetaClassRegistry
private static final String
protected MetaMethod
private static final Class<T>[]
protected static final String
protected static final String
private final SingleKeyHashMap
protected final CachedClass
protected final Class<T>
private static final VMPlugin

Constructor Summary

AccessConstructor and Description
public
MetaClassImpl(final Class<T>
The class this is the metaclass dor
theClass
,
final MetaMethod[]
The methods for this class
add
)

Constructor

public
MetaClassImpl(final Class<T>
The class this is the metaclass dor
theClass
)

Constructor that sets the methods to null

public
MetaClassImpl(final MetaClassRegistry
The metaclass registry for this MetaClass
registry
,
final Class<T>
The class
theClass
,
final MetaMethod[]
The methods
add
)

Constructor with registry

public
MetaClassImpl(MetaClassRegistry
The metaclass registry for this MetaClass
registry
,
final Class<T>
The class
theClass
)

Constructor with registry setting methods to null

Method Summary

Modifier and TypeMethod and Description
private static Object
private static void
addFields(CachedClass klass, SingleKeyHashMap propertyIndex)

public void
addMetaBeanProperty(MetaBeanProperty
The MetaBeanProperty
mp
)

Implements groovy.lang.MutableMetaClass.addMetaBeanProperty.

Adds a new MetaBeanProperty to this MetaClass
public void
addMetaMethod(MetaMethod
the MetaMethod
method
)

Implements groovy.lang.MutableMetaClass.addMetaMethod.

adds a MetaMethod to this class.
protected void
public void
addNewInstanceMethod(final Method
The method to be added
method
)

Implements groovy.lang.MutableMetaClass.addNewInstanceMethod.

Adds an instance method to this metaclass.
private void
public void
addNewStaticMethod(final Method
The method to be added
method
)

Implements groovy.lang.MutableMetaClass.addNewStaticMethod.

Adds a static method to this metaclass.
private void
private void
private void
protected void
private void
applyStrayPropertyMethods(LinkedList<CachedClass> superClasses, MetaClassImpl.Index classPropertyIndex, boolean isThis)

private CachedClass
private static boolean
protected final void
checkIfGroovyObjectMethod(MetaMethod
The metaMethod instance
metaMethod
)

Checks if the metaMethod is a method from the GroovyObject interface such as setProperty, getProperty and invokeMethod

private void
protected void
checkInitalised()

checks if the initialisation of the class id complete.

protected Object
chooseMethod(String methodName, Object
the possible methods to choose from
methodOrList
,
Class<T>[]
the arguments
arguments
)

Chooses the correct method to use from a list of methods which match by name.

private Object
chooseMethodInternal(String methodName, Object methodOrList, Class<T>[] arguments)

private Object
chooseMostSpecificParams(String name, List<E> matchingMethods, Class<T>[] arguments)

protected void
clearInvocationCaches()

remove all method call cache entries.

private void
connectMultimethods(final List<CachedClass> superClasses, final CachedClass firstGroovyClass)

private void
private static void
private CachedConstructor
public CallSite
createConstructorSite(CallSite site, Object[] args)

Create a CallSite

protected static String
createErrorMessageForAmbiguity(String theClassName, String name, Class<T>[] arguments, LinkedList<E> matches)

private static void
createMetaBeanProperty(SingleKeyHashMap propertyIndex, String propName, boolean isGetter, MetaMethod propertyMethod)

private Tuple2<MetaMethod, MetaProperty>
createMetaMethodAndMetaProperty(final Class<T> senderForMP, final Class<T> senderForCMG, final String name, final boolean useSuper, final boolean isStatic)

public CallSite
createPogoCallCurrentSite(CallSite site, Class<T> sender, Object[] args)

Create a CallSite

public CallSite
createPogoCallSite(CallSite site, Object[] args)

Create a CallSite

public CallSite
createPojoCallSite(CallSite site, Object receiver, Object[] args)

Create a CallSite

public CallSite
createStaticSite(CallSite site, Object[] args)

Create a CallSite

protected MetaMethod
private static int
protected static Object
doChooseMostSpecificParams(String theClassName, String name, List<E> matchingMethods, Class<T>[] arguments, boolean checkParametersCompatible)

protected void
protected void
private static MetaProperty
private void
private static void
private static Object
filterPropertyMethod(Object methodOrList, boolean isGetter, boolean booleanGetter)

return null if nothing valid has been found, a MetaMethod (for getter always the case if not null) or a LinkedList<MetaMethod> if there are multiple setter

private static GroovyCategorySupport.CategoryMethod
findCategoryMethod(final String name, final Class<?> sender, final Predicate<CachedClass[]> paramFilter)

private int
findMatchingMethod(final MetaMethod method, final String mopName, final int index, final CachedMethod[] mopMethods)

private int
findMatchingMethod(CachedMethod[] data, int from, int to, MetaMethod method)

private MetaMethod

Returns:

the matching method which should be found
findMethod
(CachedMethod aMethod)

protected static MetaMethod
findMethodInClassHierarchy(Class<T> instanceKlazz, String methodName, Class<T>[] arguments, MetaClass metaClass)

protected MetaMethod
findMixinMethod(String methodName, Class<T>[] arguments)

protected static MetaMethod
findOwnMethod(Class<T> instanceKlazz, String methodName, Class<T>[] arguments, MetaClass metaClass, MetaMethod method)

protected MetaBeanProperty
private static MetaMethod
findSubClassMethod(Class<T> instanceKlazz, String methodName, Class<T>[] arguments, MetaClass metaClass, MetaMethod method)

private static MetaMethod
findSubClassMethod(Class<T> instanceKlazz, Class<T>[] arguments, MetaMethod method, MetaMethod m)

public MetaMethod[]

Returns:

A list of MetaMethods
getAdditionalMetaMethods
()

Retrieves a list of additional MetaMethods held by this class

public Object

Returns:

The attribute value
getAttribute
(final Class<T>
The class of the object that requested the attribute
sender
,
final Object
The instance
object
,
final String
The name of the attribute
attribute
,
final boolean
Whether to look-up on the super class or not
useSuper
)

Implements groovy.lang.MetaClass.getAttribute.

Retrieves the value of an attribute (field).
public Object

Returns:

The attribute value
getAttribute
(final Class<T>
The class of the object that requested the attribute
sender
,
final Object
The instance the attribute is to be retrieved from
object
,
final String
The name of the attribute
attribute
,
final boolean
Whether to look-up on the super class or not
useSuper
,
final boolean
Whether the call was invoked from the inside or the outside of the class.
fromInsideClass
)

Retrieves the value of an attribute (field).

public Object

Returns:

The attribute value
getAttribute
(final Object
The object to get the attribute from
object
,
final String
The name of the attribute
attribute
)

Implements groovy.lang.MetaObjectProtocol.getAttribute.

Retrieves the value of an attribute (field).
private static GroovyCategorySupport.CategoryMethod
getCategoryMethodGetter(final Class<?> sender, final String name, final boolean useLongVersion)

private static GroovyCategorySupport.CategoryMethod
private static GroovyCategorySupport.CategoryMethod
getCategoryMethodSetter(final Class<?> sender, final String name, final boolean useLongVersion)

public ClassInfo

Returns:

The ClassInfo for the contained class.
getClassInfo
()

Returns the ClassInfo for the contained Class

public ClassNode

Returns:

The original AST or null if it cannot be returned
getClassNode
()

Implements groovy.lang.MetaClass.getClassNode.

Obtains a reference to the original AST for the MetaClass if it is available at runtime
public MetaProperty
getEffectiveGetMetaProperty(final Class<T> sender, final Object object, String name, final boolean useSuper)

private static Boolean

Returns:

false: add method null : ignore method true : replace
getMatchKindForCategory
(MetaMethod aMethod, MetaMethod categoryMethod)

public MetaMethod
getMetaMethod(final String
The name of the MetaMethod
name
,
final Object[]
Array containing - 1) the argument values (using which their types are then inferred), or 2) the corresponding argument types
argTypes
)

Implements groovy.lang.MetaObjectProtocol.getMetaMethod.

Retrieves an instance MetaMethod for the given name and argument values, using the types of the argument values to establish the chosen MetaMethod
private MetaMethod
getMetaMethod(Class<T> sender, Object object, String methodName, boolean isCallToSuper, Object... arguments)

private static MetaMethod
getMetaMethod(Class<T> instanceKlazz, String methodName, Class<T>[] arguments, MetaClass metaClass, MetaMethod method)

public List<MetaMethod>

Returns:

A list of MetaMethods
getMetaMethods
()

Implements groovy.lang.MetaClass.getMetaMethods.

Retrieves the list of MetaMethods held by this class.
public MetaProperty
getMetaProperty(final String
The name of the MetaProperty
name
)

Implements groovy.lang.MetaObjectProtocol.getMetaProperty.

Returns a MetaProperty for the given name or null if it doesn't exist
private MetaProperty
getMetaProperty(Class<T> _clazz, String name, boolean useSuper, boolean useStatic)

private MetaProperty
getMetaProperty(String name, boolean useStatic)

private static MetaBeanProperty
private Object

Returns:

all the normal instance methods available on this class for the given name
getMethods
(final Class<?> sender, final String name, final boolean isCallToSuper)

Gets all instance methods available on this class for the given name

public List<MetaMethod>

Returns:

A list of MetaMethods
getMethods
()

Implements groovy.lang.MetaClass.getMethods.

Retrieves the list of MetaMethods held by the class.
public MetaMethod
getMethodWithCaching(Class<T> sender, String methodName, Object[] arguments, boolean isCallToSuper)

private MetaMethod
getMethodWithCachingInternal(Class<T> sender, CallSite site, Class<T>[] params)

public MetaMethod
getMethodWithoutCaching(Class<T> sender, String methodName, Class<T>[] arguments, boolean isCallToSuper)

private MetaMethod[]
private MetaMethod
public List<MetaProperty>

Returns:

a list of MetaProperty objects
getProperties
()

Implements groovy.lang.MetaClass.getProperties.

Get all the properties defined for this type
public Object

Returns:

the given property's value on the object
getProperty
(Class<T>
The java.lang.Class instance that requested the property
sender
,
Object
The Object which the property is being retrieved from
object
,
String
The name of the property
name
,
boolean
Whether the call is to a super class property
useSuper
,
boolean
??
fromInsideClass
)

Implements groovy.lang.MetaClass.getProperty.

Retrieves a property on the given receiver for the specified arguments.

public Object

Returns:

The properties value
getProperty
(Object
The Object which the property is being retrieved from
object
,
String
The name of the property
property
)

Implements groovy.lang.MetaObjectProtocol.getProperty.

Retrieves a property on the given object for the specified arguments.

private static String
getPropName(String methodName)

public MetaClassRegistry

Returns:

The registry
getRegistry
()

Returns the registry for this metaclass

public MetaMethod
getStaticMetaMethod(final String
The name of the MetaMethod
name
,
final Object[]
The argument types
argTypes
)

Implements groovy.lang.MetaObjectProtocol.getStaticMetaMethod.

Retrieves a static MetaMethod for the given name and argument values, using the types of the arguments to establish the chosen MetaMethod
private Object

Returns:

all the normal static methods available on this class for the given name
getStaticMethods
(final Class<?> sender, final String name)

Returns all the normal static methods on this class for the given name

protected Object
protected LinkedList<CachedClass>
private MetaMethod
public final CachedClass

Returns:

The cached class.
getTheCachedClass
()

Returns the cached class for this metaclass

public Class<T>

Returns:

The class contained by this metaclass
getTheClass
()

Implements groovy.lang.MetaObjectProtocol.getTheClass.

Returns the class this object this is the metaclass of.
public int

Returns:

The version of the contained class.
getVersion
()

Returns version of the contained Class

protected static long
handleMatches(long matchesDistance, LinkedList<E> matches, Object method, long dist)

public boolean

Returns:

true - if the method invocation is not done by the meta class itself
hasCustomInvokeMethod
()

indicates is the meta class method invocation for non-static methods is done through a custom invoker object.

public boolean

Returns:

true - if the method invocation is not done by the meta class itself
hasCustomStaticInvokeMethod
()

indicates is the meta class method invocation for static methods is done through a custom invoker object.

public MetaProperty
hasProperty(final Object
The object to inspect
obj
,
final String
The name of the property
name
)

Implements groovy.lang.MetaObjectProtocol.hasProperty.

Returns true of the implementing MetaClass has a property of the given name

Note that this method will only return true for realised properties and does not take into account implementation of getProperty or propertyMissing

public void
incVersion()

Increments version of the contained Class

private void
private void
private void
inheritStaticInterfaceFields(LinkedList<E> superClasses, Set<E> interfaces)

public synchronized void
initialize()

Implements groovy.lang.MetaClass.initialize.

Complete the initialisation process.
public Object
invokeConstructor(Object[]
The arguments to the constructor
arguments
)

Implements groovy.lang.MetaObjectProtocol.invokeConstructor.

Invokes a constructor for the given arguments.
private Object
invokeConstructor(Class<T> at, Object[] arguments)

public Object

Returns:

The result of the method invocation.
invokeMethod
(final Object
The object the method should be invoked on.
object
,
final String
The name of the method to invoke.
methodName
,
final Object
The arguments to the invoked method as null, a Tuple, an array or a single argument of any type.
arguments
)

Implements groovy.lang.MetaObjectProtocol.invokeMethod.

Invoke a method on the given object with the given arguments.
public Object

Returns:

The return value of the method
invokeMethod
(Object
The object which the method was invoked on
object
,
String
The name of the method
methodName
,
Object[]
The arguments to the method
originalArguments
)

Implements groovy.lang.MetaObjectProtocol.invokeMethod.

Invokes a method on the given receiver for the specified arguments.
public Object

Returns:

The return value of the method
invokeMethod
(Class<T>
The java.lang.Class instance that invoked the method
sender
,
Object
The object which the method was invoked on
object
,
String
The name of the method
methodName
,
Object[]
The arguments to the method
originalArguments
,
boolean
Whether the method is a call to a super class method
isCallToSuper
,
boolean
Whether the call was invoked from the inside or the outside of the class
fromInsideClass
)

Implements groovy.lang.MetaClass.invokeMethod.

Invokes a method on the given receiver for the specified arguments.

private Tuple2<Object, MetaMethod>
invokeMethod(MetaMethod method, Object delegate, Closure<V> closure, String methodName, Class<T>[] argClasses, Object[] originalArguments, Object owner)

private Object
invokeMethodClosure(final MethodClosure object, final Object[] arguments)

private static Object
invokeMethodOnGroovyObject(String methodName, Object[] originalArguments, Object owner)

public Object

Returns:

The result of the method invocation.
invokeMissingMethod
(final Object
The object the method should be invoked on.
instance
,
final String
The name of the method to invoke.
methodName
,
final Object[]
The arguments to the invoked method.
arguments
)

Implements groovy.lang.MetaClass.invokeMissingMethod.

Invoke a missing method on the given object with the given arguments.
private Object
invokeMissingMethod(final Object instance, final String methodName, final Object[] arguments, final RuntimeException original, final boolean isCallToSuper)

public Object

Returns:

The result of the method invocation.
invokeMissingProperty
(final Object
The object the method should be invoked on.
instance
,
final String
The name of the property to invoke.
propertyName
,
final Object
The (optional) new value for the property
optionalValue
,
final boolean
Whether the method is a getter
isGetter
)

Implements groovy.lang.MetaClass.invokeMissingProperty.

Invoke a missing property on the given object with the given arguments.
private Object
invokePropertyOrMissing(final Object object, final String methodName, final Object[] originalArguments, final boolean fromInsideClass, final boolean isCallToSuper)

Tries to find a callable property and make the call.

private static Object
invokeStaticClosureProperty(Object[] originalArguments, Object prop)

public Object
invokeStaticMethod(Object
An instance of the class returned by the getTheClass() method or the class itself
object
,
String
The name of the method
methodName
,
Object[]
The arguments to the method
arguments
)

Implements groovy.lang.MetaObjectProtocol.invokeStaticMethod.

Invokes a static method on the given Object with the given name and arguments.
private Object
invokeStaticMissingMethod(Class<T> sender, String methodName, Object[] arguments)

protected Object

Returns:

The value in the case of a getter or a MissingPropertyException
invokeStaticMissingProperty
(Object
The instance
instance
,
String
The name of the property
propertyName
,
Object
The value in the case of a setter
optionalValue
,
boolean
True if its a getter
isGetter
)

Hook to deal with the case of MissingProperty for static properties.

private static boolean
isBeanDerivative(Class<T> theClass)

private static boolean
private static boolean
public boolean

Returns:

true if this is a groovy class, false otherwise.
isGroovyObject
()

Return whether the class represented by this metaclass instance is an instance of the GroovyObject class

protected boolean
private static boolean
public boolean

Returns:

false
isModified
()

Implements groovy.lang.MutableMetaClass.isModified.

Returns whether this MetaClassImpl has been modified.
public boolean
private static boolean
private MetaClass
private static MetaProperty
makeReplacementMetaProperty(MetaProperty mp, String propName, boolean isGetter, MetaMethod propertyMethod)

private void
private static MetaMethod
mostSpecific(MetaMethod method, MetaMethod newMethod, Class<T> instanceKlazz)

protected void
protected void
protected void
protected void
protected void
protected void
public MetaMethod

Returns:

a matching MetaMethod or null
pickMethod
(String
the name of the method to pick
methodName
,
Class<T>[]
the method arguments
arguments
)

Implements groovy.lang.MetaClass.pickMethod.

Selects a method by name and argument classes.
private MetaMethod
pickStaticMethod(String methodName, Class<T>[] arguments)

private void
populateMethods(final List<CachedClass> superClasses, final CachedClass firstGroovySuper)

protected synchronized void
private void
private void
replaceWithMOPCalls(final CachedMethod[] mopMethods)

public List<E>
respondsTo(final Object
The object to inspect
obj
,
final String
The name of the method of interest
name
,
final Object[]
The argument types to match against
argTypes
)

Implements groovy.lang.MetaObjectProtocol.respondsTo.

Returns an object satisfying Groovy truth if the implementing MetaClass responds to a method with the given name and arguments types.

public List<E>
respondsTo(final Object
The object to inspect
obj
,
final String
The name of the method of interest
name
)

Implements groovy.lang.MetaObjectProtocol.respondsTo.

Returns an object satisfying Groovy truth if the implementing MetaClass responds to a method with the given name regardless of arguments.

public Constructor<T>
retrieveConstructor(Class<T>[] arguments)

public MetaMethod
retrieveConstructor(Object[] arguments)

This is a helper method added in Groovy 2.1.0, which is used only by indy.

private Object
retrieveNamedArgCompatibleConstructor(Class<T>[] origArgTypes, Object[] origArgs)

public MetaMethod
retrieveStaticMethod(String methodName, Object[] arguments)

private static boolean
sameClasses(Class<T>[] params, Class<T>[] arguments)

private static MetaMethod
searchInterfacesForMetaMethod(Class<T> instanceKlazz, String methodName, Class<T>[] arguments, MetaClass metaClass)

private MetaBeanProperty
searchInterfacesForMetaProperty(String propertyName, Class<T>[] interfaces)

public int
selectConstructorAndTransformArguments(int
The number of constructors
numberOfConstructors
,
Object[]
The arguments
arguments
)

Implements groovy.lang.MetaClass.selectConstructorAndTransformArguments.

Internal method to support Groovy runtime.
private int
selectConstructorAndTransformArguments0(final int numberOfConstructors, Object[] arguments)

private int

Returns:

a hash used to identify the constructor to be called
selectConstructorAndTransformArguments1
(Object[]
the actual constructor call arguments
arguments
)

Constructor selection algorithm for Groovy 2.1.9+.

public void
setAttribute(final Class<T>
The java.lang.Class instance that is mutating the property
sender
,
final Object
The Object which the property is being set on
object
,
final String
The name of the attribute,
attribute
,
final Object
The new value of the attribute to set
newValue
,
final boolean
Whether the call is to a super class property
useSuper
,
final boolean
Whether the call was invoked from the inside or the outside of the class
fromInsideClass
)

Implements groovy.lang.MetaClass.setAttribute.

Sets an attribute on the given receiver for the specified arguments.

public void
setAttribute(final Object
The object to get the attribute from
object
,
final String
The name of the attribute
attribute
,
final Object
The new value of the attribute
newValue
)

Implements groovy.lang.MetaObjectProtocol.setAttribute.

Sets the value of an attribute (field).
protected void
setInitialized(boolean initialized)

public void
setPermissivePropertyAccess(boolean permissivePropertyAccess)

public void
setProperties(Object bean, Map<K, V> map)

Sets a number of bean properties from the given Map where the keys are the String names of properties and the values are the values of the properties to set

public void
setProperty(Class<T>
The java.lang.Class instance that is mutating the property
sender
,
Object
The Object which the property is being set on
object
,
String
The name of the property
name
,
Object
The new value of the property to set
newValue
,
boolean
Whether the call is to a super class property
useSuper
,
boolean
Whether the call was invoked from the inside or the outside of the class.
fromInsideClass
)

Implements groovy.lang.MetaClass.setProperty.

Retrieves a property on the given receiver for the specified arguments.

public void
setProperty(Object
The Object which the property is being retrieved from
object
,
String
The name of the property
property
,
Object
The new value
newValue
)

Implements groovy.lang.MetaObjectProtocol.setProperty.

Sets a property on the given object for the specified arguments.

private void
setupProperties(PropertyDescriptor[]
the property descriptors
propertyDescriptors
)

This will build up the property map (Map of MetaProperty objects, keyed on property name).

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of this metaclass
private MetaMethod
tryListParamMetaMethod(Class<T> sender, String methodName, boolean isCallToSuper, Object[] arguments)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait