16543412a60532caa24d17afbc4731da04f56ac0
[yangtools.git] / yang / 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.spi.meta.StmtContext;
12
13 public final class IfFeatureStatementRFC7950Support extends AbstractIfFeatureStatementSupport {
14     private static final IfFeatureStatementRFC7950Support INSTANCE = new IfFeatureStatementRFC7950Support();
15
16     private IfFeatureStatementRFC7950Support() {
17         // Hidden on purpose
18     }
19
20     public static IfFeatureStatementRFC7950Support getInstance() {
21         return INSTANCE;
22     }
23
24     @Override
25     public IfFeatureExpr parseArgumentValue(final StmtContext<?, ?, ?> ctx, final String value) {
26         return IfFeaturePredicateVisitor.parseIfFeatureExpression(ctx, value);
27     }
28 }