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.eclipse.jdt.annotation.NonNull;
11 import org.opendaylight.mdsal.binding.generator.impl.reactor.CollisionDomain.Member;
12 import org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack;
15 * An implicit {@link Generator}, not associated with any particular statement.
17 abstract class AbstractImplicitGenerator extends Generator {
18 AbstractImplicitGenerator(final ModuleGenerator parent) {
23 final void pushToInference(final SchemaInferenceStack inferenceStack) {
28 final ClassPlacement classPlacement() {
29 return ClassPlacement.TOP_LEVEL;
33 final Member createMember(final CollisionDomain domain) {
34 return domain.addSecondary(((ModuleGenerator) getParent()).getPrefixMember(), classSuffix());
37 abstract @NonNull String classSuffix();