Package com.yahoo.prelude.semantics.rule
Class ConditionReference
java.lang.Object
com.yahoo.prelude.semantics.rule.Condition
com.yahoo.prelude.semantics.rule.ConditionReference
A reference to a named condition
- Author:
- bratseth
-
Nested Class Summary
Nested classes/interfaces inherited from class com.yahoo.prelude.semantics.rule.Condition
Condition.Anchor -
Constructor Summary
ConstructorsConstructorDescriptionConditionReference(String conditionName) ConditionReference(String label, String conditionName) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this condition matches the given evaluation at the current location of the evaluation.Returns the name of the referenced rule, never nullprotected booleanReturns whether there is an open choice in this or any of its subconditions.protected booleanvoidmakeReferences(RuleBase ruleBase) Override if references needs to be set in this condition of its childrenvoidsetConditionName(String name) protected StringAll 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, isReferable, labelMatches, labelMatches, matches, matchesEndAnchor, matchesStartAnchor, postMatchHook, preMatchHook, setAnchor, setContextName, setLabel, setNameSpace, toString, traceResult
-
Constructor Details
-
ConditionReference
-
ConditionReference
-
-
Method Details
-
getConditionName
Returns the name of the referenced rule, never null -
setConditionName
-
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. -
makeReferences
Description copied from class:ConditionOverride if references needs to be set in this condition of its children- Overrides:
makeReferencesin classCondition
-
hasOpenChoicepoint
Description copied from class:ConditionReturns whether there is an open choice in this or any of its subconditions. Returns false by default, must be overriden by conditions which may generate choices open accross multiple calls to matches, or contain such conditions.- Overrides:
hasOpenChoicepointin classCondition
-
isDefaultContextName
protected boolean isDefaultContextName()- Overrides:
isDefaultContextNamein classCondition
-
toInnerString
Description copied from class:ConditionAll instances of this produces a parseable string output- Specified by:
toInnerStringin classCondition
-