Class YangIRSource
java.lang.Object
org.opendaylight.yangtools.yang.model.spi.source.YangIRSource
- All Implemented Interfaces:
Immutable
,SourceRepresentation
,YangSourceRepresentation
@NonNullByDefault
public final class YangIRSource
extends Object
implements YangSourceRepresentation
A
YangSourceRepresentation
backed by an IRStatement
.-
Constructor Summary
ConstructorsConstructorDescriptionYangIRSource
(SourceIdentifier sourceId, IRStatement statement, @Nullable String symbolicName) -
Method Summary
Modifier and TypeMethodDescriptiongetType()
Return the concrete representation type.static StatementDeclaration.InText
refOf
(SourceIdentifier source, IRStatement stmt) sourceId()
TheSourceIdentifier
of this source.Return the root statement of this source.@Nullable String
Return the symbolic name, if available.
-
Constructor Details
-
YangIRSource
public YangIRSource(SourceIdentifier sourceId, IRStatement statement, @Nullable String symbolicName)
-
-
Method Details
-
sourceId
Description copied from interface:SourceRepresentation
TheSourceIdentifier
of this source.- Specified by:
sourceId
in interfaceSourceRepresentation
- Returns:
SourceIdentifier
of this source
-
symbolicName
Description copied from interface:SourceRepresentation
Return the symbolic name, if available. This name has no semantic meaning beyond being useful for debugging by humans.- Specified by:
symbolicName
in interfaceSourceRepresentation
- Returns:
- Symbolic name, if available
-
getType
Description copied from interface:SourceRepresentation
Return the concrete representation type.- Specified by:
getType
in interfaceSourceRepresentation
- Specified by:
getType
in interfaceYangSourceRepresentation
- Returns:
- The type of representation.
-
statement
Return the root statement of this source.- Returns:
- Root statement.
-
refOf
-