Skip to content

Commit

Permalink
fixup! add support to traverse JavaType signature
Browse files Browse the repository at this point in the history
Review: Extend Javadoc to explain that the traversal
happens depth first.

Signed-off-by: Peter Gafert <[email protected]>
  • Loading branch information
codecholeric committed Apr 7, 2024
1 parent 44cf60c commit 07bf2cd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ public Result visitParameterizedType(JavaParameterizedType type) {
* Serializable String
* </code></pre>
* For every node visited the respective method of the provided {@code visitor}
* will be invoked. At every step it is possible to continue the traversal
* will be invoked. The traversal happens depth first, i.e. in this case the {@code visitor}
* would be invoked for all types down to {@code Serializable} before visiting the {@code String[]}
* array type of the second branch. At every step it is possible to continue the traversal
* by returning {@link SignatureVisitor.Result#CONTINUE CONTINUE} or stop at that point by
* returning {@link SignatureVisitor.Result#STOP STOP}.<br><br>
* Note that the traversal will continue to traverse bounds of type variables,
Expand Down

0 comments on commit 07bf2cd

Please sign in to comment.