+++ /dev/null
-/*
- * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.yangtools.yang.model.ri.stmt.impl.eff;
-
-import com.google.common.collect.ImmutableList;
-import org.eclipse.jdt.annotation.NonNull;
-import org.eclipse.jdt.annotation.Nullable;
-import org.opendaylight.yangtools.concepts.Immutable;
-import org.opendaylight.yangtools.yang.model.api.AnyxmlSchemaNode;
-import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
-import org.opendaylight.yangtools.yang.model.api.stmt.AnyxmlStatement;
-
-public final class RegularAnyxmlEffectiveStatement extends EmptyAnyxmlEffectiveStatement {
- private final @NonNull Object substatements;
-
- public RegularAnyxmlEffectiveStatement(final AnyxmlStatement declared, final Immutable path, final int flags,
- final @Nullable AnyxmlSchemaNode original,
- final ImmutableList<? extends EffectiveStatement<?, ?>> substatements) {
- super(declared, path, flags, original);
- this.substatements = maskList(substatements);
- }
-
- public RegularAnyxmlEffectiveStatement(final RegularAnyxmlEffectiveStatement original, final Immutable path,
- final int flags, final @Nullable AnyxmlSchemaNode newOriginal) {
- super(original, path, flags, newOriginal);
- this.substatements = original.substatements;
- }
-
- @Override
- public ImmutableList<? extends EffectiveStatement<?, ?>> effectiveSubstatements() {
- return unmaskList(substatements);
- }
-}