]> git.basschouten.com Git - openhab-addons.git/blob
1d1440d65c85c09c962fd212e93c7689c97ab8ee
[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     public abstract R handle(ChannelNameEquals equals) throws FilterParserException;
31
32     /**
33      * Handles {@link OrOperator}.
34      */
35     public abstract R handle(OrOperator operator) throws FilterParserException;
36
37     /**
38      * Handles {@link AndOperator}.
39      */
40     public abstract R handle(AndOperator operator) throws FilterParserException;
41
42     /**
43      * Handles {@link BracketOpenToken}.
44      */
45     public abstract R handle(BracketOpenToken token) throws FilterParserException;
46
47     /**
48      * Handles {@link BracketCloseToken}.
49      */
50     public abstract R handle(BracketCloseToken token) throws FilterParserException;
51 }