Package org.openhab.core.voice.text
Class ExpressionIdentifier
java.lang.Object
org.openhab.core.voice.text.Expression
org.openhab.core.voice.text.ExpressionIdentifier
Expression that successfully parses, if a thing identifier token is found. This class is immutable.
- Author:
- Tilman Kamp - Initial contribution
-
Constructor Summary
ConstructorDescriptionExpressionIdentifier
(AbstractRuleBasedInterpreter interpreter) Constructs a new instance.ExpressionIdentifier
(AbstractRuleBasedInterpreter interpreter, Expression stopper) Constructs a new instance. -
Method Summary
-
Constructor Details
-
ExpressionIdentifier
Constructs a new instance.- Parameters:
interpreter
- the interpreter it belongs to. Used for dynamically fetching item name tokens
-
ExpressionIdentifier
Constructs a new instance.- Parameters:
interpreter
- the interpreter it belongs to. Used for dynamically fetching item name tokensstopper
- Expression that should not match, if the current token should be accepted as identifier
-
-
Method Details