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()static StatementDeclaration.InTextrefOf(SourceIdentifier source, IRStatement stmt) sourceId()Return the root statement of this source.@Nullable String
-
Constructor Details
-
YangIRSource
public YangIRSource(SourceIdentifier sourceId, IRStatement statement, @Nullable String symbolicName)
-
-
Method Details
-
sourceId
- Specified by:
sourceIdin interfaceSourceRepresentation
-
symbolicName
- Specified by:
symbolicNamein interfaceSourceRepresentation
-
getType
- Specified by:
getTypein interfaceSourceRepresentation- Specified by:
getTypein interfaceYangSourceRepresentation
-
statement
Return the root statement of this source.- Returns:
- Root statement.
-
refOf
-