Gets the getter for a property as a Method object.

@param name the name of the property
@return the getter Method
@throws NoSuchMethodException when a getter method cannot be found
492546
public Method getGetter(String name) throws NoSuchMethodException {
        Method method = getterMethods.get(name);
        if (method == null) {
            throw new NoSuchMethodException("There is no READABLE property named '" + name +
                    "' in class '" + className + "'");
        }
        return method;
    }
484633
public function getProperty($name)
	{
		$method = 'get' . ucfirst($name);

		if (! method_exists($this, $method)) {
			$this->unlockAll();
			$class = get_class($this);
			throw new \RuntimeException("Could not found getter function for object	$class property $name");
		}

		$value = $this->$method();

		return $value;
	}
591283
public Method getMethod(final String name) {
      if (StringUtils.isNullOrBlank(name)) {
         return null;
      }
      return getMethods().stream().filter(method -> method.getName().equals(name)).findFirst().orElse(null);
   }
757600
@Nullable
  private String getProperty(final String name) {
    assert name != null;
    ensureConfigured();
    return evaluate(System.getProperty(name, props.getProperty(name)));
  }
724643
@SuppressWarnings("unchecked")
    public static <T> T getProperty(String name) {
        return (T) getRequest().getProperty(name);
    }
286496
public Object get(final String name) {
        Object bean = this.beans.get(name);
        if (bean != null) {
            return bean;
        }
        return resolveBeanIfAbsent(name);
    }
1139640
public static Method findProperty(Class<?> clazz, String name) {
    	assert clazz != null;
    	assert name != null;
        Class<?> entityClass = clazz;
        while (entityClass != null) {
            Method[] methods = (entityClass.isInterface() ? entityClass.getMethods() : entityClass.getDeclaredMethods());
            for (Method method : methods) {
                if (method.getName().equals("get"+ StringUtils.capitalize(name)) ||
                    method.getName().equals("is"+ StringUtils.capitalize(name))) {
                    return method;
                }
            }
            entityClass = entityClass.getSuperclass();
        }
        return null;
    }
33223
public <T extends AbstractSchemaProperty> T get(final Class<T> clazz, final String name) {
        Set<T> propertyCollection = get(clazz);
        for (T property : propertyCollection) {
            if (property.getName().equals(name)) {
                return property;
            }
        }
        return null;
    }
1099609
public static Method getGetterPropertyMethod(Class<?> type,
			String propertyName) {
		String sourceMethodName = "get"
				+ BeanUtils.capitalizePropertyName(propertyName);

		Method sourceMethod = BeanUtils.getMethod(type, sourceMethodName);

		if (sourceMethod == null) {
			sourceMethodName = "is"
					+ BeanUtils.capitalizePropertyName(propertyName);
			sourceMethod = BeanUtils.getMethod(type, sourceMethodName);
			if (sourceMethod != null
					&& sourceMethod.getReturnType() != Boolean.TYPE) {
				sourceMethod = null;
			}
		}
		return sourceMethod;
	}
594411
@SuppressWarnings({"unused", "WeakerAccess"})
    public Object getProperty(String name) {
        if (!this.config.isPersonalizationEnabled()) return null;
        return getLocalDataStore().getProfileProperty(name);
    }
171083
public MethodInfo get(String beanName, String methodName) {
		return this.cache.get(new Key(beanName, methodName));
	}
495378
public MetaMethod getMethod(String name, Class[] parameters) {
        return impl.pickMethod(name, parameters);
    }
851391
public T get(final String name) {
        for (final T i : this) {
            if (i.getName().equals(name)) {
                return i;
            }
        }
        return null;
    }
1168264
Class<?> getGetterPropertyType( Clazz<?> clazz, String name )
	{
		String getterName = "get" + capitalizeFirstLetter( name );
		Method getter = clazz.getMethod( getterName );
		if( getter != null )
			return getter.getReturnType();

		// try direct field access
		Field field = clazz.getAllField( name );
		if( field != null )
			return field.getType();

		return null;
	}
33501
public static Object getProperty(Object obj, String name) {
		if (obj == null)
			throw new NullPointerException("Object cannot be null");
		if (name == null)
			throw new NullPointerException("Property name cannot be null");

		Class<?> objClass = obj.getClass();

		// Search in fields
		for (Field field : objClass.getFields()) {
			try {
				if (matchField(field, name))
					return field.get(obj);
			} catch (Throwable t) {
				// Ignore exceptions
			}
		}

		// Search in properties
		name = "get" + name;
		for (Method method : objClass.getMethods()) {
			try {
				if (matchPropertyGetter(method, name))
					return method.invoke(obj);
			} catch (Throwable t) {
				// Ignore exceptions
			}
		}

		return null;
	}
552225
@Override
    public <T> T get(String name) {
        return (T) config.get(name);
    }
710873
public static Method getMethod(final Class cls, final String methodName) {
		return getMethod(cls, methodName, false);
	}