class QueryModelVisitor extends RebuildingVisitor {

    public static ASTJexlScript applyModel(ASTJexlScript script, QueryModel queryModel, Set<String> validFields) {
        QueryModelVisitor visitor = new QueryModelVisitor(queryModel, validFields);
        
        return (ASTJexlScript) script.jjtAccept(visitor, null);
    }

    public  QueryModelVisitor(QueryModel queryModel, Set<String> validFields);

}