Interface StatementSourceReference
-
- All Known Implementing Classes:
DeclarationInTextSource
,ImplicitSubstatement
public interface StatementSourceReference
Reference of statement source. Statement source reference serves to provide information, why a statement was defined and introduced in model.Reasons for introduction of statement could be various, but most obvious one is explicit declaration in model source text such as
DeclarationInTextSource
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull StatementSource
getStatementSource()
Returns source type.String
toString()
Returns human readable representation of statement source.
-
-
-
Method Detail
-
getStatementSource
@NonNull StatementSource getStatementSource()
Returns source type.- Returns:
StatementSource.DECLARATION
if statement was explicitly declared in YANG model source,StatementSource.CONTEXT
if statement was inferred.
-
toString
String toString()
Returns human readable representation of statement source.Implementations of this interface should override
toString()
, since it may be used in error reporting to provide context information for model designer to debug errors in its mode.
-
-