2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
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
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.deutschebahn.internal.filter;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * Visitor for {@link FilterToken}.
20 * @author Sönke Küper - Initial Contribution.
22 * @param <R> Return type.
25 public interface FilterTokenVisitor<R> {
28 * Handles {@link ChannelNameEquals}.
30 R handle(ChannelNameEquals equals) throws FilterParserException;
33 * Handles {@link OrOperator}.
35 R handle(OrOperator operator) throws FilterParserException;
38 * Handles {@link AndOperator}.
40 R handle(AndOperator operator) throws FilterParserException;
43 * Handles {@link BracketOpenToken}.
45 R handle(BracketOpenToken token) throws FilterParserException;
48 * Handles {@link BracketCloseToken}.
50 R handle(BracketCloseToken token) throws FilterParserException;