Compare commits
No commits in common. "master" and "561f022a2ca28b24ecb2cd9e263b771382bfc7bd" have entirely different histories.
master
...
561f022a2c
1
Git_Repo
Submodule
1
Git_Repo
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 391adc8f616e2adc916c5179721491e07c64ec50
|
||||||
BIN
jcmd/.DS_Store
vendored
Normal file
BIN
jcmd/.DS_Store
vendored
Normal file
Binary file not shown.
0
.idea/.gitignore → jcmd/.idea/.gitignore
generated
vendored
0
.idea/.gitignore → jcmd/.idea/.gitignore
generated
vendored
0
.idea/misc.xml → jcmd/.idea/misc.xml
generated
0
.idea/misc.xml → jcmd/.idea/misc.xml
generated
1
.idea/vcs.xml → jcmd/.idea/vcs.xml
generated
1
.idea/vcs.xml → jcmd/.idea/vcs.xml
generated
@ -1,6 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="VcsDirectoryMappings">
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
||||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
0
jcmd/.mvn/maven.config
Normal file
0
jcmd/.mvn/maven.config
Normal file
0
jcmd/initial
Normal file
0
jcmd/initial
Normal file
@ -75,8 +75,8 @@
|
|||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>9</source>
|
<source>11</source>
|
||||||
<target>9</target>
|
<target>11</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
0
src/.DS_Store → jcmd/src/.DS_Store
vendored
0
src/.DS_Store → jcmd/src/.DS_Store
vendored
78
jcmd/src/main/java/de/vimo/core/Line.java
Normal file
78
jcmd/src/main/java/de/vimo/core/Line.java
Normal file
@ -0,0 +1,78 @@
|
|||||||
|
package de.vimo.core;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public class Line {
|
||||||
|
|
||||||
|
private String command;
|
||||||
|
|
||||||
|
private List<String> flags;
|
||||||
|
|
||||||
|
private List<String> args;
|
||||||
|
|
||||||
|
public Line(String command, List<String> flags, List<String> args) {
|
||||||
|
this.command = command;
|
||||||
|
this.flags = flags;
|
||||||
|
this.args = args;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Line(String command) {
|
||||||
|
this.command = command;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public String getCommand() {
|
||||||
|
return command;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getFlags() {
|
||||||
|
return flags;
|
||||||
|
}
|
||||||
|
|
||||||
|
public List<String> getArgs() {
|
||||||
|
return args;
|
||||||
|
}
|
||||||
|
|
||||||
|
// @Override
|
||||||
|
// public Line parse(String raw) {
|
||||||
|
// String regex = "[\\s]";
|
||||||
|
// String[] myArray = raw.split(regex);
|
||||||
|
//
|
||||||
|
// for (int i = 1; i < myArray.length; i++) {
|
||||||
|
// if (myArray[i].contains("-")) {
|
||||||
|
// flags.add(myArray[i]);
|
||||||
|
// } else {
|
||||||
|
// args.add(myArray[i]);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// return new Line(myArray[0], flags, args);
|
||||||
|
// }
|
||||||
|
|
||||||
|
//
|
||||||
|
// --- Please ignore this ---
|
||||||
|
//
|
||||||
|
// private final Command command;
|
||||||
|
//
|
||||||
|
// private final List<Flag> flags;
|
||||||
|
//
|
||||||
|
// private final List<Argument> args;
|
||||||
|
//
|
||||||
|
// public Line(Command command, List<Flag> flags, List<Argument> args) {
|
||||||
|
// this.command = command;
|
||||||
|
// this.flags = flags;
|
||||||
|
// this.args = args;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public Command getCommand() {
|
||||||
|
// return command;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public List<Flag> getFlags() {
|
||||||
|
// return flags;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// public List<Argument> getArgs() {
|
||||||
|
// return args;
|
||||||
|
// }
|
||||||
|
}
|
||||||
@ -86,7 +86,7 @@ public class ParserVivi implements Parser {
|
|||||||
public boolean isFlagsValid(String[] words) {
|
public boolean isFlagsValid(String[] words) {
|
||||||
char[] charWord = new char[0];
|
char[] charWord = new char[0];
|
||||||
boolean isFlagsValid = false;
|
boolean isFlagsValid = false;
|
||||||
|
|
||||||
for (int i = 1; i < words.length; i++) {
|
for (int i = 1; i < words.length; i++) {
|
||||||
if (words[i].contains("-")) {
|
if (words[i].contains("-")) {
|
||||||
charWord = words[i].toCharArray();
|
charWord = words[i].toCharArray();
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
jcmd/target/classes/de/vimo/check/StringCheck.class
Normal file
BIN
jcmd/target/classes/de/vimo/check/StringCheck.class
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
jcmd/target/classes/de/vimo/core/ParserVivi.class
Normal file
BIN
jcmd/target/classes/de/vimo/core/ParserVivi.class
Normal file
Binary file not shown.
Binary file not shown.
@ -1,31 +0,0 @@
|
|||||||
package de.vimo.core;
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class Line {
|
|
||||||
|
|
||||||
private String command;
|
|
||||||
|
|
||||||
private List<String> flags;
|
|
||||||
|
|
||||||
private List<String> args;
|
|
||||||
|
|
||||||
public Line(String command, List<String> flags, List<String> args) {
|
|
||||||
this.command = command;
|
|
||||||
this.flags = flags;
|
|
||||||
this.args = args;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getCommand() {
|
|
||||||
return command;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<String> getFlags() {
|
|
||||||
return flags;
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<String> getArgs() {
|
|
||||||
return args;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
Binary file not shown.
Loading…
Reference in New Issue
Block a user