Un-deprecate CopyableNode, AddedByUsesAware
[yangtools.git] / yang / yang-parser-spi / src / main / java / org / opendaylight / yangtools / yang / parser / spi / meta / RootStmtContext.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.spi.meta;
9
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;
13
14 /**
15  * A marker interface for a {@link StmtContext}. Useful for operations which make assumption about the context's
16  * hierarchy.
17  *
18  * @param <A> Argument type
19  * @param <D> Declared Statement representation
20  * @param <E> Effective Statement representation
21  */
22 @Beta
23 public interface RootStmtContext<A, D extends DeclaredStatement<A>, E extends EffectiveStatement<A, D>>
24         extends StmtContext<A, D, E> {
25
26     interface Mutable<A, D extends DeclaredStatement<A>, E extends EffectiveStatement<A, D>>
27             extends StmtContext.Mutable<A, D, E>, RootStmtContext<A, D, E> {
28
29         @Override
30         RootStmtContext.Mutable<?, ?, ?> getRoot();
31     }
32 }