protected final IFAState getNextMatchedScopeState(IFAState currentState, N node) {
    IFAState nextState = scopeDFA.getNextState(currentState, node.getName());
    if (nextState == null && node.getAlias() != null) {
      return scopeDFA.getNextState(currentState, node.getAlias());
    }
    return nextState;
  }
The method used for generating the result based on the matched node.
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/schema/tree/AbstractTreeVisitor.java