2 * Copyright (c) 2018 Pantheon Technologies, s.r.o. 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.xpath.impl;
10 import org.kohsuke.MetaInfServices;
11 import org.opendaylight.yangtools.yang.common.YangNamespaceContext;
12 import org.opendaylight.yangtools.yang.xpath.api.YangXPathMathMode;
13 import org.opendaylight.yangtools.yang.xpath.api.YangXPathParser;
14 import org.opendaylight.yangtools.yang.xpath.api.YangXPathParserFactory;
17 public final class AntlrXPathParserFactory implements YangXPathParserFactory {
19 public YangXPathParser newParser(final YangNamespaceContext namespaceContext,
20 final YangXPathMathMode mathMode) {
21 return new AntlrXPathParser(mathMode, namespaceContext);