Merge branch 'master' of ../controller
[yangtools.git] / yang / yang-data-jaxen / src / main / java / org / opendaylight / yangtools / yang / data / jaxen / ExprListener.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  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.data.jaxen;
9
10 import java.util.Optional;
11 import org.jaxen.expr.BinaryExpr;
12 import org.jaxen.expr.FilterExpr;
13 import org.jaxen.expr.FunctionCallExpr;
14 import org.jaxen.expr.LiteralExpr;
15 import org.jaxen.expr.LocationPath;
16 import org.jaxen.expr.NumberExpr;
17 import org.jaxen.expr.PathExpr;
18 import org.jaxen.expr.UnaryExpr;
19 import org.jaxen.expr.VariableReferenceExpr;
20
21 abstract class ExprListener {
22     void enterBinaryExpr(final BinaryExpr expr) {
23
24     }
25
26     void exitBinaryExpr(final BinaryExpr expr) {
27
28     }
29
30     void enterFilterExpr(final FilterExpr expr) {
31
32     }
33
34     void exitFilterExpr(final FilterExpr expr) {
35
36     }
37
38     void enterFunctionCallExpr(final FunctionCallExpr expr) {
39
40     }
41
42     void exitFunctionCallExpr(final FunctionCallExpr expr) {
43
44     }
45
46     void enterNotExpr(final UnaryExpr expr) {
47
48     }
49
50     void exitNotExpr(final UnaryExpr expr) {
51
52     }
53
54     Optional<StepListener> enterLocationPath(final LocationPath path) {
55         return Optional.empty();
56     }
57
58     void exitLocationPath(final LocationPath path) {
59
60     }
61
62     void enterPathExpr(final PathExpr expr) {
63
64     }
65
66     void exitPathExpr(final PathExpr expr) {
67
68     }
69
70     void visitLiteralExpr(final LiteralExpr expr) {
71
72     }
73
74     void visitNumberExpr(final NumberExpr expr) {
75
76     }
77
78     void visitOperator(final Operator oper) {
79
80     }
81
82     void visitVariableReferenceExpr(final VariableReferenceExpr expr)  {
83
84     }
85 }