Class ExpressionMatch

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

public final class ExpressionMatch extends Expression
Expression that successfully parses, if a given string constant is found. This class is immutable.
Author:
Tilman Kamp - Initial contribution
  • Constructor Details

    • ExpressionMatch

      public ExpressionMatch(String pattern)
      Constructs a new instance.
      Parameters:
      pattern - the token that has to match for successful parsing
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getPattern

      public String getPattern()
      Returns:
      the pattern