Turn ParserNamespace into an abstract class
[yangtools.git] / parser / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / augment / AugmentImplicitHandlingNamespace.java
1 /*
2  * Copyright (c) 2019 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.augment;
9
10 import com.google.common.annotations.Beta;
11 import org.eclipse.jdt.annotation.NonNull;
12 import org.opendaylight.yangtools.yang.common.Empty;
13 import org.opendaylight.yangtools.yang.parser.spi.meta.NamespaceBehaviour;
14 import org.opendaylight.yangtools.yang.parser.spi.meta.ParserNamespace;
15 import org.opendaylight.yangtools.yang.parser.spi.meta.StmtContext.Mutable;
16
17 /**
18  * Helper namespace for attaching target information to augmentation statements. This is then used to ensure that
19  * the effective augment has correct implicit statements created.
20  */
21 @Beta
22 public final class AugmentImplicitHandlingNamespace extends ParserNamespace<Empty, Mutable<?, ?, ?>> {
23     public static final @NonNull NamespaceBehaviour<?, ?, ?> BEHAVIOUR =
24         NamespaceBehaviour.statementLocal(AugmentImplicitHandlingNamespace.class);
25
26     private AugmentImplicitHandlingNamespace() {
27         // Hidden on purpose
28     }
29 }