aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/prelude/semantics/rule/AddingProductionRule.java
blob: 202ea904c3039cc29aa1bee4be827f44e4597cc4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.prelude.semantics.rule;

/**
 * A production rule which <i>adds</i> the production to the matched query
 *
 * @author bratseth
 */
public class AddingProductionRule extends ProductionRule {

    protected String getSymbol() { return "+>"; }

    public void setProduction(ProductionList productionList) {
        super.setProduction(productionList);
        productionList.setReplacing(false);
    }

}