public Value freeze() {
        frozen = true;
        return this;
    }
Irreversibly makes this immutable. Overriders must always call super.freeze() and return this

@return this for convenience
searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/evaluation/Value.java