| Package | Description |
|---|---|
| org.onosproject.yang.compiler.parser.antlrgencode |
ANTLR interfaces to be implemented by listener.
|
| org.onosproject.yang.compiler.parser.impl |
Parse the YANG information from ANTLR generated parse tree.
|
| org.onosproject.yang.compiler.parser.impl.listeners |
Provide call back functions for listeners based tree walk.
|
| org.onosproject.yang.compiler.parser.impl.parserutils |
Provide common utils for parser implementation.
|
| Modifier and Type | Method and Description |
|---|---|
GeneratedYangParser.PathStatementContext |
GeneratedYangParser.pathStatement() |
GeneratedYangParser.PathStatementContext |
GeneratedYangParser.LeafrefSpecificationContext.pathStatement() |
GeneratedYangParser.PathStatementContext |
GeneratedYangParser.YangStatementContext.pathStatement() |
GeneratedYangParser.PathStatementContext |
GeneratedYangParser.pathStatement() |
GeneratedYangParser.PathStatementContext |
GeneratedYangParser.LeafrefSpecificationContext.pathStatement() |
GeneratedYangParser.PathStatementContext |
GeneratedYangParser.YangStatementContext.pathStatement() |
| Modifier and Type | Method and Description |
|---|---|
void |
GeneratedYangListener.enterPathStatement(GeneratedYangParser.PathStatementContext currentContext)
Enters a parse tree produced by GeneratedYangParser for grammar rule pathStatement.
|
void |
GeneratedYangListener.exitPathStatement(GeneratedYangParser.PathStatementContext currentContext)
Exits a parse tree produced by GeneratedYangParser for grammar rule pathStatement.
|
| Modifier and Type | Method and Description |
|---|---|
void |
TreeWalkListener.enterPathStatement(GeneratedYangParser.PathStatementContext ctx) |
void |
TreeWalkListener.exitPathStatement(GeneratedYangParser.PathStatementContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
static void |
PathListener.processPathEntry(TreeWalkListener listener,
GeneratedYangParser.PathStatementContext ctx)
It is called when parser receives an input matching the grammar rule
(path), performs validation and updates the data model tree.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
ListenerUtil.getParsedPath(String nodeId,
String path,
List<org.onosproject.yang.compiler.datamodel.YangAtomicPath> atomics,
GeneratedYangParser.PathStatementContext pathCtx,
org.onosproject.yang.compiler.datamodel.YangLeafRef yangLeafRef,
org.onosproject.yang.compiler.datamodel.utils.YangConstructType pathType)
Returns the path after taking all the path predicates of an atomic
content.
|
static String |
ListenerUtil.getPath(String path,
List<org.onosproject.yang.compiler.datamodel.YangAtomicPath> atomicList,
org.onosproject.yang.compiler.datamodel.utils.YangConstructType pathType,
GeneratedYangParser.PathStatementContext pathCtx)
Returns the remaining path after parsing and processing an atomic
content which doesn't have path-predicate.
|
static void |
ListenerUtil.validatePath(String path,
org.onosproject.yang.compiler.datamodel.utils.YangConstructType type,
GeneratedYangParser.PathStatementContext ctx,
org.onosproject.yang.compiler.datamodel.YangLeafRef leafRef)
Validates path under leaf-ref and parses the path and stores in the
leaf-ref.
|
Copyright © 2018. All rights reserved.