@Beta public final class ASTSchemaSource extends Object implements SchemaSourceRepresentation
Instances of this representation are used for caching purposes, as they are a natural intermediate step in YANG text processing pipeline: the text has been successfully parsed, so we know it is syntactically correct. It also passes basic semantic validation and we were able to extract dependency information.
Modifier and Type | Method and Description |
---|---|
@NonNull org.antlr.v4.runtime.ParserRuleContext |
getAST()
Return the underlying abstract syntax tree.
|
@NonNull YangModelDependencyInfo |
getDependencyInformation()
Return the dependency information as extracted from the AST.
|
SourceIdentifier |
getIdentifier()
Return this objects Identifier.
|
@NonNull SemVerSourceIdentifier |
getSemVerIdentifier() |
Optional<String> |
getSymbolicName()
Return the symbolic name, if available.
|
Class<? extends SchemaSourceRepresentation> |
getType()
Return the concrete representation type.
|
String |
toString() |
public SourceIdentifier getIdentifier()
Identifiable
getIdentifier
in interface Identifiable<SourceIdentifier>
getIdentifier
in interface SchemaSourceRepresentation
public Optional<String> getSymbolicName()
SchemaSourceRepresentation
getSymbolicName
in interface SchemaSourceRepresentation
public @NonNull SemVerSourceIdentifier getSemVerIdentifier()
public Class<? extends SchemaSourceRepresentation> getType()
SchemaSourceRepresentation
getType
in interface SchemaSourceRepresentation
public @NonNull org.antlr.v4.runtime.ParserRuleContext getAST()
public @NonNull YangModelDependencyInfo getDependencyInformation()
Copyright © 2019 OpenDaylight. All rights reserved.