Class MethodMetaProperty.GetMethodMetaProperty
java.lang.Object
groovy.lang.MetaProperty
org.codehaus.groovy.runtime.metaclass.MethodMetaProperty
org.codehaus.groovy.runtime.metaclass.MethodMetaProperty.GetMethodMetaProperty
- All Implemented Interfaces:
MetaMember
- Enclosing class:
- MethodMetaProperty
Wrapper for a method realizing the property get.
WARNING: This class is for internal use only, don't use it for your APIs
-
Nested Class Summary
Nested classes/interfaces inherited from class org.codehaus.groovy.runtime.metaclass.MethodMetaProperty
MethodMetaProperty.GetBeanMethodMetaProperty, MethodMetaProperty.GetMethodMetaProperty -
Field Summary
Fields inherited from class groovy.lang.MetaProperty
name, PROPERTY_SET_PREFIX, type -
Constructor Summary
ConstructorsConstructorDescriptionGetMethodMetaProperty(String name, MetaMethod theMethod) Constructs a new GetMethodMetaProperty. -
Method Summary
Modifier and TypeMethodDescriptiongetProperty(Object object) Gets the property value by invoking the metamethod with the property name.Methods inherited from class org.codehaus.groovy.runtime.metaclass.MethodMetaProperty
getMetaMethod, setPropertyMethods inherited from class groovy.lang.MetaProperty
getGetterName, getModifiers, getName, getSetterName, getTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface groovy.lang.MetaMember
isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isSynthetic
-
Constructor Details
-
GetMethodMetaProperty
Constructs a new GetMethodMetaProperty.- Parameters:
name- the property nametheMethod- the metamethod to use for getting the property
-
-
Method Details
-
getProperty
Gets the property value by invoking the metamethod with the property name.- Overrides:
getPropertyin classMethodMetaProperty- Parameters:
object- the object to get the property from- Returns:
- the property value (result of metamethod invocation)
-