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.model.ri.stmt.impl.eff;
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 public final class ActionEffectiveStatementImpl
25 extends WithSubstatements<QName, ActionStatement, ActionEffectiveStatement>
26 implements ActionDefinition, ActionEffectiveStatement, OperationDefinitionMixin<ActionStatement>,
27 CopyableMixin<QName, ActionStatement> {
28 private final @NonNull Immutable path;
29 private final int flags;
31 public ActionEffectiveStatementImpl(final ActionStatement declared, final Immutable path, final int flags,
32 final ImmutableList<? extends EffectiveStatement<?, ?>> substatements) {
33 super(declared, substatements);
34 this.path = requireNonNull(path);
38 public ActionEffectiveStatementImpl(final ActionEffectiveStatementImpl original, final Immutable path,
41 this.path = requireNonNull(path);
46 public Immutable pathObject() {
56 public ActionEffectiveStatement asEffectiveStatement() {