Package org.opendaylight.yangtools.yang.parser.rfc7950.ir
package org.opendaylight.yangtools.yang.parser.rfc7950.ir
Intermediate representation of a YANG file. This is an Abstract Syntax Tree equivalent to ParseTree we get from
ANTLR, except it is immutable and has a denser in-memory representation due to it not containing any metadata which
is not required for the purposes of statement inference.
The main entry point into this package is IRStatement
,
which represents a single YANG statement. Every YANG file is required to contain exactly one top-level statement,
module
or submodule
, hence an IRStatement also represents the significant contents of a YANG file.
One way of creating an IRStatement is through
AntlrSupport.createStatement(org.opendaylight.yangtools.yang.parser.antlr.YangStatementParser.FileContext)
.
-
ClassesClassDescriptionAn argument composed of multiple concatenated parts.An argument composed of a single string.A single YANG statement in its raw string form.