public static String getNodeName(ASTNode node) {
    return Optional.ofNullable(node)
        .map(ASTNode::getText).map(text -> text.substring("TOK_".length()))
        .orElse("");
  }
Returns the root node's string representation without the "TOK_" prefix.
@param node the ASTNode
ql/src/java/org/apache/hadoop/hive/ql/parse/ParseUtils.java