@Override
    public final String toString() {
        return toInnerString() + (getWeight()!=100 ? ("!" + getWeight()) : "");
    }
All instances of this produces a parseable string output
container-search/src/main/java/com/yahoo/prelude/semantics/rule/Production.java