2 * Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
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
8 package org.opendaylight.yangtools.yang.parser.rfc7950.stmt.action;
10 import static java.util.Objects.requireNonNull;
12 import com.google.common.collect.ImmutableList;
13 import org.eclipse.jdt.annotation.NonNull;
14 import org.opendaylight.yangtools.concepts.Immutable;
15 import org.opendaylight.yangtools.yang.common.QName;
16 import org.opendaylight.yangtools.yang.model.api.ActionDefinition;
17 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
18 import org.opendaylight.yangtools.yang.model.api.stmt.ActionEffectiveStatement;
19 import org.opendaylight.yangtools.yang.model.api.stmt.ActionStatement;
20 import org.opendaylight.yangtools.yang.model.spi.meta.AbstractDeclaredEffectiveStatement.DefaultWithDataTree.WithSubstatements;
21 import org.opendaylight.yangtools.yang.model.spi.meta.EffectiveStatementMixins.CopyableMixin;
22 import org.opendaylight.yangtools.yang.model.spi.meta.EffectiveStatementMixins.OperationDefinitionMixin;
24 final class ActionEffectiveStatementImpl extends WithSubstatements<QName, ActionStatement, ActionEffectiveStatement>
25 implements ActionDefinition, ActionEffectiveStatement, OperationDefinitionMixin<ActionStatement>,
26 CopyableMixin<QName, ActionStatement> {
27 private final @NonNull Immutable path;
28 private final int flags;
30 ActionEffectiveStatementImpl(final ActionStatement declared, final Immutable path, final int flags,
31 final ImmutableList<? extends EffectiveStatement<?, ?>> substatements) {
32 super(declared, substatements);
33 this.path = requireNonNull(path);
37 ActionEffectiveStatementImpl(final ActionEffectiveStatementImpl original, final Immutable path, final int flags) {
39 this.path = requireNonNull(path);
44 public Immutable pathObject() {
54 public ActionEffectiveStatement asEffectiveStatement() {