@Beta public final class ASTSchemaSource extends Object implements org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.base.Function<ASTSchemaSource,org.antlr.v4.runtime.ParserRuleContext> |
GET_AST |
static com.google.common.base.Function<ASTSchemaSource,YangModelDependencyInfo> |
GET_DEPINFO |
static com.google.common.base.Function<ASTSchemaSource,org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier> |
GET_IDENTIFIER |
| Modifier and Type | Method and Description |
|---|---|
static ASTSchemaSource |
create(String name,
org.antlr.v4.runtime.ParserRuleContext tree)
Create a new instance of AST representation for a abstract syntax tree,
performing minimal semantic analysis to acquire dependency information.
|
static ASTSchemaSource |
create(String name,
org.antlr.v4.runtime.ParserRuleContext tree,
String text)
Deprecated.
Migration only, will be removed as soon as the migration is completed.
|
org.antlr.v4.runtime.ParserRuleContext |
getAST()
Return the underlying abstract syntax tree.
|
YangModelDependencyInfo |
getDependencyInformation()
Return the dependency information as extracted from the AST.
|
org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier |
getIdentifier() |
Class<? extends org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation> |
getType() |
String |
getYangText()
Deprecated.
Used for migration purposes. Users are advised to use the
schema repository to acquire the representation of their
choice. Will be removed as soon as the migration is completed.
|
public static final com.google.common.base.Function<ASTSchemaSource,org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier> GET_IDENTIFIER
public static final com.google.common.base.Function<ASTSchemaSource,YangModelDependencyInfo> GET_DEPINFO
public static final com.google.common.base.Function<ASTSchemaSource,org.antlr.v4.runtime.ParserRuleContext> GET_AST
public static ASTSchemaSource create(@Nonnull String name, @Nonnull org.antlr.v4.runtime.ParserRuleContext tree) throws org.opendaylight.yangtools.yang.model.parser.api.YangSyntaxErrorException
name - YANG source name. Used only for error reporting.tree - ANTLR abstract syntax treeorg.opendaylight.yangtools.yang.model.parser.api.YangSyntaxErrorException - if we fail to extract dependency information.@Deprecated public static ASTSchemaSource create(@Nonnull String name, @Nonnull org.antlr.v4.runtime.ParserRuleContext tree, String text) throws org.opendaylight.yangtools.yang.model.parser.api.YangSyntaxErrorException
name - YANG source name. Used only for error reporting.tree - ANTLR abstract syntax treeorg.opendaylight.yangtools.yang.model.parser.api.YangSyntaxErrorException - if we fail to extract dependency information.public org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier getIdentifier()
getIdentifier in interface org.opendaylight.yangtools.concepts.Identifiable<org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier>getIdentifier in interface org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentationpublic Class<? extends org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation> getType()
getType in interface org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation@Nonnull public org.antlr.v4.runtime.ParserRuleContext getAST()
@Nonnull public YangModelDependencyInfo getDependencyInformation()
@Deprecated @Nonnull public String getYangText()
Copyright © 2014. All rights reserved.