Interface EffectiveStmtCtx
-
- All Superinterfaces:
CommonStmtCtx
,Immutable
,MutationBehaviour<Immutable>
,StmtContextCompat
- All Known Subinterfaces:
EffectiveStmtCtx.Current<A,D>
,EffectiveStmtCtx.Parent
- All Known Implementing Classes:
RootStatementContext
,StatementContextBase
@Beta public interface EffectiveStmtCtx extends CommonStmtCtx, StmtContextCompat, Immutable
Effective view of aStmtContext
for the purposes of creating anEffectiveStatement
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
EffectiveStmtCtx.Current<A,D extends DeclaredStatement<A>>
Minimum amount of state required to build an accurate effective view of a statement.static interface
EffectiveStmtCtx.Parent
Minimum amount of parent state required to build an accurate effective view of a particular child.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description @Nullable EffectiveStmtCtx.Parent
effectiveParent()
Return parent of this context, if there is one.default @NonNull EffectiveStmtCtx.Parent
getEffectiveParent()
Return parent of this context.-
Methods inherited from interface org.opendaylight.yangtools.yang.parser.spi.meta.CommonStmtCtx
getRawArgument, origin, producesDeclared, producesEffective, publicDefinition, rawArgument, sourceReference
-
Methods inherited from interface org.opendaylight.yangtools.yang.parser.spi.meta.StmtContextCompat
history
-
-
-
-
Method Detail
-
effectiveParent
@Nullable EffectiveStmtCtx.Parent effectiveParent()
Return parent of this context, if there is one. All statements except for top-level source statements, such asmodule
andsubmodule
.- Returns:
- Parent context, or null if this statement is the root
-
getEffectiveParent
default @NonNull EffectiveStmtCtx.Parent getEffectiveParent()
Return parent of this context.- Returns:
- Parent context
- Throws:
VerifyException
- if this context is already the root
-
-