BUG-3876: Add ExprListener and friends
[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     void exitBinaryExpr(final BinaryExpr expr) {
26
27     }
28
29     void enterFilterExpr(final FilterExpr expr) {
30
31     }
32
33     void exitFilterExpr(final FilterExpr expr) {
34
35     }
36
37     void enterFunctionCallExpr(final FunctionCallExpr expr) {
38
39     }
40
41     void exitFunctionCallExpr(final FunctionCallExpr expr) {
42
43     }
44
45     void enterNotExpr(final UnaryExpr expr) {
46
47     }
48
49     void exitNotExpr(final UnaryExpr expr) {
50
51     }
52
53     Optional<StepListener> enterLocationPath(final LocationPath path) {
54         return Optional.empty();
55     }
56
57     void exitLocationPath(final LocationPath path) {
58
59     }
60
61     void enterPathExpr(final PathExpr expr) {
62
63     }
64
65     void exitPathExpr(final PathExpr expr) {
66
67     }
68
69     void visitLiteralExpr(final LiteralExpr expr) {
70
71     }
72
73     void visitNumberExpr(final NumberExpr expr) {
74
75     }
76
77     void visitOperator(final Operator oper) {
78
79     }
80
81     void visitVariableReferenceExpr(final VariableReferenceExpr expr)  {
82
83     }
84 }