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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringReturns the symbol of this production rule.voidsetProduction(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:ProductionRuleReturns the symbol of this production rule. All rules are on the formcondition symbol production.- Specified by:
getSymbolin classProductionRule
-
setProduction
Description copied from class:ProductionRuleSets what is produced when this rule is true- Overrides:
setProductionin classProductionRule
-