Allow derived context to be reused
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / input / InputStatementSupport.java
index 08864a13e5f1a84c1123b0e572d876ffb52e00fa..dff94f5a5557348fe9a9cfa0ff1bcd6617b6fb6b 100644 (file)
@@ -104,6 +104,20 @@ public final class InputStatementSupport
         }
     }
 
+    @Override
+    protected InputEffectiveStatement copyDeclaredEffective(final int flags,
+            final Current<QName, InputStatement> stmt, final InputEffectiveStatement original) {
+        return new DeclaredInputEffectiveStatement(flags, (DeclaredInputEffectiveStatement) original,
+            stmt.wrapSchemaPath());
+    }
+
+    @Override
+    protected InputEffectiveStatement copyUndeclaredEffective(final int flags,
+            final Current<QName, InputStatement> stmt, final InputEffectiveStatement original) {
+        return new UndeclaredInputEffectiveStatement(flags, (UndeclaredInputEffectiveStatement) original,
+            stmt.wrapSchemaPath());
+    }
+
     @Override
     protected InputEffectiveStatement createDeclaredEffective(final int flags,
             final Current<QName, InputStatement> stmt,