Update yang-xpath-api design
[yangtools.git] / yang / yang-xpath-impl / src / main / java / org / opendaylight / yangtools / yang / xpath / impl / AntlrXPathParserFactory.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.impl;
9
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;
15
16 @MetaInfServices
17 public final class AntlrXPathParserFactory implements YangXPathParserFactory {
18     @Override
19     public YangXPathParser newParser(final YangNamespaceContext namespaceContext,
20             final YangXPathMathMode mathMode) {
21         return new AntlrXPathParser(mathMode, namespaceContext);
22     }
23 }