2 * Copyright (c) 2021 PANTHEON.tech, s.r.o. 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.mdsal.binding.generator.impl.reactor;
10 import org.opendaylight.mdsal.binding.runtime.api.RuntimeType;
11 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
14 * A simple {@link Generator} which (potentially) has dependencies on other generators.
16 abstract class AbstractDependentGenerator<S extends EffectiveStatement<?, ?>, R extends RuntimeType>
17 extends AbstractExplicitGenerator<S, R> {
18 AbstractDependentGenerator(final S statement, final AbstractCompositeGenerator<?, ?> parent) {
19 super(statement, parent);
23 * Discover and link this generator's dependencies.
25 * @param context GeneratorContext of this generator
27 abstract void linkDependencies(GeneratorContext context);