2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.yangtools.yang.data.jaxen;
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;
21 abstract class ExprListener {
22 void enterBinaryExpr(final BinaryExpr expr) {
26 void exitBinaryExpr(final BinaryExpr expr) {
30 void enterFilterExpr(final FilterExpr expr) {
34 void exitFilterExpr(final FilterExpr expr) {
38 void enterFunctionCallExpr(final FunctionCallExpr expr) {
42 void exitFunctionCallExpr(final FunctionCallExpr expr) {
46 void enterNotExpr(final UnaryExpr expr) {
50 void exitNotExpr(final UnaryExpr expr) {
54 Optional<StepListener> enterLocationPath(final LocationPath path) {
55 return Optional.empty();
58 void exitLocationPath(final LocationPath path) {
62 void enterPathExpr(final PathExpr expr) {
66 void exitPathExpr(final PathExpr expr) {
70 void visitLiteralExpr(final LiteralExpr expr) {
74 void visitNumberExpr(final NumberExpr expr) {
78 void visitOperator(final Operator oper) {
82 void visitVariableReferenceExpr(final VariableReferenceExpr expr) {