2 * Copyright (c) 2020 PANTHEON.tech, s.r.o. 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.spi.meta;
10 import com.google.common.annotations.Beta;
11 import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
12 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
15 * A marker interface for a {@link StmtContext}. Useful for operations which make assumption about the context's
18 * @param <A> Argument type
19 * @param <D> Declared Statement representation
20 * @param <E> Effective Statement representation
23 public interface RootStmtContext<A, D extends DeclaredStatement<A>, E extends EffectiveStatement<A, D>>
24 extends StmtContext<A, D, E> {
26 interface Mutable<A, D extends DeclaredStatement<A>, E extends EffectiveStatement<A, D>>
27 extends StmtContext.Mutable<A, D, E>, RootStmtContext<A, D, E> {
30 RootStmtContext.Mutable<?, ?, ?> getRoot();