Package com.yahoo.prelude.semantics.rule
Class AddingProductionRule
java.lang.Object
com.yahoo.prelude.semantics.rule.ProductionRule
com.yahoo.prelude.semantics.rule.AddingProductionRule
A production rule which adds the production to the matched query
- Author:
- bratseth
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns the symbol of this production rule.void
setProduction
(ProductionList productionList) Sets what is produced when this rule is trueMethods inherited from class com.yahoo.prelude.semantics.rule.ProductionRule
getCondition, getProduction, isLoop, makeReferences, matches, matchReferences, produce, setCondition, toString
-
Constructor Details
-
AddingProductionRule
public AddingProductionRule()
-
-
Method Details
-
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
Description copied from class:ProductionRule
Sets what is produced when this rule is true- Overrides:
setProduction
in classProductionRule
-