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

public static class MethodMetaProperty.GetBeanMethodMetaProperty extends MethodMetaProperty
Wrapper for a method realizing the property getter. WARNING: This class is for internal use only, don't use it for your APIs
  • Constructor Details

    • GetBeanMethodMetaProperty

      public GetBeanMethodMetaProperty(String name, MetaMethod theMethod)
      Constructs a new GetBeanMethodMetaProperty.
      Parameters:
      name - the property name
      theMethod - the metamethod to use for getting the property
  • Method Details

    • getProperty

      public Object getProperty(Object object)
      Gets the property value by invoking the metamethod without arguments. Typically used for getter methods that take no arguments.
      Overrides:
      getProperty in class MethodMetaProperty
      Parameters:
      object - the object to get the property from
      Returns:
      the property value (result of metamethod invocation)