blob: 5619c49019ef91f38f3ff0a597f86d5230e1f436 [file] [log] [blame]
/**
********************************************************************************
* Copyright (c) 2020-2021 Robert Bosch GmbH.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Robert Bosch GmbH - initial API and implementation
********************************************************************************
*/
package org.eclipse.app4mc.slg.linux.transformers;
import org.eclipse.app4mc.amalthea.model.LabelAccess;
import org.eclipse.app4mc.slg.commons.m2t.AbstractSLGTransformer;
import org.eclipse.app4mc.slg.linux.generators.LinuxLabelAccessTranslationUnit;
import org.eclipse.app4mc.slg.linux.generators.LinuxLabelTranslationUnit;
import org.eclipse.app4mc.transformation.util.OutputBuffer;
import com.google.inject.Inject;
public class LinuxLabelAccessTransformer extends AbstractSLGTransformer {
@Inject private OutputBuffer outputBuffer;
@Inject private LinuxLabelTransformer labelTransformer;
public LinuxLabelAccessTranslationUnit transform(final LabelAccess labelAccess) {
final LinuxLabelTranslationUnit tuLabel = this.labelTransformer.transform(labelAccess.getData());
return new LinuxLabelAccessTranslationUnit(this.outputBuffer, tuLabel, labelAccess);
}
}