Gunnar Morling commented on Improvement BVAL-336

IRC, being able to retrieve the kind of a violation (parameter, return value etc.) was the original motivation for adding Node#getElementDescriptor(). This requirement would be fulfilled by offering getKind() directly on Node instead of the element descriptor.

As per the API docs only sub paths may be created using that API, so there seems to be no use case for creating nodes representing methods, parameters etc. As only sub paths can be created, getKind() might always return Kind.PROPERTY for nodes added via the API. In that case we would not even have to change or extend the node builder API.

Leaves the question how to expose the parameter index. Should we create a new method or just re-use Node#getIndex()?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira