Class LiteralCondition

java.lang.Object
com.yahoo.prelude.semantics.rule.Condition
com.yahoo.prelude.semantics.rule.LiteralCondition

public class LiteralCondition extends Condition
A condition which is always true, and which has its own value as return value
Author:
bratseth
  • Constructor Details

    • LiteralCondition

      public LiteralCondition(String value)
  • Method Details

    • 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.
      Specified by:
      doesMatch in class Condition
    • setValue

      public void setValue(String value)
    • getValue

      public String getValue()
    • toInnerString

      public String toInnerString()
      Description copied from class: Condition
      All instances of this produces a parseable string output
      Specified by:
      toInnerString in class Condition