Package com.yahoo.prelude.semantics.rule
Class ReplacingProductionRule
- java.lang.Object
-
- com.yahoo.prelude.semantics.rule.ProductionRule
-
- com.yahoo.prelude.semantics.rule.ReplacingProductionRule
-
public class ReplacingProductionRule extends ProductionRule
A production rule which replaces matched terms by the production- Author:
- bratseth
-
-
Constructor Summary
Constructors Constructor Description ReplacingProductionRule()
-
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
produce(RuleEvaluation e)
Carries out the production of this rule-
Methods inherited from class com.yahoo.prelude.semantics.rule.ProductionRule
getCondition, getProduction, isLoop, makeReferences, matches, matchReferences, setCondition, setProduction, toString
-
-
-
-
Method Detail
-
produce
public void produce(RuleEvaluation e)
Carries out the production of this rule- Overrides:
produce
in classProductionRule
-
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
-
-