public String toRankingExpression() {
        return nodes.get(begin).toRankingExpression();
    }
Returns a ranking expression equivalent of this tree.
searchlib/src/main/java/com/yahoo/searchlib/treenet/rule/Tree.java