Package com.yahoo.prelude.semantics.rule
Class AddingProductionRule
- java.lang.Object
-
- com.yahoo.prelude.semantics.rule.ProductionRule
-
- com.yahoo.prelude.semantics.rule.AddingProductionRule
-
public class AddingProductionRule extends ProductionRule
A production rule which adds the production to the matched query- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description AddingProductionRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getSymbol()
Returns the symbol of this production rule.void
setProduction(ProductionList productionList)
Sets what is produced when this rule is true-
Methods inherited from class com.yahoo.prelude.semantics.rule.ProductionRule
getCondition, getProduction, isLoop, makeReferences, matches, matchReferences, produce, setCondition, toString
-
-
-
-
Method Detail
-
getSymbol
protected java.lang.String getSymbol()
Description copied from class:ProductionRule
Returns the symbol of this production rule. All rules are on the formcondition symbol production
.- Specified by:
getSymbol
in classProductionRule
-
setProduction
public void setProduction(ProductionList productionList)
Description copied from class:ProductionRule
Sets what is produced when this rule is true- Overrides:
setProduction
in classProductionRule
-
-