gunnarmorling/beanvalidation-spec — comment on commit ecc902c548ce9830f1aa28cadffe6d721ffaab82
File: specbook/en/modules/validation-api.xml line 789
By gunnarmorling:

> So you flattenize method and their parameter / return value right?

Right. The general idea was to have one node instance in the path representing the parameter or return value which either hosts the violated constraint or is traversed (annotated with `@Value`).

If we're talking about return value validation, `getMethodDescriptor()` or `getGetConstructorDescriptor()` returns the concerned method/constructor, while `getParameterDescriptor()` returns `null`. If we're talking about parameter value validation, `getMethodDescriptor()` or `getGetConstructorDescriptor()` returns the concerned method/constructor and `getParameterDescriptor()` returns the concerned parameter.