Remove AbstractExplicitGenerator.recursiveRuntimeType()
[mdsal.git] / binding / mdsal-binding-generator / src / main / java / org / opendaylight / mdsal / binding / generator / impl / reactor / AbstractDependentGenerator.java
1 /*
2  * Copyright (c) 2021 PANTHEON.tech, s.r.o. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.mdsal.binding.generator.impl.reactor;
9
10 import org.opendaylight.mdsal.binding.runtime.api.RuntimeType;
11 import org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement;
12
13 /**
14  * A simple {@link Generator} which (potentially) has dependencies on other generators.
15  */
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);
20     }
21
22     /**
23      * Discover and link this generator's dependencies.
24      *
25      * @param context GeneratorContext of this generator
26      */
27     abstract void linkDependencies(GeneratorContext context);
28 }