Interface EffectiveStmtCtx
- All Superinterfaces:
CommonStmtCtx
,Immutable
,StmtContextCompat
- All Known Subinterfaces:
EffectiveStmtCtx.Current<A,
,D> EffectiveStmtCtx.Parent
,EffectiveStmtCtx.UndeclaredCurrent<A,
D>
- All Known Implementing Classes:
RootStatementContext
Effective view of a
StmtContext
for the purposes of creating an EffectiveStatement
.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
EffectiveStmtCtx.Current<A,
D extends DeclaredStatement<A>> Minimum amount of state required to build an accurate effective view of a statement.static interface
Minimum amount of parent state required to build an accurate effective view of a particular child.static interface
EffectiveStmtCtx.UndeclaredCurrent<A,
D extends DeclaredStatement<A>> A restricted version ofEffectiveStmtCtx.Current
, which does not expose the raw argument or the declared statement. -
Method Summary
Modifier and TypeMethodDescription@Nullable EffectiveStmtCtx.Parent
Return parent of this context, if there is one.default @NonNull EffectiveStmtCtx.Parent
Return parent of this context.Methods inherited from interface org.opendaylight.yangtools.yang.parser.spi.meta.CommonStmtCtx
getRawArgument, producesDeclared, producesEffective, publicDefinition, rawArgument, sourceReference
Methods inherited from interface org.opendaylight.yangtools.yang.parser.spi.meta.StmtContextCompat
history
-
Method Details
-
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
Return parent of this context.- Returns:
- Parent context
- Throws:
VerifyException
- if this context is already the root
-