]> git.basschouten.com Git - openhab-addons.git/blob
8c69214749f26ea573f4ec0608a60ae8e43ffaeb
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.deutschebahn.internal.filter;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16
17 /**
18  * Visitor for {@link FilterToken}.
19  * 
20  * @author Sönke Küper - Initial Contribution.
21  *
22  * @param <R> Return type.
23  */
24 @NonNullByDefault
25 public interface FilterTokenVisitor<R> {
26
27     /**
28      * Handles {@link ChannelNameEquals}.
29      */
30     R handle(ChannelNameEquals equals) throws FilterParserException;
31
32     /**
33      * Handles {@link OrOperator}.
34      */
35     R handle(OrOperator operator) throws FilterParserException;
36
37     /**
38      * Handles {@link AndOperator}.
39      */
40     R handle(AndOperator operator) throws FilterParserException;
41
42     /**
43      * Handles {@link BracketOpenToken}.
44      */
45     R handle(BracketOpenToken token) throws FilterParserException;
46
47     /**
48      * Handles {@link BracketCloseToken}.
49      */
50     R handle(BracketCloseToken token) throws FilterParserException;
51 }