Eliminate StmtContext.isRootContext()
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / spi / meta / StmtContext.java
index 3d338b73b3592d17f99121ec0fb3510a099eafa6..4bf2541ffccd9dbe9ccc3e2310b1bbef1ce365ce 100644 (file)
@@ -36,7 +36,9 @@ public interface StmtContext<A, D extends DeclaredStatement<A>, E extends Effect
     StatementDefinition getPublicDefinition();
 
     /**
-     * @return context of parent of statement
+     * Return the parent statement context, or null if this is the root statement.
+     *
+     * @return context of parent of statement, or null if this is the root statement.
      */
     @Nullable
     StmtContext<?, ?, ?> getParentContext();
@@ -125,8 +127,6 @@ public interface StmtContext<A, D extends DeclaredStatement<A>, E extends Effect
 
     StmtContext<?, ?, ?> getOriginalCtx();
 
-    boolean isRootContext();
-
     int getOrder();
 
     ModelProcessingPhase getCompletedPhase();