Class MethodMetaProperty.GetBeanMethodMetaProperty
java.lang.Object
groovy.lang.MetaProperty
org.codehaus.groovy.runtime.metaclass.MethodMetaProperty
org.codehaus.groovy.runtime.metaclass.MethodMetaProperty.GetBeanMethodMetaProperty
- All Implemented Interfaces:
MetaMember
- Enclosing class:
- MethodMetaProperty
Wrapper for a method realizing the property getter.
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
ConstructorsConstructorDescriptionGetBeanMethodMetaProperty(String name, MetaMethod theMethod) Constructs a new GetBeanMethodMetaProperty. -
Method Summary
Modifier and TypeMethodDescriptiongetProperty(Object object) Gets the property value by invoking the metamethod without arguments.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
-
GetBeanMethodMetaProperty
Constructs a new GetBeanMethodMetaProperty.- Parameters:
name- the property nametheMethod- the metamethod to use for getting the property
-
-
Method Details
-
getProperty
Gets the property value by invoking the metamethod without arguments. Typically used for getter methods that take no arguments.- Overrides:
getPropertyin classMethodMetaProperty- Parameters:
object- the object to get the property from- Returns:
- the property value (result of metamethod invocation)
-