Interface UndeclaredStatementFactory<A,D extends org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement<A>,E extends org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement<A,D>>
- Type Parameters:
A- Argument typeD- Declared Statement representationE- Effective Statement representation
@Beta
public interface UndeclaredStatementFactory<A,D extends org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement<A>,E extends org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement<A,D>>
An entity capable of creating undeclared
EffectiveStatement instances for a particular type. Unlike
StatementFactory, effective statements created through this interface are expected to return a null
from EffectiveStatement.getDeclared().-
Method Summary
Modifier and TypeMethodDescription@NonNull EcreateUndeclaredEffective(@NonNull EffectiveStmtCtx.UndeclaredCurrent<A, D> stmt, @NonNull Stream<? extends StmtContext<?, ?, ?>> effectiveSubstatements) Create aEffectiveStatementfor specified context.
-
Method Details
-
createUndeclaredEffective
@NonNull E createUndeclaredEffective(@NonNull EffectiveStmtCtx.UndeclaredCurrent<A, D> stmt, @NonNull Stream<? extends StmtContext<?, ?, ?>> effectiveSubstatements) Create aEffectiveStatementfor specified context. Implementations of this method must not accessBoundStmtCtxCompat.declared()orCommonStmtCtx.rawArgument().- Parameters:
stmt- Effective capture of this statement's significant stateeffectiveSubstatements- effectively-visible substatements- Returns:
- An effective statement instance
-