| Package | Description |
|---|---|
| org.onosproject.yangutils.parser |
Interfaces to process YANG information from ANTLR generated listeners.
|
| org.onosproject.yangutils.parser.impl |
Parse the YANG information from ANTLR generated parse tree.
|
| org.onosproject.yangutils.parser.impl.parserutils |
Provide common utils for parser implementation.
|
| Modifier and Type | Method and Description |
|---|---|
YangNode |
YangUtilsParser.getDataModel(String file)
Returns the data model node.
|
| Modifier and Type | Method and Description |
|---|---|
YangNode |
YangUtilsParserManager.getDataModel(String yangFile) |
| Modifier and Type | Method and Description |
|---|---|
static ParserException |
AugmentListenerUtil.parserException(GeneratedYangParser.AugmentStatementContext ctx)
Builds parser exception.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ListenerCollisionDetector.detectCollidingChildUtil(TreeWalkListener listener,
int line,
int charPosition,
String identifierName,
YangConstructType constructType)
Detects that the identifiers of all these child nodes must be unique
within all cases in a choice.
|
static void |
ListenerValidation.validateCardinalityEitherOne(List<?> child1Context,
YangConstructType yangChild1Construct,
List<?> child2Context,
YangConstructType yangChild2Construct,
YangConstructType yangParentConstruct,
String parentName,
org.antlr.v4.runtime.ParserRuleContext parentContext)
Checks if a either of one construct occurrence.
|
static void |
ListenerValidation.validateCardinalityEqualsOne(List<?> childContext,
YangConstructType yangChildConstruct,
YangConstructType yangParentConstruct,
String parentName,
org.antlr.v4.runtime.ParserRuleContext parentContext)
Checks if a rule occurrences is exactly 1.
|
static void |
ListenerValidation.validateCardinalityMaxOne(List<?> childContext,
YangConstructType yangChildConstruct,
YangConstructType yangParentConstruct,
String parentName)
Checks if a rule occurrences is as per the expected YANG grammar's
cardinality.
|
static void |
ListenerValidation.validateCardinalityNonZero(List<?> childContext,
YangConstructType yangChildConstruct,
YangConstructType yangParentConstruct,
String parentName,
org.antlr.v4.runtime.ParserRuleContext parentContext)
Checks if a rule occurrences is minimum 1.
|
Copyright © 2016. All rights reserved.