Interface SourceInfo

All Known Implementing Classes:
SourceInfo.Module, SourceInfo.Submodule

@NonNullByDefault public sealed interface SourceInfo permits SourceInfo.Module, SourceInfo.Submodule
Linkage information about a particular SourceRepresentation. It has two specializations
  1. SourceInfo.Module pertaining to SourceRepresentation which have module as its root statement
  2. SourceInfo.Submodule pertaining to SourceRepresentation which have submodule as its root statement

This interface captures the basic metadata needed for interpretation and linkage of the source, as represented by the following ABNF constructs placed at the start of a YANG file:

  • module-header-stmts or submodule-header-stmts
  • linkage-stmts
  • revision-stmts