/* * 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.parser.rfc7950.stmt.anyxml; import com.google.common.collect.ImmutableList; import org.eclipse.jdt.annotation.NonNull; import org.eclipse.jdt.annotation.Nullable; import org.opendaylight.yangtools.yang.model.api.AnyxmlSchemaNode; import org.opendaylight.yangtools.yang.model.api.SchemaPath; import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement; import org.opendaylight.yangtools.yang.model.api.stmt.AnyxmlStatement; final class RegularAnyxmlEffectiveStatement extends EmptyAnyxmlEffectiveStatement { private final @NonNull Object substatements; RegularAnyxmlEffectiveStatement(final AnyxmlStatement declared, final SchemaPath path, final int flags, final @Nullable AnyxmlSchemaNode original, final ImmutableList> substatements) { super(declared, path, flags, original); this.substatements = maskList(substatements); } @Override public ImmutableList> effectiveSubstatements() { return unmaskList(substatements); } }