YANGTOOLS-706: reorganize statement definitions
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / AbstractEffectiveSchemaNode.java
@@ -5,7 +5,7 @@
  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
  * and is available at http://www.eclipse.org/legal/epl-v10.html
  */
-package org.opendaylight.yangtools.yang.parser.rfc6020.util;
+package org.opendaylight.yangtools.yang.parser.rfc7950.stmt;
 
 import com.google.common.collect.ImmutableList;
 import java.util.List;
@@ -24,7 +24,7 @@ public abstract class AbstractEffectiveSchemaNode<D extends DeclaredStatement<QN
     private final SchemaPath path;
     private final List<UnknownSchemaNode> unknownNodes;
 
-    public AbstractEffectiveSchemaNode(final StmtContext<QName, D, ?> ctx) {
+    protected AbstractEffectiveSchemaNode(final StmtContext<QName, D, ?> ctx) {
         super(ctx);
         this.path = ctx.getSchemaPath().get();
 
@@ -39,19 +39,19 @@ public abstract class AbstractEffectiveSchemaNode<D extends DeclaredStatement<QN
 
     @Nonnull
     @Override
-    public QName getQName() {
+    public final QName getQName() {
         return path.getLastComponent();
     }
 
     @Nonnull
     @Override
-    public SchemaPath getPath() {
+    public final SchemaPath getPath() {
         return path;
     }
 
     @Nonnull
     @Override
-    public List<UnknownSchemaNode> getUnknownSchemaNodes() {
+    public final List<UnknownSchemaNode> getUnknownSchemaNodes() {
         return unknownNodes;
     }
 }