Package com.yahoo.prelude.semantics.rule
Class TermCondition
- java.lang.Object
-
- com.yahoo.prelude.semantics.rule.Condition
-
- com.yahoo.prelude.semantics.rule.TermCondition
-
public class TermCondition extends Condition
A term in a rule- Author:
- bratseth
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.yahoo.prelude.semantics.rule.Condition
Condition.Anchor
-
-
Constructor Summary
Constructors Constructor Description TermCondition()
Creates an invalid termTermCondition(java.lang.String term)
TermCondition(java.lang.String label, java.lang.String term)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
doesMatch(RuleEvaluation e)
Returns whether this condition matches the given evaluation at the current location of the evaluation.java.lang.String
getTerm()
void
setTerm(java.lang.String term)
java.lang.String
toInnerString()
All instances of this produces a parseable string output-
Methods inherited from class com.yahoo.prelude.semantics.rule.Condition
getAnchor, getContextName, getLabel, getLabelString, getMatchInfo, getMatchInfoString, getNameSpace, getParent, hasOpenChoicepoint, isDefaultContextName, isReferable, labelMatches, labelMatches, makeReferences, matches, matchesEndAnchor, matchesStartAnchor, postMatchHook, preMatchHook, setAnchor, setContextName, setLabel, setNameSpace, toString, traceResult
-
-
-
-
Method Detail
-
getTerm
public java.lang.String getTerm()
-
setTerm
public void setTerm(java.lang.String term)
-
doesMatch
protected boolean doesMatch(RuleEvaluation e)
Description copied from class:Condition
Returns whether this condition matches the given evaluation at the current location of the evaluation. If there is a match, the evaluation must be advanced to the location beyond the matching item(s) before this method returns.
-
toInnerString
public java.lang.String toInnerString()
Description copied from class:Condition
All instances of this produces a parseable string output- Specified by:
toInnerString
in classCondition
-
-