2 * Copyright (c) 2015 Cisco Systems, Inc. and others. 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.parser.rfc7950.stmt.extension;
10 import static java.util.Objects.requireNonNull;
12 import com.google.common.collect.ImmutableList;
13 import org.eclipse.jdt.annotation.NonNull;
14 import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
15 import org.opendaylight.yangtools.yang.model.api.meta.StatementDefinition;
16 import org.opendaylight.yangtools.yang.model.api.stmt.UnrecognizedStatement;
17 import org.opendaylight.yangtools.yang.parser.rfc7950.stmt.AbstractDeclaredStatement.WithRawStringArgument.WithSubstatements;
19 final class UnrecognizedStatementImpl extends WithSubstatements implements UnrecognizedStatement {
20 private final @NonNull StatementDefinition definition;
22 UnrecognizedStatementImpl(final String rawArgument, final @NonNull StatementDefinition statementDefinition,
23 final ImmutableList<? extends DeclaredStatement<?>> substatements) {
24 super(rawArgument, substatements);
25 this.definition = requireNonNull(statementDefinition);
29 public StatementDefinition statementDefinition() {