ee94c7300fb6136fd92aeeb4edbaa79562d72bce
[yangtools.git] / parser / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / if_feature / IfFeatureStatementRFC7950Support.java
1 /*
2  * Copyright (c) 2020 PANTHEON.tech, s.r.o. 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.parser.rfc7950.stmt.if_feature;
9
10 import org.opendaylight.yangtools.yang.model.api.stmt.IfFeatureExpr;
11 import org.opendaylight.yangtools.yang.parser.api.YangParserConfiguration;
12 import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext;
13
14 public final class IfFeatureStatementRFC7950Support extends AbstractIfFeatureStatementSupport {
15     public IfFeatureStatementRFC7950Support(final YangParserConfiguration config) {
16         super(config);
17     }
18
19     @Override
20     public IfFeatureExpr parseArgumentValue(final StmtContext<?, ?, ?> ctx, final String value) {
21         return IfFeaturePredicateVisitor.parseIfFeatureExpression(ctx, value);
22     }
23 }