Package com.yahoo.prelude.semantics.rule
Class SequenceCondition
java.lang.Object
com.yahoo.prelude.semantics.rule.Condition
com.yahoo.prelude.semantics.rule.CompositeCondition
com.yahoo.prelude.semantics.rule.SequenceCondition
A set of conditions which much match the query in sequence
- Author:
- bratseth
-
Nested Class Summary
Nested classes/interfaces inherited from class com.yahoo.prelude.semantics.rule.Condition
Condition.Anchor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this condition matches the given evaluation at the current location of the evaluation.All instances of this produces a parseable string outputprotected booleanWhether this should be output with parentheses, default is parent!Methods inherited from class com.yahoo.prelude.semantics.rule.CompositeCondition
addCondition, allSubConditionsMatches, conditionIterator, conditions, conditionSize, conditionsToString, getCondition, hasOpenChoicepoint, makeReferences, postMatchHook, preMatchHook, removeCondition, setCondition, toInnerStringMethods inherited from class com.yahoo.prelude.semantics.rule.Condition
getAnchor, getContextName, getLabel, getLabelString, getMatchInfo, getMatchInfoString, getNameSpace, getParent, isDefaultContextName, isReferable, labelMatches, labelMatches, matches, matchesEndAnchor, matchesStartAnchor, setAnchor, setContextName, setLabel, setNameSpace, toString, traceResult
-
Constructor Details
-
SequenceCondition
public SequenceCondition()
-
-
Method Details
-
doesMatch
Description copied from class:ConditionReturns 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. -
useParentheses
protected boolean useParentheses()Description copied from class:CompositeConditionWhether this should be output with parentheses, default is parent!=null- Overrides:
useParenthesesin classCompositeCondition
-
toInnerString
Description copied from class:ConditionAll instances of this produces a parseable string output- Specified by:
toInnerStringin classCondition
-