Package com.yahoo.prelude.semantics.rule
Class TermCondition
java.lang.Object
com.yahoo.prelude.semantics.rule.Condition
com.yahoo.prelude.semantics.rule.TermCondition
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
ConstructorDescriptionTermCondition
(String term, RuleBaseLinguistics linguistics) TermCondition
(String label, String term, RuleBaseLinguistics linguistics) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Returns whether this condition matches the given evaluation at the current location of the evaluation.term()
All instances of this produces a parseable string outputMethods 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
-
Constructor Details
-
TermCondition
-
TermCondition
-
-
Method Details
-
doesMatch
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. -
term
-
toInnerString
Description copied from class:Condition
All instances of this produces a parseable string output- Specified by:
toInnerString
in classCondition
-