*
* @return Original definition, if this statement was copied.
*/
- Optional<StmtContext<?, ?, ?>> getOriginalCtx();
+ Optional<StmtContext<A, D, E>> getOriginalCtx();
/**
* Return the context of the previous copy of this statement -- effectively walking towards the source origin
*
* @return Context of the previous copy of this statement, if this statement has been copied.
*/
- Optional<? extends StmtContext<?, ?, ?>> getPreviousCopyCtx();
+ Optional<StmtContext<A, D, E>> getPreviousCopyCtx();
ModelProcessingPhase getCompletedPhase();
return childCopyOf(stmt, type, null);
}
+ @Override
+ default Collection<? extends StmtContext<?, ?, ?>> declaredSubstatements() {
+ return mutableDeclaredSubstatements();
+ }
+
@NonNull Collection<? extends Mutable<?, ?, ?>> mutableDeclaredSubstatements();
+ @Override
+ default Collection<? extends StmtContext<?, ?, ?>> effectiveSubstatements() {
+ return mutableEffectiveSubstatements();
+ }
+
@NonNull Collection<? extends Mutable<?, ?, ?>> mutableEffectiveSubstatements();
/**