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