Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,8 @@ gradle-app.setting
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
# Binary
/bin
/bin

.java-version
*.bak

1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,6 @@ nativeImage {
add '--initialize-at-run-time=org.codehaus.groovy.control.XStreamUtils,groovy.grape.GrapeIvy'
add '--report-unsupported-elements-at-runtime'
add '--allow-incomplete-classpath'
add '-H:IncludeResources=org.eclipse.jdt.internal.compiler.*'
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import edu.kit.kastel.dsis.mosim.refactorlizar.analysiscli.commands.FeatureScatterCommand;
import edu.kit.kastel.dsis.mosim.refactorlizar.analysiscli.commands.ImproperLayerCommand;
import edu.kit.kastel.dsis.mosim.refactorlizar.analysiscli.commands.LanguageBlobCommand;
import edu.kit.kastel.dsis.mosim.refactorlizar.analysiscli.commands.LanguageStructureApplianceCommand;
import picocli.CommandLine;
import picocli.CommandLine.Command;

Expand All @@ -21,7 +22,8 @@
EcoreTypeExtractionCommand.class,
FeatureScatterCommand.class,
ImproperLayerCommand.class,
LanguageBlobCommand.class
LanguageBlobCommand.class,
LanguageStructureApplianceCommand.class
},
mixinStandardHelpOptions = true,
version = "0.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class DependencyCycleCommand implements Runnable {
String level = "component";

@Option(
names = {"-l", "--language"},
names = {"-m", "--modular-language"},
required = true,
description = "Path to the language")
String language;
Expand All @@ -39,6 +39,13 @@ public class DependencyCycleCommand implements Runnable {
description = "Path to the simulator code")
String code;

@Option(
names = {"-p", "--path-structure"},
description =
"Is optional. If the language is part of the code use \"LinC\", if the code is part of the language use \"CinL\", if none of these apply, don't use the flag.",
defaultValue = "none")
String language_location;

@Override
public void run() {
switch (level) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class DependencyDirectionCommand implements Runnable {
String level = "component";

@Option(
names = {"-m", "--language-model"},
names = {"-m", "--modular-language"},
required = true,
description = "Path to the language")
String language;
Expand All @@ -46,6 +46,13 @@ public class DependencyDirectionCommand implements Runnable {
description = "Layer information")
String layer;

@Option(
names = {"-p", "--path-structure"},
description =
"Is optional. If the language is part of the code use \"LinC\", if the code is part of the language use \"CinL\", if none of these apply, don't use the flag.",
defaultValue = "none")
String language_location;

@Override
public void run() {
switch (level) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class EcoreTypeExtractionCommand implements Runnable {
private final DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();

@Option(
names = {"-l", "--language-root"},
names = {"-m", "--modular-language"},
required = true,
description = "Path to the root of a language/metamodel (*.ecore)")
String rootPath;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class FeatureScatterCommand implements Runnable {
String level = "component";

@Option(
names = {"-m", "--language-model"},
names = {"-m", "--modular-language"},
required = true,
description = "Path to the language")
String language;
Expand All @@ -40,6 +40,13 @@ public class FeatureScatterCommand implements Runnable {
description = "Path to the simulator code")
String code;

@Option(
names = {"-p", "--path-structure"},
description =
"Is optional. If the language is part of the code use \"LinC\", if the code is part of the language use \"CinL\", if none of these apply, don't use the flag.",
defaultValue = "none")
String language_location;

@Override
public void run() {
switch (level) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class ImproperLayerCommand implements Runnable {
String level = "component";

@Option(
names = {"-m", "--language-model"},
names = {"-m", "--modular-language"},
required = true,
description = "Path to the language")
String language;
Expand All @@ -39,6 +39,13 @@ public class ImproperLayerCommand implements Runnable {
description = "Path to the simulator code")
String code;

@Option(
names = {"-p", "--path-structure"},
description =
"Is optional. If the language is part of the code use \"LinC\", if the code is part of the language use \"CinL\", if none of these apply, don't use the flag.",
defaultValue = "none")
String language_location;

@Override
public void run() {
switch (level) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class LanguageBlobCommand implements Runnable {
String level = "component";

@Option(
names = {"-m", "--language-model"},
names = {"-m", "--modular-language"},
required = true,
description = "Path to the language")
String language;
Expand All @@ -51,6 +51,13 @@ public class LanguageBlobCommand implements Runnable {
defaultValue = "none")
String simulatorType = "none";

@Option(
names = {"-p", "--path-structure"},
description =
"Is optional. If the language is part of the code use \"LinC\", if the code is part of the language use \"CinL\", if none of these apply, don't use the flag.",
defaultValue = "none")
String language_location;

@Override
public void run() {
switch (level) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,34 @@
package edu.kit.kastel.dsis.mosim.refactorlizar.analysiscli.commands;

public class LanguageStructureApplianceCommand {
import com.google.common.flogger.FluentLogger;
import picocli.CommandLine.Command;
import picocli.CommandLine.Option;

public void applyLanguageStructureToCode(String language, String code) {}
@Command(name = "applyLanguageStructureToCode", description = "Not implemented yet.", mixinStandardHelpOptions = true)
public class LanguageStructureApplianceCommand implements Runnable {
public static final FluentLogger LOGGER = FluentLogger.forEnclosingClass();

@Option(
names = {"-m", "--language-model"},
required = true,
description = "Path to the language")
String language;

@Option(
names = {"-s", "--simulator-code"},
required = true,
description = "Path to the simulator code")
String code;

@Option(
names = {"-p", "--path-structure"},
description =
"Is optional. If the language is part of the code use \"LinC\", if the code is part of the language use \"CinL\", if none of these apply, don't use the flag.",
defaultValue = "none")
String language_location;

@Override
public void run() {
LOGGER.atWarning().log("Command is not implemented yet!");
}
}