Fix implementation of isFindBoundary, add some doc

This commit is contained in:
Clément Fournier
2018-05-18 21:00:35 +02:00
parent d1ce28d0c9
commit c10d920248
2 changed files with 9 additions and 1 deletions

View File

@@ -118,6 +118,14 @@ public interface Node {
void setDataFlowNode(DataFlowNode dataFlowNode);
/**
* Returns true if this node is considered a boundary by traversal methods.
* Traversal methods such as {@link #getFirstDescendantOfType(Class)} don't
* look past such boundaries by default, which is usually the expected thing
* to do. For example, in Java, lambdas and nested classes are considered
* find boundaries.
*/
boolean isFindBoundary();