Bump to odlparent-9.0.0/yangtools-7.0.1-SNAPSHOT
[mdsal.git] / binding / mdsal-binding-generator-impl / 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.yangtools.yang.model.api.meta.EffectiveStatement;
11
12 /**
13  * A simple {@link Generator} which (potentially) has dependencies on other generators.
14  */
15 abstract class AbstractDependentGenerator<T extends EffectiveStatement<?, ?>> extends AbstractExplicitGenerator<T> {
16     AbstractDependentGenerator(final T statement, final AbstractCompositeGenerator<?> parent) {
17         super(statement, parent);
18     }
19
20     /**
21      * Discover and link this generator's dependencies.
22      *
23      * @param context GeneratorContext of this generator
24      */
25     abstract void linkDependencies(GeneratorContext context);
26 }