Interface EffectiveStmtCtx.Current<A,D extends DeclaredStatement<A>>
-
- Type Parameters:
A
- Argument typeD
- Class representing declared version of this statement
- All Superinterfaces:
BoundStmtCtx<A>
,BoundStmtCtxCompat<A,D>
,CommonStmtCtx
,EffectiveStmtCtx
,EffectiveStmtCtx.Parent
,Immutable
,MutationBehaviour<Immutable>
,NamespaceStmtCtx
,StmtContextCompat
- All Known Implementing Classes:
RootStatementContext
,StatementContextBase
- Enclosing interface:
- EffectiveStmtCtx
@Beta public static interface EffectiveStmtCtx.Current<A,D extends DeclaredStatement<A>> extends EffectiveStmtCtx.Parent, NamespaceStmtCtx, BoundStmtCtxCompat<A,D>
Minimum amount of state required to build an accurate effective view of a statement. This is a strict superset of information available inEffectiveStmtCtx.Parent
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.parser.spi.meta.EffectiveStmtCtx
EffectiveStmtCtx.Current<A,D extends DeclaredStatement<A>>, EffectiveStmtCtx.Parent
-
Nested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.parser.spi.meta.EffectiveStmtCtx.Parent
EffectiveStmtCtx.Parent.EffectiveConfig
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description @NonNull QName
argumentAsTypeQName()
<E extends EffectiveStatement<A,D>>
@NonNull StmtContext<A,D,E>caerbannog()
Deprecated.default boolean
equalParentPath(EffectiveStmtCtx.Current<A,D> other)
Compare another context for equality ofgetEffectiveParent().getSchemaPath()
, just in a safer manner.@NonNull QName
moduleName()
@Nullable EffectiveStatement<?,?>
original()
default <T> @Nullable T
original(@NonNull Class<T> type)
-
Methods inherited from interface org.opendaylight.yangtools.yang.parser.spi.meta.BoundStmtCtx
argument, findSubstatementArgument, getArgument, hasSubstatement, yangVersion
-
Methods inherited from interface org.opendaylight.yangtools.yang.parser.spi.meta.BoundStmtCtxCompat
declared
-
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.EffectiveStmtCtx
effectiveParent, getEffectiveParent
-
Methods inherited from interface org.opendaylight.yangtools.yang.parser.spi.meta.EffectiveStmtCtx.Parent
effectiveConfig, effectiveNamespace, effectivePath, getSchemaPath, optionalPath, schemaPath
-
Methods inherited from interface org.opendaylight.yangtools.yang.parser.spi.meta.NamespaceStmtCtx
getAllFromNamespace, getFromNamespace, localNamespacePortion, namespace, namespaceItem
-
Methods inherited from interface org.opendaylight.yangtools.yang.parser.spi.meta.StmtContextCompat
history
-
-
-
-
Method Detail
-
moduleName
@NonNull QName moduleName()
-
original
@Nullable EffectiveStatement<?,?> original()
-
original
default <T> @Nullable T original(@NonNull Class<T> type)
-
argumentAsTypeQName
@NonNull QName argumentAsTypeQName()
-
caerbannog
@Deprecated <E extends EffectiveStatement<A,D>> @NonNull StmtContext<A,D,E> caerbannog()
Deprecated.Summon the Rabbit of Caerbannog.- Type Parameters:
E
- Effective Statement representation- Returns:
- The
Legendary Black Beast of Arrrghhh
.
-
equalParentPath
default boolean equalParentPath(EffectiveStmtCtx.Current<A,D> other)
Compare another context for equality ofgetEffectiveParent().getSchemaPath()
, just in a safer manner.- Parameters:
other
- OtherEffectiveStmtCtx.Current
- Returns:
- True if
other
has parent path equal to this context's parent path.
-
-