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

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

    • GetMethodMetaProperty

      public GetMethodMetaProperty(String name, MetaMethod theMethod)
      Constructs a new GetMethodMetaProperty.
      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 with the property name.
      Overrides:
      getProperty in class MethodMetaProperty
      Parameters:
      object - the object to get the property from
      Returns:
      the property value (result of metamethod invocation)