@Override
  public String toString() {
    return "{pattern='"
        + pattern
        + "', isTreeModelDataAllowedToBeCaptured="
        + isTreeModelDataAllowedToBeCaptured
        + '}';
  }
Check if a full path with device and measurement can be matched by pattern.

<p>NOTE: this is only called when {@link TreePattern#mayOverlapWithDevice} is {@code true}.
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/datastructure/pattern/TreePattern.java