Populate xpath/ hierarchy
[yangtools.git] / xpath / yang-xpath-api / src / main / java / org / opendaylight / yangtools / yang / xpath / api / YangPredicateAware.java
1 /*
2  * Copyright (c) 2018 Pantheon Technologies, s.r.o.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.yangtools.yang.xpath.api;
9
10 import com.google.common.annotations.Beta;
11 import com.google.common.collect.ImmutableSet;
12 import java.util.Set;
13 import org.opendaylight.yangtools.yang.xpath.api.YangLocationPath.Step;
14
15 /**
16  * Common interface for {@link YangFilterExpr} and {@link Step}, both of which can contain predicates. Predicates are
17  * expressed in terms of {@link YangExpr}.
18  *
19  * @author Robert Varga
20  */
21 @Beta
22 public interface YangPredicateAware {
23     default Set<YangExpr> getPredicates() {
24         return ImmutableSet.of();
25     }
26 }