Class ExpressionIdentifier

java.lang.Object
org.openhab.core.voice.text.Expression
org.openhab.core.voice.text.ExpressionIdentifier

public final class ExpressionIdentifier extends Expression
Expression that successfully parses, if a thing identifier token is found. This class is immutable.
Author:
Tilman Kamp - Initial contribution
  • Constructor Details

    • ExpressionIdentifier

      public ExpressionIdentifier(AbstractRuleBasedInterpreter interpreter)
      Constructs a new instance.
      Parameters:
      interpreter - the interpreter it belongs to. Used for dynamically fetching item name tokens
    • ExpressionIdentifier

      public ExpressionIdentifier(AbstractRuleBasedInterpreter interpreter, Expression stopper)
      Constructs a new instance.
      Parameters:
      interpreter - the interpreter it belongs to. Used for dynamically fetching item name tokens
      stopper - Expression that should not match, if the current token should be accepted as identifier
  • Method Details