<artifactId>yang-parser-impl</artifactId>
<version>8.0.0-SNAPSHOT</version>
</dependency>
- <dependency>
- <groupId>org.opendaylight.yangtools</groupId>
- <artifactId>yang-parser-antlr</artifactId>
- <version>8.0.0-SNAPSHOT</version>
- </dependency>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-parser-rfc7950</artifactId>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-parser-impl</artifactId>
</dependency>
- <dependency>
- <groupId>org.opendaylight.yangtools</groupId>
- <artifactId>yang-parser-antlr</artifactId>
- </dependency>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-parser-rfc7950</artifactId>
<!-- Combined RFC6020/RFC7960 metamodel implementation. Also includes support
for OpenConfig's semantic-version extension. -->
- <module>yang-parser-antlr</module>
<module>yang-parser-rfc7950</module>
<!-- Support for IETF YANG extensions -->
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- vi: set et smarttab sw=4 tabstop=4: -->
-<!--
- Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
-
- This program and the accompanying materials are made available under the
- terms of the Eclipse Public License v1.0 which accompanies this distribution,
- and is available at http://www.eclipse.org/legal/epl-v10.html
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.opendaylight.yangtools</groupId>
- <artifactId>bundle-parent</artifactId>
- <version>8.0.0-SNAPSHOT</version>
- <relativePath>../../bundle-parent</relativePath>
- </parent>
-
- <artifactId>yang-parser-antlr</artifactId>
- <packaging>bundle</packaging>
- <name>${project.artifactId}</name>
- <description>RFC6020/RFC7950 ANTLR grammars</description>
-
- <properties>
- <!-- antlr-generated code does not pass SB -->
- <odlparent.spotbugs.skip>true</odlparent.spotbugs.skip>
- </properties>
-
- <dependencies>
- <dependency>
- <groupId>org.antlr</groupId>
- <artifactId>antlr4-runtime</artifactId>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.antlr</groupId>
- <artifactId>antlr4-maven-plugin</artifactId>
- <executions>
- <execution>
- <goals>
- <goal>antlr4</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <visitor>true</visitor>
- <listener>false</listener>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
-</project>
+++ /dev/null
-/*
- * Copyright (c) 2019 PANTHEON.tech, s.r.o. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-module org.opendaylight.yangtools.yang.parser.antlr {
- exports org.opendaylight.yangtools.yang.parser.antlr;
-
- requires transitive org.antlr.antlr4.runtime;
-}
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-parser-spi</artifactId>
</dependency>
- <dependency>
- <groupId>org.opendaylight.yangtools</groupId>
- <artifactId>yang-parser-antlr</artifactId>
- </dependency>
<dependency>
<groupId>org.opendaylight.yangtools</groupId>
<artifactId>yang-repo-api</artifactId>
<build>
<plugins>
+ <plugin>
+ <groupId>org.antlr</groupId>
+ <artifactId>antlr4-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>antlr4</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <!-- FIXME: YANGTOOLS-1396: disable visitors -->
+ <visitor>true</visitor>
+ <listener>false</listener>
+ </configuration>
+ </plugin>
<plugin>
<!-- FIXME: why is this needed? -->
<groupId>org.codehaus.mojo</groupId>
requires org.antlr.antlr4.runtime;
requires org.opendaylight.yangtools.openconfig.model.api;
requires org.opendaylight.yangtools.yang.model.ri;
- requires org.opendaylight.yangtools.yang.parser.antlr;
requires org.opendaylight.yangtools.util;
requires org.slf4j;
* ANTLR grammars for parsing RFC7950 constructs. This package is considered an implementation detail and does not
* fall under API stability contract. Use at your own risk.
*/
+@SuppressFBWarnings(justification = "Code generated by ANTLR does not pass SpotBugs")
package org.opendaylight.yangtools.yang.parser.antlr;
+
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContextUtils;
import org.opendaylight.yangtools.yang.parser.spi.source.SourceException;
+// FIXME: YANGTOOLS-1396: refactor on top of vanilla IfFeatureExpressionParser
@NonNullByDefault
final class IfFeaturePredicateVisitor extends IfFeatureExpressionParserBaseVisitor<IfFeatureExpr> {
private final StmtContext<?, ?, ?> stmtCtx;