public final String toInnerString() {
        if (termType == null)
            return toInnerTermString();
        else
            return termType.toSign() + toInnerTermString();
    }
All instances of this produces a parseable string output
container-search/src/main/java/com/yahoo/prelude/semantics/rule/TermProduction.java