containsWithinRange

Checks whether the range of the given Node is contained within the range of this NodeWithRange. Note that any range contains itself, i.e., for any node n, we have that n.containsWithinRange(n) == true. Notice: This method compares two nodes based on their ranges only, but not based on the storage unit of the two nodes. Therefore, this method may return true for a node that is contained in a different file than this NodeWithRange. You may wish to use isAncestorOf instead.

Return

true if the given node's range is contained within this node's range, and false otherwise.

Parameters

other

the node whose range should be compared with this node's range.