Populate xpath/ hierarchy
[yangtools.git] / parser / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / ir / IRStatementL44.java
1 /*
2  * Copyright (c) 2020 PANTHEON.tech, s.r.o. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.yangtools.yang.parser.rfc7950.ir;
9
10 import static java.util.Objects.requireNonNull;
11
12 import com.google.common.collect.ImmutableList;
13 import org.eclipse.jdt.annotation.NonNull;
14
15 final class IRStatementL44 extends IRStatement044 {
16     private final @NonNull ImmutableList<IRStatement> statements;
17
18     IRStatementL44(final IRKeyword keyword, final IRArgument argument, final ImmutableList<IRStatement> statements,
19             final int startLine, final int startColumn) {
20         super(keyword, argument, startLine, startColumn);
21         this.statements = requireNonNull(statements);
22     }
23
24     @Override
25     public ImmutableList<IRStatement> statements() {
26         return statements;
27     }
28 }